AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ContainerHealthCheck.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GameLift
23{
24namespace Model
25{
26
50 {
51 public:
52 AWS_GAMELIFT_API ContainerHealthCheck() = default;
55 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
56
57
59
63 inline const Aws::Vector<Aws::String>& GetCommand() const { return m_command; }
64 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
65 template<typename CommandT = Aws::Vector<Aws::String>>
66 void SetCommand(CommandT&& value) { m_commandHasBeenSet = true; m_command = std::forward<CommandT>(value); }
67 template<typename CommandT = Aws::Vector<Aws::String>>
68 ContainerHealthCheck& WithCommand(CommandT&& value) { SetCommand(std::forward<CommandT>(value)); return *this;}
69 template<typename CommandT = Aws::String>
70 ContainerHealthCheck& AddCommand(CommandT&& value) { m_commandHasBeenSet = true; m_command.emplace_back(std::forward<CommandT>(value)); return *this; }
72
74
77 inline int GetInterval() const { return m_interval; }
78 inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
79 inline void SetInterval(int value) { m_intervalHasBeenSet = true; m_interval = value; }
80 inline ContainerHealthCheck& WithInterval(int value) { SetInterval(value); return *this;}
82
84
88 inline int GetRetries() const { return m_retries; }
89 inline bool RetriesHasBeenSet() const { return m_retriesHasBeenSet; }
90 inline void SetRetries(int value) { m_retriesHasBeenSet = true; m_retries = value; }
91 inline ContainerHealthCheck& WithRetries(int value) { SetRetries(value); return *this;}
93
95
99 inline int GetStartPeriod() const { return m_startPeriod; }
100 inline bool StartPeriodHasBeenSet() const { return m_startPeriodHasBeenSet; }
101 inline void SetStartPeriod(int value) { m_startPeriodHasBeenSet = true; m_startPeriod = value; }
102 inline ContainerHealthCheck& WithStartPeriod(int value) { SetStartPeriod(value); return *this;}
104
106
110 inline int GetTimeout() const { return m_timeout; }
111 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
112 inline void SetTimeout(int value) { m_timeoutHasBeenSet = true; m_timeout = value; }
113 inline ContainerHealthCheck& WithTimeout(int value) { SetTimeout(value); return *this;}
115 private:
116
117 Aws::Vector<Aws::String> m_command;
118 bool m_commandHasBeenSet = false;
119
120 int m_interval{0};
121 bool m_intervalHasBeenSet = false;
122
123 int m_retries{0};
124 bool m_retriesHasBeenSet = false;
125
126 int m_startPeriod{0};
127 bool m_startPeriodHasBeenSet = false;
128
129 int m_timeout{0};
130 bool m_timeoutHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace GameLift
135} // namespace Aws
ContainerHealthCheck & WithCommand(CommandT &&value)
ContainerHealthCheck & AddCommand(CommandT &&value)
ContainerHealthCheck & WithInterval(int value)
ContainerHealthCheck & WithStartPeriod(int value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GAMELIFT_API ContainerHealthCheck & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GAMELIFT_API ContainerHealthCheck()=default
ContainerHealthCheck & WithTimeout(int value)
ContainerHealthCheck & WithRetries(int value)
const Aws::Vector< Aws::String > & GetCommand() const
AWS_GAMELIFT_API ContainerHealthCheck(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue