AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
46 {
47 public:
48 AWS_GAMELIFT_API ContainerHealthCheck();
51 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
52
53
55
59 inline const Aws::Vector<Aws::String>& GetCommand() const{ return m_command; }
60 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
61 inline void SetCommand(const Aws::Vector<Aws::String>& value) { m_commandHasBeenSet = true; m_command = value; }
62 inline void SetCommand(Aws::Vector<Aws::String>&& value) { m_commandHasBeenSet = true; m_command = std::move(value); }
63 inline ContainerHealthCheck& WithCommand(const Aws::Vector<Aws::String>& value) { SetCommand(value); return *this;}
64 inline ContainerHealthCheck& WithCommand(Aws::Vector<Aws::String>&& value) { SetCommand(std::move(value)); return *this;}
65 inline ContainerHealthCheck& AddCommand(const Aws::String& value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
66 inline ContainerHealthCheck& AddCommand(Aws::String&& value) { m_commandHasBeenSet = true; m_command.push_back(std::move(value)); return *this; }
67 inline ContainerHealthCheck& AddCommand(const char* value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
69
71
74 inline int GetInterval() const{ return m_interval; }
75 inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
76 inline void SetInterval(int value) { m_intervalHasBeenSet = true; m_interval = value; }
77 inline ContainerHealthCheck& WithInterval(int value) { SetInterval(value); return *this;}
79
81
85 inline int GetTimeout() const{ return m_timeout; }
86 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
87 inline void SetTimeout(int value) { m_timeoutHasBeenSet = true; m_timeout = value; }
88 inline ContainerHealthCheck& WithTimeout(int value) { SetTimeout(value); return *this;}
90
92
97 inline int GetRetries() const{ return m_retries; }
98 inline bool RetriesHasBeenSet() const { return m_retriesHasBeenSet; }
99 inline void SetRetries(int value) { m_retriesHasBeenSet = true; m_retries = value; }
100 inline ContainerHealthCheck& WithRetries(int value) { SetRetries(value); return *this;}
102
104
108 inline int GetStartPeriod() const{ return m_startPeriod; }
109 inline bool StartPeriodHasBeenSet() const { return m_startPeriodHasBeenSet; }
110 inline void SetStartPeriod(int value) { m_startPeriodHasBeenSet = true; m_startPeriod = value; }
111 inline ContainerHealthCheck& WithStartPeriod(int value) { SetStartPeriod(value); return *this;}
113 private:
114
115 Aws::Vector<Aws::String> m_command;
116 bool m_commandHasBeenSet = false;
117
118 int m_interval;
119 bool m_intervalHasBeenSet = false;
120
121 int m_timeout;
122 bool m_timeoutHasBeenSet = false;
123
124 int m_retries;
125 bool m_retriesHasBeenSet = false;
126
127 int m_startPeriod;
128 bool m_startPeriodHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace GameLift
133} // namespace Aws
void SetCommand(Aws::Vector< Aws::String > &&value)
ContainerHealthCheck & AddCommand(Aws::String &&value)
ContainerHealthCheck & WithCommand(Aws::Vector< Aws::String > &&value)
ContainerHealthCheck & AddCommand(const Aws::String &value)
ContainerHealthCheck & WithInterval(int value)
ContainerHealthCheck & AddCommand(const char *value)
ContainerHealthCheck & WithStartPeriod(int value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GAMELIFT_API ContainerHealthCheck & operator=(Aws::Utils::Json::JsonView jsonValue)
ContainerHealthCheck & WithCommand(const Aws::Vector< Aws::String > &value)
void SetCommand(const Aws::Vector< Aws::String > &value)
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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue