AWS SDK for C++  1.9.154
AWS SDK for C++
AgentStatus.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace Connect
25 {
26 namespace Model
27 {
28 
35  {
36  public:
41 
42 
46  inline const Aws::String& GetAgentStatusARN() const{ return m_agentStatusARN; }
47 
51  inline bool AgentStatusARNHasBeenSet() const { return m_agentStatusARNHasBeenSet; }
52 
56  inline void SetAgentStatusARN(const Aws::String& value) { m_agentStatusARNHasBeenSet = true; m_agentStatusARN = value; }
57 
61  inline void SetAgentStatusARN(Aws::String&& value) { m_agentStatusARNHasBeenSet = true; m_agentStatusARN = std::move(value); }
62 
66  inline void SetAgentStatusARN(const char* value) { m_agentStatusARNHasBeenSet = true; m_agentStatusARN.assign(value); }
67 
71  inline AgentStatus& WithAgentStatusARN(const Aws::String& value) { SetAgentStatusARN(value); return *this;}
72 
76  inline AgentStatus& WithAgentStatusARN(Aws::String&& value) { SetAgentStatusARN(std::move(value)); return *this;}
77 
81  inline AgentStatus& WithAgentStatusARN(const char* value) { SetAgentStatusARN(value); return *this;}
82 
83 
87  inline const Aws::String& GetAgentStatusId() const{ return m_agentStatusId; }
88 
92  inline bool AgentStatusIdHasBeenSet() const { return m_agentStatusIdHasBeenSet; }
93 
97  inline void SetAgentStatusId(const Aws::String& value) { m_agentStatusIdHasBeenSet = true; m_agentStatusId = value; }
98 
102  inline void SetAgentStatusId(Aws::String&& value) { m_agentStatusIdHasBeenSet = true; m_agentStatusId = std::move(value); }
103 
107  inline void SetAgentStatusId(const char* value) { m_agentStatusIdHasBeenSet = true; m_agentStatusId.assign(value); }
108 
112  inline AgentStatus& WithAgentStatusId(const Aws::String& value) { SetAgentStatusId(value); return *this;}
113 
117  inline AgentStatus& WithAgentStatusId(Aws::String&& value) { SetAgentStatusId(std::move(value)); return *this;}
118 
122  inline AgentStatus& WithAgentStatusId(const char* value) { SetAgentStatusId(value); return *this;}
123 
124 
128  inline const Aws::String& GetName() const{ return m_name; }
129 
133  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
134 
138  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
139 
143  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
144 
148  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
149 
153  inline AgentStatus& WithName(const Aws::String& value) { SetName(value); return *this;}
154 
158  inline AgentStatus& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
159 
163  inline AgentStatus& WithName(const char* value) { SetName(value); return *this;}
164 
165 
169  inline const Aws::String& GetDescription() const{ return m_description; }
170 
174  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
175 
179  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
180 
184  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
185 
189  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
190 
194  inline AgentStatus& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
195 
199  inline AgentStatus& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
200 
204  inline AgentStatus& WithDescription(const char* value) { SetDescription(value); return *this;}
205 
206 
210  inline const AgentStatusType& GetType() const{ return m_type; }
211 
215  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
216 
220  inline void SetType(const AgentStatusType& value) { m_typeHasBeenSet = true; m_type = value; }
221 
225  inline void SetType(AgentStatusType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
226 
230  inline AgentStatus& WithType(const AgentStatusType& value) { SetType(value); return *this;}
231 
235  inline AgentStatus& WithType(AgentStatusType&& value) { SetType(std::move(value)); return *this;}
236 
237 
241  inline int GetDisplayOrder() const{ return m_displayOrder; }
242 
246  inline bool DisplayOrderHasBeenSet() const { return m_displayOrderHasBeenSet; }
247 
251  inline void SetDisplayOrder(int value) { m_displayOrderHasBeenSet = true; m_displayOrder = value; }
252 
256  inline AgentStatus& WithDisplayOrder(int value) { SetDisplayOrder(value); return *this;}
257 
258 
262  inline const AgentStatusState& GetState() const{ return m_state; }
263 
267  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
268 
272  inline void SetState(const AgentStatusState& value) { m_stateHasBeenSet = true; m_state = value; }
273 
277  inline void SetState(AgentStatusState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
278 
282  inline AgentStatus& WithState(const AgentStatusState& value) { SetState(value); return *this;}
283 
287  inline AgentStatus& WithState(AgentStatusState&& value) { SetState(std::move(value)); return *this;}
288 
289 
293  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
294 
298  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
299 
303  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
304 
308  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
309 
313  inline AgentStatus& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
314 
318  inline AgentStatus& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
319 
323  inline AgentStatus& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
324 
328  inline AgentStatus& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
329 
333  inline AgentStatus& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
334 
338  inline AgentStatus& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
339 
343  inline AgentStatus& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
344 
348  inline AgentStatus& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
349 
353  inline AgentStatus& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
354 
355  private:
356 
357  Aws::String m_agentStatusARN;
358  bool m_agentStatusARNHasBeenSet;
359 
360  Aws::String m_agentStatusId;
361  bool m_agentStatusIdHasBeenSet;
362 
363  Aws::String m_name;
364  bool m_nameHasBeenSet;
365 
366  Aws::String m_description;
367  bool m_descriptionHasBeenSet;
368 
369  AgentStatusType m_type;
370  bool m_typeHasBeenSet;
371 
372  int m_displayOrder;
373  bool m_displayOrderHasBeenSet;
374 
375  AgentStatusState m_state;
376  bool m_stateHasBeenSet;
377 
379  bool m_tagsHasBeenSet;
380  };
381 
382 } // namespace Model
383 } // namespace Connect
384 } // namespace Aws
Aws::Connect::Model::AgentStatus::WithAgentStatusId
AgentStatus & WithAgentStatusId(Aws::String &&value)
Definition: AgentStatus.h:117
Aws::Connect::Model::AgentStatus::WithDescription
AgentStatus & WithDescription(Aws::String &&value)
Definition: AgentStatus.h:199
Aws::Connect::Model::AgentStatus::SetDescription
void SetDescription(const char *value)
Definition: AgentStatus.h:189
Aws::Connect::Model::AgentStatus::WithName
AgentStatus & WithName(const Aws::String &value)
Definition: AgentStatus.h:153
Aws::Connect::Model::AgentStatus::SetType
void SetType(const AgentStatusType &value)
Definition: AgentStatus.h:220
Aws::Connect::Model::AgentStatus::SetName
void SetName(const char *value)
Definition: AgentStatus.h:148
Aws::Connect::Model::AgentStatus::WithAgentStatusARN
AgentStatus & WithAgentStatusARN(const Aws::String &value)
Definition: AgentStatus.h:71
Aws::Connect::Model::AgentStatus::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: AgentStatus.h:215
Aws::Connect::Model::AgentStatus::WithDescription
AgentStatus & WithDescription(const char *value)
Definition: AgentStatus.h:204
Aws::Connect::Model::AgentStatus::AddTags
AgentStatus & AddTags(const char *key, Aws::String &&value)
Definition: AgentStatus.h:343
Aws::Connect::Model::AgentStatus::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: AgentStatus.h:303
Aws::Connect::Model::AgentStatus::WithTags
AgentStatus & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: AgentStatus.h:318
Aws::Connect::Model::AgentStatus::GetDescription
const Aws::String & GetDescription() const
Definition: AgentStatus.h:169
Aws::Connect::Model::AgentStatus::WithState
AgentStatus & WithState(AgentStatusState &&value)
Definition: AgentStatus.h:287
Aws::Connect::Model::AgentStatus::SetAgentStatusId
void SetAgentStatusId(Aws::String &&value)
Definition: AgentStatus.h:102
Aws::Connect::Model::AgentStatus::GetAgentStatusARN
const Aws::String & GetAgentStatusARN() const
Definition: AgentStatus.h:46
Aws::Connect::Model::AgentStatus::SetState
void SetState(AgentStatusState &&value)
Definition: AgentStatus.h:277
Aws::Connect::Model::AgentStatus::DisplayOrderHasBeenSet
bool DisplayOrderHasBeenSet() const
Definition: AgentStatus.h:246
Aws::Connect::Model::AgentStatus::WithDescription
AgentStatus & WithDescription(const Aws::String &value)
Definition: AgentStatus.h:194
Aws::Connect::Model::AgentStatus::SetDescription
void SetDescription(Aws::String &&value)
Definition: AgentStatus.h:184
Aws::Connect::Model::AgentStatus::AgentStatusIdHasBeenSet
bool AgentStatusIdHasBeenSet() const
Definition: AgentStatus.h:92
Aws::Connect::Model::AgentStatus::SetAgentStatusId
void SetAgentStatusId(const Aws::String &value)
Definition: AgentStatus.h:97
Aws::Connect::Model::AgentStatus::AddTags
AgentStatus & AddTags(const Aws::String &key, const Aws::String &value)
Definition: AgentStatus.h:323
Aws::Connect::Model::AgentStatus::WithName
AgentStatus & WithName(const char *value)
Definition: AgentStatus.h:163
Aws::Connect::Model::AgentStatus::AddTags
AgentStatus & AddTags(const Aws::String &key, Aws::String &&value)
Definition: AgentStatus.h:333
Aws::Connect::Model::AgentStatus::SetAgentStatusARN
void SetAgentStatusARN(const Aws::String &value)
Definition: AgentStatus.h:56
AgentStatusState.h
Aws::Connect::Model::AgentStatus::NameHasBeenSet
bool NameHasBeenSet() const
Definition: AgentStatus.h:133
Aws::Connect::Model::AgentStatus::SetAgentStatusARN
void SetAgentStatusARN(Aws::String &&value)
Definition: AgentStatus.h:61
Aws::Connect::Model::AgentStatus::SetDisplayOrder
void SetDisplayOrder(int value)
Definition: AgentStatus.h:251
Aws::Connect::Model::AgentStatus::WithName
AgentStatus & WithName(Aws::String &&value)
Definition: AgentStatus.h:158
Aws::Connect::Model::AgentStatus::WithDisplayOrder
AgentStatus & WithDisplayOrder(int value)
Definition: AgentStatus.h:256
Aws::Connect::Model::AgentStatus::WithAgentStatusARN
AgentStatus & WithAgentStatusARN(Aws::String &&value)
Definition: AgentStatus.h:76
Aws::Connect::Model::AgentStatus::AgentStatus
AgentStatus()
AgentStatusType.h
Aws::Connect::Model::AgentStatus::SetAgentStatusId
void SetAgentStatusId(const char *value)
Definition: AgentStatus.h:107
Aws::Connect::Model::AgentStatus::WithAgentStatusId
AgentStatus & WithAgentStatusId(const char *value)
Definition: AgentStatus.h:122
Aws::Connect::Model::AgentStatus::WithAgentStatusARN
AgentStatus & WithAgentStatusARN(const char *value)
Definition: AgentStatus.h:81
Aws::Connect::Model::AgentStatus
Definition: AgentStatus.h:35
Aws::Connect::Model::AgentStatus::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: AgentStatus.h:298
Aws::Connect::Model::AgentStatus::WithAgentStatusId
AgentStatus & WithAgentStatusId(const Aws::String &value)
Definition: AgentStatus.h:112
Aws::Connect::Model::AgentStatus::AgentStatus
AgentStatus(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Connect::Model::AgentStatus::GetAgentStatusId
const Aws::String & GetAgentStatusId() const
Definition: AgentStatus.h:87
AWSString.h
Aws::Connect::Model::AgentStatus::AddTags
AgentStatus & AddTags(Aws::String &&key, const char *value)
Definition: AgentStatus.h:348
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Connect::Model::AgentStatus::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: AgentStatus.h:174
Aws::Connect::Model::AgentStatus::WithType
AgentStatus & WithType(AgentStatusType &&value)
Definition: AgentStatus.h:235
Aws::Connect::Model::AgentStatus::StateHasBeenSet
bool StateHasBeenSet() const
Definition: AgentStatus.h:267
Aws::Connect::Model::AgentStatus::SetDescription
void SetDescription(const Aws::String &value)
Definition: AgentStatus.h:179
Aws::Connect::Model::AgentStatus::GetType
const AgentStatusType & GetType() const
Definition: AgentStatus.h:210
Aws::Connect::Model::AgentStatus::AddTags
AgentStatus & AddTags(Aws::String &&key, const Aws::String &value)
Definition: AgentStatus.h:328
Aws::Connect::Model::AgentStatus::SetState
void SetState(const AgentStatusState &value)
Definition: AgentStatus.h:272
Aws::Connect::Model::AgentStatusType
AgentStatusType
Definition: AgentStatusType.h:17
Aws::Connect::Model::AgentStatus::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: AgentStatus.h:293
Aws::Connect::Model::AgentStatus::AgentStatusARNHasBeenSet
bool AgentStatusARNHasBeenSet() const
Definition: AgentStatus.h:51
Aws::Connect::Model::AgentStatus::GetState
const AgentStatusState & GetState() const
Definition: AgentStatus.h:262
Aws::Connect::Model::AgentStatus::SetType
void SetType(AgentStatusType &&value)
Definition: AgentStatus.h:225
Aws::Connect::Model::AgentStatus::GetDisplayOrder
int GetDisplayOrder() const
Definition: AgentStatus.h:241
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Connect::Model::AgentStatusState
AgentStatusState
Definition: AgentStatusState.h:17
Aws::Connect::Model::AgentStatus::WithState
AgentStatus & WithState(const AgentStatusState &value)
Definition: AgentStatus.h:282
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Connect::Model::AgentStatus::SetName
void SetName(const Aws::String &value)
Definition: AgentStatus.h:138
Aws::Connect::Model::AgentStatus::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: AgentStatus.h:308
Aws::Connect::Model::AgentStatus::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Connect::Model::AgentStatus::WithType
AgentStatus & WithType(const AgentStatusType &value)
Definition: AgentStatus.h:230
AWS_CONNECT_API
#define AWS_CONNECT_API
Definition: Connect_EXPORTS.h:28
Aws::Connect::Model::AgentStatus::AddTags
AgentStatus & AddTags(const char *key, const char *value)
Definition: AgentStatus.h:353
Aws::Connect::Model::AgentStatus::operator=
AgentStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Connect::Model::AgentStatus::SetAgentStatusARN
void SetAgentStatusARN(const char *value)
Definition: AgentStatus.h:66
Connect_EXPORTS.h
AWSMap.h
Aws::Connect::Model::AgentStatus::WithTags
AgentStatus & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: AgentStatus.h:313
Aws::Connect::Model::AgentStatus::AddTags
AgentStatus & AddTags(Aws::String &&key, Aws::String &&value)
Definition: AgentStatus.h:338
Aws::Connect::Model::AgentStatus::GetName
const Aws::String & GetName() const
Definition: AgentStatus.h:128
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::Connect::Model::AgentStatus::SetName
void SetName(Aws::String &&value)
Definition: AgentStatus.h:143