AWS SDK for C++  1.9.156
AWS SDK for C++
ManagedAgentStateChange.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace ECS
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetContainerName() const{ return m_containerName; }
46 
50  inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
51 
55  inline void SetContainerName(const Aws::String& value) { m_containerNameHasBeenSet = true; m_containerName = value; }
56 
60  inline void SetContainerName(Aws::String&& value) { m_containerNameHasBeenSet = true; m_containerName = std::move(value); }
61 
65  inline void SetContainerName(const char* value) { m_containerNameHasBeenSet = true; m_containerName.assign(value); }
66 
70  inline ManagedAgentStateChange& WithContainerName(const Aws::String& value) { SetContainerName(value); return *this;}
71 
75  inline ManagedAgentStateChange& WithContainerName(Aws::String&& value) { SetContainerName(std::move(value)); return *this;}
76 
80  inline ManagedAgentStateChange& WithContainerName(const char* value) { SetContainerName(value); return *this;}
81 
82 
86  inline const ManagedAgentName& GetManagedAgentName() const{ return m_managedAgentName; }
87 
91  inline bool ManagedAgentNameHasBeenSet() const { return m_managedAgentNameHasBeenSet; }
92 
96  inline void SetManagedAgentName(const ManagedAgentName& value) { m_managedAgentNameHasBeenSet = true; m_managedAgentName = value; }
97 
101  inline void SetManagedAgentName(ManagedAgentName&& value) { m_managedAgentNameHasBeenSet = true; m_managedAgentName = std::move(value); }
102 
106  inline ManagedAgentStateChange& WithManagedAgentName(const ManagedAgentName& value) { SetManagedAgentName(value); return *this;}
107 
111  inline ManagedAgentStateChange& WithManagedAgentName(ManagedAgentName&& value) { SetManagedAgentName(std::move(value)); return *this;}
112 
113 
117  inline const Aws::String& GetStatus() const{ return m_status; }
118 
122  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
123 
127  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
128 
132  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
133 
137  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
138 
142  inline ManagedAgentStateChange& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
143 
147  inline ManagedAgentStateChange& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
148 
152  inline ManagedAgentStateChange& WithStatus(const char* value) { SetStatus(value); return *this;}
153 
154 
158  inline const Aws::String& GetReason() const{ return m_reason; }
159 
163  inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
164 
168  inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
169 
173  inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
174 
178  inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
179 
183  inline ManagedAgentStateChange& WithReason(const Aws::String& value) { SetReason(value); return *this;}
184 
188  inline ManagedAgentStateChange& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
189 
193  inline ManagedAgentStateChange& WithReason(const char* value) { SetReason(value); return *this;}
194 
195  private:
196 
197  Aws::String m_containerName;
198  bool m_containerNameHasBeenSet;
199 
200  ManagedAgentName m_managedAgentName;
201  bool m_managedAgentNameHasBeenSet;
202 
203  Aws::String m_status;
204  bool m_statusHasBeenSet;
205 
206  Aws::String m_reason;
207  bool m_reasonHasBeenSet;
208  };
209 
210 } // namespace Model
211 } // namespace ECS
212 } // namespace Aws
Aws::ECS::Model::ManagedAgentStateChange::SetContainerName
void SetContainerName(const Aws::String &value)
Definition: ManagedAgentStateChange.h:55
Aws::ECS::Model::ManagedAgentStateChange::WithStatus
ManagedAgentStateChange & WithStatus(const Aws::String &value)
Definition: ManagedAgentStateChange.h:142
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::ManagedAgentStateChange::ContainerNameHasBeenSet
bool ContainerNameHasBeenSet() const
Definition: ManagedAgentStateChange.h:50
Aws::ECS::Model::ManagedAgentStateChange::WithContainerName
ManagedAgentStateChange & WithContainerName(const Aws::String &value)
Definition: ManagedAgentStateChange.h:70
Aws::ECS::Model::ManagedAgentStateChange::SetContainerName
void SetContainerName(Aws::String &&value)
Definition: ManagedAgentStateChange.h:60
Aws::ECS::Model::ManagedAgentStateChange
Definition: ManagedAgentStateChange.h:34
Aws::ECS::Model::ManagedAgentStateChange::WithReason
ManagedAgentStateChange & WithReason(const char *value)
Definition: ManagedAgentStateChange.h:193
Aws::ECS::Model::ManagedAgentStateChange::SetStatus
void SetStatus(Aws::String &&value)
Definition: ManagedAgentStateChange.h:132
Aws::ECS::Model::ManagedAgentStateChange::WithReason
ManagedAgentStateChange & WithReason(Aws::String &&value)
Definition: ManagedAgentStateChange.h:188
Aws::ECS::Model::ManagedAgentStateChange::operator=
ManagedAgentStateChange & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::ManagedAgentStateChange::SetStatus
void SetStatus(const Aws::String &value)
Definition: ManagedAgentStateChange.h:127
Aws::ECS::Model::ManagedAgentStateChange::GetStatus
const Aws::String & GetStatus() const
Definition: ManagedAgentStateChange.h:117
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::ManagedAgentStateChange::SetStatus
void SetStatus(const char *value)
Definition: ManagedAgentStateChange.h:137
ManagedAgentName.h
Aws::ECS::Model::ManagedAgentStateChange::SetContainerName
void SetContainerName(const char *value)
Definition: ManagedAgentStateChange.h:65
Aws::ECS::Model::ManagedAgentStateChange::WithReason
ManagedAgentStateChange & WithReason(const Aws::String &value)
Definition: ManagedAgentStateChange.h:183
Aws::ECS::Model::ManagedAgentStateChange::WithContainerName
ManagedAgentStateChange & WithContainerName(const char *value)
Definition: ManagedAgentStateChange.h:80
Aws::ECS::Model::ManagedAgentStateChange::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ECS::Model::ManagedAgentStateChange::WithManagedAgentName
ManagedAgentStateChange & WithManagedAgentName(ManagedAgentName &&value)
Definition: ManagedAgentStateChange.h:111
Aws::ECS::Model::ManagedAgentStateChange::GetReason
const Aws::String & GetReason() const
Definition: ManagedAgentStateChange.h:158
Aws::ECS::Model::ManagedAgentStateChange::SetReason
void SetReason(const Aws::String &value)
Definition: ManagedAgentStateChange.h:168
Aws::ECS::Model::ManagedAgentStateChange::SetManagedAgentName
void SetManagedAgentName(ManagedAgentName &&value)
Definition: ManagedAgentStateChange.h:101
Aws::ECS::Model::ManagedAgentStateChange::ManagedAgentStateChange
ManagedAgentStateChange(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::ManagedAgentStateChange::GetContainerName
const Aws::String & GetContainerName() const
Definition: ManagedAgentStateChange.h:45
Aws::ECS::Model::ManagedAgentName
ManagedAgentName
Definition: ManagedAgentName.h:17
Aws::ECS::Model::ManagedAgentStateChange::WithManagedAgentName
ManagedAgentStateChange & WithManagedAgentName(const ManagedAgentName &value)
Definition: ManagedAgentStateChange.h:106
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ECS::Model::ManagedAgentStateChange::ManagedAgentNameHasBeenSet
bool ManagedAgentNameHasBeenSet() const
Definition: ManagedAgentStateChange.h:91
Aws::ECS::Model::ManagedAgentStateChange::ManagedAgentStateChange
ManagedAgentStateChange()
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::ManagedAgentStateChange::WithContainerName
ManagedAgentStateChange & WithContainerName(Aws::String &&value)
Definition: ManagedAgentStateChange.h:75
Aws::ECS::Model::ManagedAgentStateChange::SetManagedAgentName
void SetManagedAgentName(const ManagedAgentName &value)
Definition: ManagedAgentStateChange.h:96
Aws::ECS::Model::ManagedAgentStateChange::SetReason
void SetReason(const char *value)
Definition: ManagedAgentStateChange.h:178
Aws::ECS::Model::ManagedAgentStateChange::ReasonHasBeenSet
bool ReasonHasBeenSet() const
Definition: ManagedAgentStateChange.h:163
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::ManagedAgentStateChange::GetManagedAgentName
const ManagedAgentName & GetManagedAgentName() const
Definition: ManagedAgentStateChange.h:86
ECS_EXPORTS.h
Aws::ECS::Model::ManagedAgentStateChange::SetReason
void SetReason(Aws::String &&value)
Definition: ManagedAgentStateChange.h:173
Aws::ECS::Model::ManagedAgentStateChange::WithStatus
ManagedAgentStateChange & WithStatus(const char *value)
Definition: ManagedAgentStateChange.h:152
Aws::ECS::Model::ManagedAgentStateChange::WithStatus
ManagedAgentStateChange & WithStatus(Aws::String &&value)
Definition: ManagedAgentStateChange.h:147
Aws::ECS::Model::ManagedAgentStateChange::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: ManagedAgentStateChange.h:122