AWS SDK for C++  1.9.160
AWS SDK for C++
CreateAgentStatusRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Connect
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "CreateAgentStatus"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
41  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
42 
47  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
48 
53  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
54 
59  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
60 
65  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
66 
71  inline CreateAgentStatusRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
72 
77  inline CreateAgentStatusRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
78 
83  inline CreateAgentStatusRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
84 
85 
89  inline const Aws::String& GetName() const{ return m_name; }
90 
94  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
95 
99  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
100 
104  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
105 
109  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
110 
114  inline CreateAgentStatusRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
115 
119  inline CreateAgentStatusRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
120 
124  inline CreateAgentStatusRequest& WithName(const char* value) { SetName(value); return *this;}
125 
126 
130  inline const Aws::String& GetDescription() const{ return m_description; }
131 
135  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
136 
140  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
141 
145  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
146 
150  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
151 
155  inline CreateAgentStatusRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
156 
160  inline CreateAgentStatusRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
161 
165  inline CreateAgentStatusRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
166 
167 
171  inline const AgentStatusState& GetState() const{ return m_state; }
172 
176  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
177 
181  inline void SetState(const AgentStatusState& value) { m_stateHasBeenSet = true; m_state = value; }
182 
186  inline void SetState(AgentStatusState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
187 
191  inline CreateAgentStatusRequest& WithState(const AgentStatusState& value) { SetState(value); return *this;}
192 
196  inline CreateAgentStatusRequest& WithState(AgentStatusState&& value) { SetState(std::move(value)); return *this;}
197 
198 
202  inline int GetDisplayOrder() const{ return m_displayOrder; }
203 
207  inline bool DisplayOrderHasBeenSet() const { return m_displayOrderHasBeenSet; }
208 
212  inline void SetDisplayOrder(int value) { m_displayOrderHasBeenSet = true; m_displayOrder = value; }
213 
217  inline CreateAgentStatusRequest& WithDisplayOrder(int value) { SetDisplayOrder(value); return *this;}
218 
219 
223  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
224 
228  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
229 
233  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
234 
238  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
239 
243  inline CreateAgentStatusRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
244 
248  inline CreateAgentStatusRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
249 
253  inline CreateAgentStatusRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
254 
258  inline CreateAgentStatusRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
259 
263  inline CreateAgentStatusRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
264 
268  inline CreateAgentStatusRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
269 
273  inline CreateAgentStatusRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
274 
278  inline CreateAgentStatusRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
279 
283  inline CreateAgentStatusRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
284 
285  private:
286 
287  Aws::String m_instanceId;
288  bool m_instanceIdHasBeenSet;
289 
290  Aws::String m_name;
291  bool m_nameHasBeenSet;
292 
293  Aws::String m_description;
294  bool m_descriptionHasBeenSet;
295 
296  AgentStatusState m_state;
297  bool m_stateHasBeenSet;
298 
299  int m_displayOrder;
300  bool m_displayOrderHasBeenSet;
301 
303  bool m_tagsHasBeenSet;
304  };
305 
306 } // namespace Model
307 } // namespace Connect
308 } // namespace Aws
Aws::Connect::Model::CreateAgentStatusRequest::AddTags
CreateAgentStatusRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: CreateAgentStatusRequest.h:263
Aws::Connect::Model::CreateAgentStatusRequest::WithInstanceId
CreateAgentStatusRequest & WithInstanceId(const char *value)
Definition: CreateAgentStatusRequest.h:83
Aws::Connect::Model::CreateAgentStatusRequest::DisplayOrderHasBeenSet
bool DisplayOrderHasBeenSet() const
Definition: CreateAgentStatusRequest.h:207
Aws::Connect::Model::CreateAgentStatusRequest
Definition: CreateAgentStatusRequest.h:24
Aws::Connect::Model::CreateAgentStatusRequest::AddTags
CreateAgentStatusRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreateAgentStatusRequest.h:258
Aws::Connect::Model::CreateAgentStatusRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateAgentStatusRequest.h:99
Aws::Connect::Model::CreateAgentStatusRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateAgentStatusRequest.h:233
Aws::Connect::Model::CreateAgentStatusRequest::AddTags
CreateAgentStatusRequest & AddTags(const char *key, const char *value)
Definition: CreateAgentStatusRequest.h:283
Aws::Connect::Model::CreateAgentStatusRequest::WithInstanceId
CreateAgentStatusRequest & WithInstanceId(Aws::String &&value)
Definition: CreateAgentStatusRequest.h:77
Aws::Connect::Model::CreateAgentStatusRequest::GetState
const AgentStatusState & GetState() const
Definition: CreateAgentStatusRequest.h:171
Aws::Connect::Model::CreateAgentStatusRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateAgentStatusRequest.h:238
Aws::Connect::Model::CreateAgentStatusRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateAgentStatusRequest.h:140
Aws::Connect::Model::CreateAgentStatusRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateAgentStatusRequest.h:32
Aws::Connect::Model::CreateAgentStatusRequest::SetState
void SetState(AgentStatusState &&value)
Definition: CreateAgentStatusRequest.h:186
Aws::Connect::Model::CreateAgentStatusRequest::WithName
CreateAgentStatusRequest & WithName(Aws::String &&value)
Definition: CreateAgentStatusRequest.h:119
Aws::Connect::Model::CreateAgentStatusRequest::WithInstanceId
CreateAgentStatusRequest & WithInstanceId(const Aws::String &value)
Definition: CreateAgentStatusRequest.h:71
Aws::Connect::Model::CreateAgentStatusRequest::SetDisplayOrder
void SetDisplayOrder(int value)
Definition: CreateAgentStatusRequest.h:212
Aws::Connect::Model::CreateAgentStatusRequest::WithName
CreateAgentStatusRequest & WithName(const char *value)
Definition: CreateAgentStatusRequest.h:124
AgentStatusState.h
Aws::Connect::Model::CreateAgentStatusRequest::GetDisplayOrder
int GetDisplayOrder() const
Definition: CreateAgentStatusRequest.h:202
Aws::Connect::Model::CreateAgentStatusRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateAgentStatusRequest.h:145
Aws::Connect::Model::CreateAgentStatusRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateAgentStatusRequest.h:150
Aws::Connect::Model::CreateAgentStatusRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: CreateAgentStatusRequest.h:53
Aws::Connect::Model::CreateAgentStatusRequest::WithDisplayOrder
CreateAgentStatusRequest & WithDisplayOrder(int value)
Definition: CreateAgentStatusRequest.h:217
Aws::Connect::Model::CreateAgentStatusRequest::AddTags
CreateAgentStatusRequest & AddTags(const char *key, Aws::String &&value)
Definition: CreateAgentStatusRequest.h:273
Aws::Connect::ConnectRequest
Definition: ConnectRequest.h:17
Aws::Connect::Model::CreateAgentStatusRequest::WithTags
CreateAgentStatusRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateAgentStatusRequest.h:243
Aws::Connect::Model::CreateAgentStatusRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateAgentStatusRequest.h:94
Aws::Connect::Model::CreateAgentStatusRequest::SetState
void SetState(const AgentStatusState &value)
Definition: CreateAgentStatusRequest.h:181
Aws::Connect::Model::CreateAgentStatusRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: CreateAgentStatusRequest.h:223
Aws::Connect::Model::CreateAgentStatusRequest::SetName
void SetName(const char *value)
Definition: CreateAgentStatusRequest.h:109
Aws::Connect::Model::CreateAgentStatusRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateAgentStatusRequest.h:228
AWSString.h
Aws::Connect::Model::CreateAgentStatusRequest::AddTags
CreateAgentStatusRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: CreateAgentStatusRequest.h:268
Aws::Connect::Model::CreateAgentStatusRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateAgentStatusRequest.h:130
Aws::Connect::Model::CreateAgentStatusRequest::AddTags
CreateAgentStatusRequest & AddTags(Aws::String &&key, const char *value)
Definition: CreateAgentStatusRequest.h:278
Aws::Connect::Model::CreateAgentStatusRequest::WithDescription
CreateAgentStatusRequest & WithDescription(const Aws::String &value)
Definition: CreateAgentStatusRequest.h:155
Aws::Connect::Model::CreateAgentStatusRequest::GetName
const Aws::String & GetName() const
Definition: CreateAgentStatusRequest.h:89
Aws
Definition: AccessManagementClient.h:15
Aws::Connect::Model::CreateAgentStatusRequest::WithTags
CreateAgentStatusRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateAgentStatusRequest.h:248
Aws::Connect::Model::CreateAgentStatusRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateAgentStatusRequest.h:135
Aws::Connect::Model::CreateAgentStatusRequest::WithName
CreateAgentStatusRequest & WithName(const Aws::String &value)
Definition: CreateAgentStatusRequest.h:114
Aws::Connect::Model::AgentStatusState
AgentStatusState
Definition: AgentStatusState.h:17
Aws::Connect::Model::CreateAgentStatusRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: CreateAgentStatusRequest.h:41
Aws::Connect::Model::CreateAgentStatusRequest::WithDescription
CreateAgentStatusRequest & WithDescription(const char *value)
Definition: CreateAgentStatusRequest.h:165
Aws::Connect::Model::CreateAgentStatusRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: CreateAgentStatusRequest.h:59
Aws::Connect::Model::CreateAgentStatusRequest::AddTags
CreateAgentStatusRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: CreateAgentStatusRequest.h:253
Aws::Connect::Model::CreateAgentStatusRequest::WithState
CreateAgentStatusRequest & WithState(const AgentStatusState &value)
Definition: CreateAgentStatusRequest.h:191
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Connect::Model::CreateAgentStatusRequest::WithState
CreateAgentStatusRequest & WithState(AgentStatusState &&value)
Definition: CreateAgentStatusRequest.h:196
Aws::Connect::Model::CreateAgentStatusRequest::WithDescription
CreateAgentStatusRequest & WithDescription(Aws::String &&value)
Definition: CreateAgentStatusRequest.h:160
Aws::Connect::Model::CreateAgentStatusRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Connect::Model::CreateAgentStatusRequest::CreateAgentStatusRequest
CreateAgentStatusRequest()
Aws::Connect::Model::CreateAgentStatusRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: CreateAgentStatusRequest.h:65
AWS_CONNECT_API
#define AWS_CONNECT_API
Definition: Connect_EXPORTS.h:28
Aws::Connect::Model::CreateAgentStatusRequest::StateHasBeenSet
bool StateHasBeenSet() const
Definition: CreateAgentStatusRequest.h:176
Connect_EXPORTS.h
AWSMap.h
ConnectRequest.h
Aws::Connect::Model::CreateAgentStatusRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: CreateAgentStatusRequest.h:47
Aws::Connect::Model::CreateAgentStatusRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateAgentStatusRequest.h:104
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19