AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateAgentStatusRequest.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/ConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/connect/model/AgentStatusState.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Connect
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CONNECT_API UpdateAgentStatusRequest();
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_CONNECT_API Aws::String SerializePayload() const override;
34
35
37
42 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
43 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
44 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
45 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
46 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
47 inline UpdateAgentStatusRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
48 inline UpdateAgentStatusRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
49 inline UpdateAgentStatusRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
51
53
56 inline const Aws::String& GetAgentStatusId() const{ return m_agentStatusId; }
57 inline bool AgentStatusIdHasBeenSet() const { return m_agentStatusIdHasBeenSet; }
58 inline void SetAgentStatusId(const Aws::String& value) { m_agentStatusIdHasBeenSet = true; m_agentStatusId = value; }
59 inline void SetAgentStatusId(Aws::String&& value) { m_agentStatusIdHasBeenSet = true; m_agentStatusId = std::move(value); }
60 inline void SetAgentStatusId(const char* value) { m_agentStatusIdHasBeenSet = true; m_agentStatusId.assign(value); }
61 inline UpdateAgentStatusRequest& WithAgentStatusId(const Aws::String& value) { SetAgentStatusId(value); return *this;}
62 inline UpdateAgentStatusRequest& WithAgentStatusId(Aws::String&& value) { SetAgentStatusId(std::move(value)); return *this;}
63 inline UpdateAgentStatusRequest& WithAgentStatusId(const char* value) { SetAgentStatusId(value); return *this;}
65
67
70 inline const Aws::String& GetName() const{ return m_name; }
71 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
72 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
73 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
74 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
75 inline UpdateAgentStatusRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
76 inline UpdateAgentStatusRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
77 inline UpdateAgentStatusRequest& WithName(const char* value) { SetName(value); return *this;}
79
81
84 inline const Aws::String& GetDescription() const{ return m_description; }
85 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
86 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
87 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
88 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
89 inline UpdateAgentStatusRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
90 inline UpdateAgentStatusRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
91 inline UpdateAgentStatusRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
93
95
98 inline const AgentStatusState& GetState() const{ return m_state; }
99 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
100 inline void SetState(const AgentStatusState& value) { m_stateHasBeenSet = true; m_state = value; }
101 inline void SetState(AgentStatusState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
102 inline UpdateAgentStatusRequest& WithState(const AgentStatusState& value) { SetState(value); return *this;}
103 inline UpdateAgentStatusRequest& WithState(AgentStatusState&& value) { SetState(std::move(value)); return *this;}
105
107
110 inline int GetDisplayOrder() const{ return m_displayOrder; }
111 inline bool DisplayOrderHasBeenSet() const { return m_displayOrderHasBeenSet; }
112 inline void SetDisplayOrder(int value) { m_displayOrderHasBeenSet = true; m_displayOrder = value; }
113 inline UpdateAgentStatusRequest& WithDisplayOrder(int value) { SetDisplayOrder(value); return *this;}
115
117
120 inline bool GetResetOrderNumber() const{ return m_resetOrderNumber; }
121 inline bool ResetOrderNumberHasBeenSet() const { return m_resetOrderNumberHasBeenSet; }
122 inline void SetResetOrderNumber(bool value) { m_resetOrderNumberHasBeenSet = true; m_resetOrderNumber = value; }
123 inline UpdateAgentStatusRequest& WithResetOrderNumber(bool value) { SetResetOrderNumber(value); return *this;}
125 private:
126
127 Aws::String m_instanceId;
128 bool m_instanceIdHasBeenSet = false;
129
130 Aws::String m_agentStatusId;
131 bool m_agentStatusIdHasBeenSet = false;
132
133 Aws::String m_name;
134 bool m_nameHasBeenSet = false;
135
136 Aws::String m_description;
137 bool m_descriptionHasBeenSet = false;
138
139 AgentStatusState m_state;
140 bool m_stateHasBeenSet = false;
141
142 int m_displayOrder;
143 bool m_displayOrderHasBeenSet = false;
144
145 bool m_resetOrderNumber;
146 bool m_resetOrderNumberHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace Connect
151} // namespace Aws
UpdateAgentStatusRequest & WithAgentStatusId(const Aws::String &value)
UpdateAgentStatusRequest & WithName(const Aws::String &value)
UpdateAgentStatusRequest & WithInstanceId(const char *value)
UpdateAgentStatusRequest & WithInstanceId(const Aws::String &value)
UpdateAgentStatusRequest & WithState(AgentStatusState &&value)
UpdateAgentStatusRequest & WithDisplayOrder(int value)
UpdateAgentStatusRequest & WithName(const char *value)
AWS_CONNECT_API Aws::String SerializePayload() const override
UpdateAgentStatusRequest & WithState(const AgentStatusState &value)
UpdateAgentStatusRequest & WithAgentStatusId(Aws::String &&value)
UpdateAgentStatusRequest & WithDescription(Aws::String &&value)
UpdateAgentStatusRequest & WithDescription(const Aws::String &value)
UpdateAgentStatusRequest & WithInstanceId(Aws::String &&value)
UpdateAgentStatusRequest & WithResetOrderNumber(bool value)
UpdateAgentStatusRequest & WithDescription(const char *value)
UpdateAgentStatusRequest & WithAgentStatusId(const char *value)
UpdateAgentStatusRequest & WithName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String