AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
AgentStatus.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/AgentStatusState.h>
9#include <aws/connect/model/AgentStatusType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Connect {
24namespace Model {
25
32 public:
33 AWS_CONNECT_API AgentStatus() = default;
34 AWS_CONNECT_API AgentStatus(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetAgentStatusARN() const { return m_agentStatusARN; }
43 inline bool AgentStatusARNHasBeenSet() const { return m_agentStatusARNHasBeenSet; }
44 template <typename AgentStatusARNT = Aws::String>
45 void SetAgentStatusARN(AgentStatusARNT&& value) {
46 m_agentStatusARNHasBeenSet = true;
47 m_agentStatusARN = std::forward<AgentStatusARNT>(value);
48 }
49 template <typename AgentStatusARNT = Aws::String>
50 AgentStatus& WithAgentStatusARN(AgentStatusARNT&& value) {
51 SetAgentStatusARN(std::forward<AgentStatusARNT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetAgentStatusId() const { return m_agentStatusId; }
61 inline bool AgentStatusIdHasBeenSet() const { return m_agentStatusIdHasBeenSet; }
62 template <typename AgentStatusIdT = Aws::String>
63 void SetAgentStatusId(AgentStatusIdT&& value) {
64 m_agentStatusIdHasBeenSet = true;
65 m_agentStatusId = std::forward<AgentStatusIdT>(value);
66 }
67 template <typename AgentStatusIdT = Aws::String>
68 AgentStatus& WithAgentStatusId(AgentStatusIdT&& value) {
69 SetAgentStatusId(std::forward<AgentStatusIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetName() const { return m_name; }
79 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
80 template <typename NameT = Aws::String>
81 void SetName(NameT&& value) {
82 m_nameHasBeenSet = true;
83 m_name = std::forward<NameT>(value);
84 }
85 template <typename NameT = Aws::String>
86 AgentStatus& WithName(NameT&& value) {
87 SetName(std::forward<NameT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetDescription() const { return m_description; }
97 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
98 template <typename DescriptionT = Aws::String>
99 void SetDescription(DescriptionT&& value) {
100 m_descriptionHasBeenSet = true;
101 m_description = std::forward<DescriptionT>(value);
102 }
103 template <typename DescriptionT = Aws::String>
104 AgentStatus& WithDescription(DescriptionT&& value) {
105 SetDescription(std::forward<DescriptionT>(value));
106 return *this;
107 }
109
111
114 inline AgentStatusType GetType() const { return m_type; }
115 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
116 inline void SetType(AgentStatusType value) {
117 m_typeHasBeenSet = true;
118 m_type = value;
119 }
121 SetType(value);
122 return *this;
123 }
125
127
130 inline int GetDisplayOrder() const { return m_displayOrder; }
131 inline bool DisplayOrderHasBeenSet() const { return m_displayOrderHasBeenSet; }
132 inline void SetDisplayOrder(int value) {
133 m_displayOrderHasBeenSet = true;
134 m_displayOrder = value;
135 }
136 inline AgentStatus& WithDisplayOrder(int value) {
137 SetDisplayOrder(value);
138 return *this;
139 }
141
143
146 inline AgentStatusState GetState() const { return m_state; }
147 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
148 inline void SetState(AgentStatusState value) {
149 m_stateHasBeenSet = true;
150 m_state = value;
151 }
153 SetState(value);
154 return *this;
155 }
157
159
163 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
164 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
165 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
166 void SetTags(TagsT&& value) {
167 m_tagsHasBeenSet = true;
168 m_tags = std::forward<TagsT>(value);
169 }
170 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
171 AgentStatus& WithTags(TagsT&& value) {
172 SetTags(std::forward<TagsT>(value));
173 return *this;
174 }
175 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
176 AgentStatus& AddTags(TagsKeyT&& key, TagsValueT&& value) {
177 m_tagsHasBeenSet = true;
178 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
179 return *this;
180 }
182
184
187 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
188 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
189 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
190 void SetLastModifiedTime(LastModifiedTimeT&& value) {
191 m_lastModifiedTimeHasBeenSet = true;
192 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
193 }
194 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
195 AgentStatus& WithLastModifiedTime(LastModifiedTimeT&& value) {
196 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
197 return *this;
198 }
200
202
205 inline const Aws::String& GetLastModifiedRegion() const { return m_lastModifiedRegion; }
206 inline bool LastModifiedRegionHasBeenSet() const { return m_lastModifiedRegionHasBeenSet; }
207 template <typename LastModifiedRegionT = Aws::String>
208 void SetLastModifiedRegion(LastModifiedRegionT&& value) {
209 m_lastModifiedRegionHasBeenSet = true;
210 m_lastModifiedRegion = std::forward<LastModifiedRegionT>(value);
211 }
212 template <typename LastModifiedRegionT = Aws::String>
213 AgentStatus& WithLastModifiedRegion(LastModifiedRegionT&& value) {
214 SetLastModifiedRegion(std::forward<LastModifiedRegionT>(value));
215 return *this;
216 }
218 private:
219 Aws::String m_agentStatusARN;
220
221 Aws::String m_agentStatusId;
222
223 Aws::String m_name;
224
225 Aws::String m_description;
226
228
229 int m_displayOrder{0};
230
232
234
235 Aws::Utils::DateTime m_lastModifiedTime{};
236
237 Aws::String m_lastModifiedRegion;
238 bool m_agentStatusARNHasBeenSet = false;
239 bool m_agentStatusIdHasBeenSet = false;
240 bool m_nameHasBeenSet = false;
241 bool m_descriptionHasBeenSet = false;
242 bool m_typeHasBeenSet = false;
243 bool m_displayOrderHasBeenSet = false;
244 bool m_stateHasBeenSet = false;
245 bool m_tagsHasBeenSet = false;
246 bool m_lastModifiedTimeHasBeenSet = false;
247 bool m_lastModifiedRegionHasBeenSet = false;
248};
249
250} // namespace Model
251} // namespace Connect
252} // namespace Aws
void SetType(AgentStatusType value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_CONNECT_API AgentStatus()=default
const Aws::String & GetAgentStatusId() const
Definition AgentStatus.h:60
void SetLastModifiedTime(LastModifiedTimeT &&value)
void SetAgentStatusARN(AgentStatusARNT &&value)
Definition AgentStatus.h:45
AgentStatus & WithLastModifiedRegion(LastModifiedRegionT &&value)
AWS_CONNECT_API AgentStatus(Aws::Utils::Json::JsonView jsonValue)
AgentStatus & WithDescription(DescriptionT &&value)
AgentStatus & WithDisplayOrder(int value)
const Aws::String & GetLastModifiedRegion() const
AgentStatus & WithLastModifiedTime(LastModifiedTimeT &&value)
AgentStatus & WithAgentStatusId(AgentStatusIdT &&value)
Definition AgentStatus.h:68
void SetState(AgentStatusState value)
AgentStatusState GetState() const
AgentStatus & WithName(NameT &&value)
Definition AgentStatus.h:86
void SetDescription(DescriptionT &&value)
Definition AgentStatus.h:99
AgentStatus & WithType(AgentStatusType value)
AgentStatus & WithAgentStatusARN(AgentStatusARNT &&value)
Definition AgentStatus.h:50
AgentStatusType GetType() const
const Aws::String & GetDescription() const
Definition AgentStatus.h:96
AWS_CONNECT_API AgentStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
AgentStatus & AddTags(TagsKeyT &&key, TagsValueT &&value)
AgentStatus & WithTags(TagsT &&value)
const Aws::String & GetName() const
Definition AgentStatus.h:78
void SetName(NameT &&value)
Definition AgentStatus.h:81
void SetLastModifiedRegion(LastModifiedRegionT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
AgentStatus & WithState(AgentStatusState value)
const Aws::String & GetAgentStatusARN() const
Definition AgentStatus.h:42
void SetAgentStatusId(AgentStatusIdT &&value)
Definition AgentStatus.h:63
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
Aws::Utils::Json::JsonValue JsonValue