AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
ContainerHealthCheck.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/gamelift/GameLift_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace GameLift {
21namespace Model {
22
46 public:
47 AWS_GAMELIFT_API ContainerHealthCheck() = default;
48 AWS_GAMELIFT_API ContainerHealthCheck(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
49 AWS_GAMELIFT_API ContainerHealthCheck& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
50 AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
51
53
57 inline const Aws::Vector<Aws::String>& GetCommand() const { return m_command; }
58 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
59 template <typename CommandT = Aws::Vector<Aws::String>>
60 void SetCommand(CommandT&& value) {
61 m_commandHasBeenSet = true;
62 m_command = std::forward<CommandT>(value);
63 }
64 template <typename CommandT = Aws::Vector<Aws::String>>
65 ContainerHealthCheck& WithCommand(CommandT&& value) {
66 SetCommand(std::forward<CommandT>(value));
67 return *this;
68 }
69 template <typename CommandT = Aws::String>
70 ContainerHealthCheck& AddCommand(CommandT&& value) {
71 m_commandHasBeenSet = true;
72 m_command.emplace_back(std::forward<CommandT>(value));
73 return *this;
74 }
76
78
81 inline int64_t GetInterval() const { return m_interval; }
82 inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
83 inline void SetInterval(int64_t value) {
84 m_intervalHasBeenSet = true;
85 m_interval = value;
86 }
87 inline ContainerHealthCheck& WithInterval(int64_t value) {
88 SetInterval(value);
89 return *this;
90 }
92
94
98 inline int64_t GetRetries() const { return m_retries; }
99 inline bool RetriesHasBeenSet() const { return m_retriesHasBeenSet; }
100 inline void SetRetries(int64_t value) {
101 m_retriesHasBeenSet = true;
102 m_retries = value;
103 }
104 inline ContainerHealthCheck& WithRetries(int64_t value) {
105 SetRetries(value);
106 return *this;
107 }
109
111
115 inline int64_t GetStartPeriod() const { return m_startPeriod; }
116 inline bool StartPeriodHasBeenSet() const { return m_startPeriodHasBeenSet; }
117 inline void SetStartPeriod(int64_t value) {
118 m_startPeriodHasBeenSet = true;
119 m_startPeriod = value;
120 }
121 inline ContainerHealthCheck& WithStartPeriod(int64_t value) {
122 SetStartPeriod(value);
123 return *this;
124 }
126
128
132 inline int64_t GetTimeout() const { return m_timeout; }
133 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
134 inline void SetTimeout(int64_t value) {
135 m_timeoutHasBeenSet = true;
136 m_timeout = value;
137 }
138 inline ContainerHealthCheck& WithTimeout(int64_t value) {
139 SetTimeout(value);
140 return *this;
141 }
143 private:
144 Aws::Vector<Aws::String> m_command;
145
146 int64_t m_interval{0};
147
148 int64_t m_retries{0};
149
150 int64_t m_startPeriod{0};
151
152 int64_t m_timeout{0};
153 bool m_commandHasBeenSet = false;
154 bool m_intervalHasBeenSet = false;
155 bool m_retriesHasBeenSet = false;
156 bool m_startPeriodHasBeenSet = false;
157 bool m_timeoutHasBeenSet = false;
158};
159
160} // namespace Model
161} // namespace GameLift
162} // namespace Aws
AWS_GAMELIFT_API ContainerHealthCheck & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ContainerHealthCheck & WithInterval(int64_t value)
AWS_GAMELIFT_API ContainerHealthCheck(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
ContainerHealthCheck & WithCommand(CommandT &&value)
ContainerHealthCheck & AddCommand(CommandT &&value)
ContainerHealthCheck & WithTimeout(int64_t value)
AWS_GAMELIFT_API ContainerHealthCheck()=default
ContainerHealthCheck & WithStartPeriod(int64_t value)
const Aws::Vector< Aws::String > & GetCommand() const
ContainerHealthCheck & WithRetries(int64_t value)
std::vector< T, Aws::Allocator< T > > Vector