AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CreateAgentStatusRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/connect/model/AgentStatusState.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Connect {
17namespace Model {
18
22 public:
23 AWS_CONNECT_API CreateAgentStatusRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateAgentStatus"; }
30
31 AWS_CONNECT_API Aws::String SerializePayload() const override;
32
34
39 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
40 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
41 template <typename InstanceIdT = Aws::String>
42 void SetInstanceId(InstanceIdT&& value) {
43 m_instanceIdHasBeenSet = true;
44 m_instanceId = std::forward<InstanceIdT>(value);
45 }
46 template <typename InstanceIdT = Aws::String>
48 SetInstanceId(std::forward<InstanceIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template <typename NameT = Aws::String>
60 void SetName(NameT&& value) {
61 m_nameHasBeenSet = true;
62 m_name = std::forward<NameT>(value);
63 }
64 template <typename NameT = Aws::String>
66 SetName(std::forward<NameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetDescription() const { return m_description; }
76 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
77 template <typename DescriptionT = Aws::String>
78 void SetDescription(DescriptionT&& value) {
79 m_descriptionHasBeenSet = true;
80 m_description = std::forward<DescriptionT>(value);
81 }
82 template <typename DescriptionT = Aws::String>
84 SetDescription(std::forward<DescriptionT>(value));
85 return *this;
86 }
88
90
93 inline AgentStatusState GetState() const { return m_state; }
94 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
95 inline void SetState(AgentStatusState value) {
96 m_stateHasBeenSet = true;
97 m_state = value;
98 }
100 SetState(value);
101 return *this;
102 }
104
106
109 inline int GetDisplayOrder() const { return m_displayOrder; }
110 inline bool DisplayOrderHasBeenSet() const { return m_displayOrderHasBeenSet; }
111 inline void SetDisplayOrder(int value) {
112 m_displayOrderHasBeenSet = true;
113 m_displayOrder = value;
114 }
116 SetDisplayOrder(value);
117 return *this;
118 }
120
122
126 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
127 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
128 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
129 void SetTags(TagsT&& value) {
130 m_tagsHasBeenSet = true;
131 m_tags = std::forward<TagsT>(value);
132 }
133 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
135 SetTags(std::forward<TagsT>(value));
136 return *this;
137 }
138 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
139 CreateAgentStatusRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
140 m_tagsHasBeenSet = true;
141 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
142 return *this;
143 }
145 private:
146 Aws::String m_instanceId;
147
148 Aws::String m_name;
149
150 Aws::String m_description;
151
153
154 int m_displayOrder{0};
155
157 bool m_instanceIdHasBeenSet = false;
158 bool m_nameHasBeenSet = false;
159 bool m_descriptionHasBeenSet = false;
160 bool m_stateHasBeenSet = false;
161 bool m_displayOrderHasBeenSet = false;
162 bool m_tagsHasBeenSet = false;
163};
164
165} // namespace Model
166} // namespace Connect
167} // namespace Aws
CreateAgentStatusRequest & WithState(AgentStatusState value)
CreateAgentStatusRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateAgentStatusRequest & WithDescription(DescriptionT &&value)
CreateAgentStatusRequest & WithDisplayOrder(int value)
CreateAgentStatusRequest & WithTags(TagsT &&value)
AWS_CONNECT_API Aws::String SerializePayload() const override
AWS_CONNECT_API CreateAgentStatusRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateAgentStatusRequest & WithName(NameT &&value)
virtual const char * GetServiceRequestName() const override
CreateAgentStatusRequest & WithInstanceId(InstanceIdT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String