AWS SDK for C++  1.9.159
AWS SDK for C++
UpdateAgentStatusRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Connect
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "UpdateAgentStatus"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
40  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
41 
46  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
47 
52  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
53 
58  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
59 
64  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
65 
70  inline UpdateAgentStatusRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
71 
76  inline UpdateAgentStatusRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
77 
82  inline UpdateAgentStatusRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
83 
84 
88  inline const Aws::String& GetAgentStatusId() const{ return m_agentStatusId; }
89 
93  inline bool AgentStatusIdHasBeenSet() const { return m_agentStatusIdHasBeenSet; }
94 
98  inline void SetAgentStatusId(const Aws::String& value) { m_agentStatusIdHasBeenSet = true; m_agentStatusId = value; }
99 
103  inline void SetAgentStatusId(Aws::String&& value) { m_agentStatusIdHasBeenSet = true; m_agentStatusId = std::move(value); }
104 
108  inline void SetAgentStatusId(const char* value) { m_agentStatusIdHasBeenSet = true; m_agentStatusId.assign(value); }
109 
113  inline UpdateAgentStatusRequest& WithAgentStatusId(const Aws::String& value) { SetAgentStatusId(value); return *this;}
114 
118  inline UpdateAgentStatusRequest& WithAgentStatusId(Aws::String&& value) { SetAgentStatusId(std::move(value)); return *this;}
119 
123  inline UpdateAgentStatusRequest& WithAgentStatusId(const char* value) { SetAgentStatusId(value); return *this;}
124 
125 
129  inline const Aws::String& GetName() const{ return m_name; }
130 
134  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
135 
139  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
140 
144  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
145 
149  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
150 
154  inline UpdateAgentStatusRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
155 
159  inline UpdateAgentStatusRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
160 
164  inline UpdateAgentStatusRequest& WithName(const char* value) { SetName(value); return *this;}
165 
166 
170  inline const Aws::String& GetDescription() const{ return m_description; }
171 
175  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
176 
180  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
181 
185  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
186 
190  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
191 
195  inline UpdateAgentStatusRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
196 
200  inline UpdateAgentStatusRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
201 
205  inline UpdateAgentStatusRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
206 
207 
211  inline const AgentStatusState& GetState() const{ return m_state; }
212 
216  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
217 
221  inline void SetState(const AgentStatusState& value) { m_stateHasBeenSet = true; m_state = value; }
222 
226  inline void SetState(AgentStatusState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
227 
231  inline UpdateAgentStatusRequest& WithState(const AgentStatusState& value) { SetState(value); return *this;}
232 
236  inline UpdateAgentStatusRequest& WithState(AgentStatusState&& value) { SetState(std::move(value)); return *this;}
237 
238 
242  inline int GetDisplayOrder() const{ return m_displayOrder; }
243 
247  inline bool DisplayOrderHasBeenSet() const { return m_displayOrderHasBeenSet; }
248 
252  inline void SetDisplayOrder(int value) { m_displayOrderHasBeenSet = true; m_displayOrder = value; }
253 
257  inline UpdateAgentStatusRequest& WithDisplayOrder(int value) { SetDisplayOrder(value); return *this;}
258 
259 
263  inline bool GetResetOrderNumber() const{ return m_resetOrderNumber; }
264 
268  inline bool ResetOrderNumberHasBeenSet() const { return m_resetOrderNumberHasBeenSet; }
269 
273  inline void SetResetOrderNumber(bool value) { m_resetOrderNumberHasBeenSet = true; m_resetOrderNumber = value; }
274 
278  inline UpdateAgentStatusRequest& WithResetOrderNumber(bool value) { SetResetOrderNumber(value); return *this;}
279 
280  private:
281 
282  Aws::String m_instanceId;
283  bool m_instanceIdHasBeenSet;
284 
285  Aws::String m_agentStatusId;
286  bool m_agentStatusIdHasBeenSet;
287 
288  Aws::String m_name;
289  bool m_nameHasBeenSet;
290 
291  Aws::String m_description;
292  bool m_descriptionHasBeenSet;
293 
294  AgentStatusState m_state;
295  bool m_stateHasBeenSet;
296 
297  int m_displayOrder;
298  bool m_displayOrderHasBeenSet;
299 
300  bool m_resetOrderNumber;
301  bool m_resetOrderNumberHasBeenSet;
302  };
303 
304 } // namespace Model
305 } // namespace Connect
306 } // namespace Aws
Aws::Connect::Model::UpdateAgentStatusRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: UpdateAgentStatusRequest.h:175
Aws::Connect::Model::UpdateAgentStatusRequest::WithDisplayOrder
UpdateAgentStatusRequest & WithDisplayOrder(int value)
Definition: UpdateAgentStatusRequest.h:257
Aws::Connect::Model::UpdateAgentStatusRequest::GetResetOrderNumber
bool GetResetOrderNumber() const
Definition: UpdateAgentStatusRequest.h:263
Aws::Connect::Model::UpdateAgentStatusRequest::GetState
const AgentStatusState & GetState() const
Definition: UpdateAgentStatusRequest.h:211
Aws::Connect::Model::UpdateAgentStatusRequest::WithAgentStatusId
UpdateAgentStatusRequest & WithAgentStatusId(Aws::String &&value)
Definition: UpdateAgentStatusRequest.h:118
Aws::Connect::Model::UpdateAgentStatusRequest::SetName
void SetName(const Aws::String &value)
Definition: UpdateAgentStatusRequest.h:139
Aws::Connect::Model::UpdateAgentStatusRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: UpdateAgentStatusRequest.h:180
Aws::Connect::Model::UpdateAgentStatusRequest::GetName
const Aws::String & GetName() const
Definition: UpdateAgentStatusRequest.h:129
Aws::Connect::Model::UpdateAgentStatusRequest::SetAgentStatusId
void SetAgentStatusId(const Aws::String &value)
Definition: UpdateAgentStatusRequest.h:98
Aws::Connect::Model::UpdateAgentStatusRequest::StateHasBeenSet
bool StateHasBeenSet() const
Definition: UpdateAgentStatusRequest.h:216
Aws::Connect::Model::UpdateAgentStatusRequest::WithState
UpdateAgentStatusRequest & WithState(AgentStatusState &&value)
Definition: UpdateAgentStatusRequest.h:236
Aws::Connect::Model::UpdateAgentStatusRequest::SetState
void SetState(const AgentStatusState &value)
Definition: UpdateAgentStatusRequest.h:221
Aws::Connect::Model::UpdateAgentStatusRequest::SetAgentStatusId
void SetAgentStatusId(Aws::String &&value)
Definition: UpdateAgentStatusRequest.h:103
Aws::Connect::Model::UpdateAgentStatusRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Connect::Model::UpdateAgentStatusRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: UpdateAgentStatusRequest.h:185
Aws::Connect::Model::UpdateAgentStatusRequest::SetDisplayOrder
void SetDisplayOrder(int value)
Definition: UpdateAgentStatusRequest.h:252
Aws::Connect::Model::UpdateAgentStatusRequest::WithInstanceId
UpdateAgentStatusRequest & WithInstanceId(const char *value)
Definition: UpdateAgentStatusRequest.h:82
Aws::Connect::Model::UpdateAgentStatusRequest::WithName
UpdateAgentStatusRequest & WithName(Aws::String &&value)
Definition: UpdateAgentStatusRequest.h:159
Aws::Connect::Model::UpdateAgentStatusRequest::DisplayOrderHasBeenSet
bool DisplayOrderHasBeenSet() const
Definition: UpdateAgentStatusRequest.h:247
AgentStatusState.h
Aws::Connect::Model::UpdateAgentStatusRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: UpdateAgentStatusRequest.h:52
Aws::Connect::Model::UpdateAgentStatusRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: UpdateAgentStatusRequest.h:46
Aws::Connect::Model::UpdateAgentStatusRequest::WithInstanceId
UpdateAgentStatusRequest & WithInstanceId(const Aws::String &value)
Definition: UpdateAgentStatusRequest.h:70
Aws::Connect::Model::UpdateAgentStatusRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: UpdateAgentStatusRequest.h:134
Aws::Connect::Model::UpdateAgentStatusRequest::GetAgentStatusId
const Aws::String & GetAgentStatusId() const
Definition: UpdateAgentStatusRequest.h:88
Aws::Connect::Model::UpdateAgentStatusRequest::WithState
UpdateAgentStatusRequest & WithState(const AgentStatusState &value)
Definition: UpdateAgentStatusRequest.h:231
Aws::Connect::Model::UpdateAgentStatusRequest::WithName
UpdateAgentStatusRequest & WithName(const char *value)
Definition: UpdateAgentStatusRequest.h:164
Aws::Connect::Model::UpdateAgentStatusRequest::WithDescription
UpdateAgentStatusRequest & WithDescription(Aws::String &&value)
Definition: UpdateAgentStatusRequest.h:200
Aws::Connect::ConnectRequest
Definition: ConnectRequest.h:17
Aws::Connect::Model::UpdateAgentStatusRequest::SetDescription
void SetDescription(const char *value)
Definition: UpdateAgentStatusRequest.h:190
AWSString.h
Aws::Connect::Model::UpdateAgentStatusRequest::WithDescription
UpdateAgentStatusRequest & WithDescription(const char *value)
Definition: UpdateAgentStatusRequest.h:205
Aws::Connect::Model::UpdateAgentStatusRequest::SetName
void SetName(Aws::String &&value)
Definition: UpdateAgentStatusRequest.h:144
Aws::Connect::Model::UpdateAgentStatusRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateAgentStatusRequest.h:31
Aws::Connect::Model::UpdateAgentStatusRequest::AgentStatusIdHasBeenSet
bool AgentStatusIdHasBeenSet() const
Definition: UpdateAgentStatusRequest.h:93
Aws::Connect::Model::UpdateAgentStatusRequest::GetDescription
const Aws::String & GetDescription() const
Definition: UpdateAgentStatusRequest.h:170
Aws::Connect::Model::UpdateAgentStatusRequest::WithAgentStatusId
UpdateAgentStatusRequest & WithAgentStatusId(const Aws::String &value)
Definition: UpdateAgentStatusRequest.h:113
Aws::Connect::Model::UpdateAgentStatusRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: UpdateAgentStatusRequest.h:58
Aws::Connect::Model::UpdateAgentStatusRequest::WithResetOrderNumber
UpdateAgentStatusRequest & WithResetOrderNumber(bool value)
Definition: UpdateAgentStatusRequest.h:278
Aws::Connect::Model::UpdateAgentStatusRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: UpdateAgentStatusRequest.h:40
Aws::Connect::Model::UpdateAgentStatusRequest::WithAgentStatusId
UpdateAgentStatusRequest & WithAgentStatusId(const char *value)
Definition: UpdateAgentStatusRequest.h:123
Aws::Connect::Model::UpdateAgentStatusRequest::UpdateAgentStatusRequest
UpdateAgentStatusRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::Connect::Model::AgentStatusState
AgentStatusState
Definition: AgentStatusState.h:17
Aws::Connect::Model::UpdateAgentStatusRequest::SetAgentStatusId
void SetAgentStatusId(const char *value)
Definition: UpdateAgentStatusRequest.h:108
Aws::Connect::Model::UpdateAgentStatusRequest::WithDescription
UpdateAgentStatusRequest & WithDescription(const Aws::String &value)
Definition: UpdateAgentStatusRequest.h:195
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Connect::Model::UpdateAgentStatusRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: UpdateAgentStatusRequest.h:64
Aws::Connect::Model::UpdateAgentStatusRequest::SetName
void SetName(const char *value)
Definition: UpdateAgentStatusRequest.h:149
Aws::Connect::Model::UpdateAgentStatusRequest::ResetOrderNumberHasBeenSet
bool ResetOrderNumberHasBeenSet() const
Definition: UpdateAgentStatusRequest.h:268
Aws::Connect::Model::UpdateAgentStatusRequest::WithName
UpdateAgentStatusRequest & WithName(const Aws::String &value)
Definition: UpdateAgentStatusRequest.h:154
Aws::Connect::Model::UpdateAgentStatusRequest::SetState
void SetState(AgentStatusState &&value)
Definition: UpdateAgentStatusRequest.h:226
AWS_CONNECT_API
#define AWS_CONNECT_API
Definition: Connect_EXPORTS.h:28
Aws::Connect::Model::UpdateAgentStatusRequest::GetDisplayOrder
int GetDisplayOrder() const
Definition: UpdateAgentStatusRequest.h:242
Connect_EXPORTS.h
Aws::Connect::Model::UpdateAgentStatusRequest
Definition: UpdateAgentStatusRequest.h:23
ConnectRequest.h
Aws::Connect::Model::UpdateAgentStatusRequest::WithInstanceId
UpdateAgentStatusRequest & WithInstanceId(Aws::String &&value)
Definition: UpdateAgentStatusRequest.h:76
Aws::Connect::Model::UpdateAgentStatusRequest::SetResetOrderNumber
void SetResetOrderNumber(bool value)
Definition: UpdateAgentStatusRequest.h:273