AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AgentStatus.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/connect/model/AgentStatusType.h>
10#include <aws/connect/model/AgentStatusState.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/DateTime.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Connect
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_CONNECT_API AgentStatus();
39 AWS_CONNECT_API AgentStatus(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetAgentStatusARN() const{ return m_agentStatusARN; }
49 inline bool AgentStatusARNHasBeenSet() const { return m_agentStatusARNHasBeenSet; }
50 inline void SetAgentStatusARN(const Aws::String& value) { m_agentStatusARNHasBeenSet = true; m_agentStatusARN = value; }
51 inline void SetAgentStatusARN(Aws::String&& value) { m_agentStatusARNHasBeenSet = true; m_agentStatusARN = std::move(value); }
52 inline void SetAgentStatusARN(const char* value) { m_agentStatusARNHasBeenSet = true; m_agentStatusARN.assign(value); }
53 inline AgentStatus& WithAgentStatusARN(const Aws::String& value) { SetAgentStatusARN(value); return *this;}
54 inline AgentStatus& WithAgentStatusARN(Aws::String&& value) { SetAgentStatusARN(std::move(value)); return *this;}
55 inline AgentStatus& WithAgentStatusARN(const char* value) { SetAgentStatusARN(value); return *this;}
57
59
62 inline const Aws::String& GetAgentStatusId() const{ return m_agentStatusId; }
63 inline bool AgentStatusIdHasBeenSet() const { return m_agentStatusIdHasBeenSet; }
64 inline void SetAgentStatusId(const Aws::String& value) { m_agentStatusIdHasBeenSet = true; m_agentStatusId = value; }
65 inline void SetAgentStatusId(Aws::String&& value) { m_agentStatusIdHasBeenSet = true; m_agentStatusId = std::move(value); }
66 inline void SetAgentStatusId(const char* value) { m_agentStatusIdHasBeenSet = true; m_agentStatusId.assign(value); }
67 inline AgentStatus& WithAgentStatusId(const Aws::String& value) { SetAgentStatusId(value); return *this;}
68 inline AgentStatus& WithAgentStatusId(Aws::String&& value) { SetAgentStatusId(std::move(value)); return *this;}
69 inline AgentStatus& WithAgentStatusId(const char* value) { SetAgentStatusId(value); return *this;}
71
73
76 inline const Aws::String& GetName() const{ return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
79 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
80 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
81 inline AgentStatus& WithName(const Aws::String& value) { SetName(value); return *this;}
82 inline AgentStatus& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
83 inline AgentStatus& WithName(const char* value) { SetName(value); return *this;}
85
87
90 inline const Aws::String& GetDescription() const{ return m_description; }
91 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
92 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
93 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
94 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
95 inline AgentStatus& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
96 inline AgentStatus& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
97 inline AgentStatus& WithDescription(const char* value) { SetDescription(value); return *this;}
99
101
104 inline const AgentStatusType& GetType() const{ return m_type; }
105 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
106 inline void SetType(const AgentStatusType& value) { m_typeHasBeenSet = true; m_type = value; }
107 inline void SetType(AgentStatusType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
108 inline AgentStatus& WithType(const AgentStatusType& value) { SetType(value); return *this;}
109 inline AgentStatus& WithType(AgentStatusType&& value) { SetType(std::move(value)); return *this;}
111
113
116 inline int GetDisplayOrder() const{ return m_displayOrder; }
117 inline bool DisplayOrderHasBeenSet() const { return m_displayOrderHasBeenSet; }
118 inline void SetDisplayOrder(int value) { m_displayOrderHasBeenSet = true; m_displayOrder = value; }
119 inline AgentStatus& WithDisplayOrder(int value) { SetDisplayOrder(value); return *this;}
121
123
126 inline const AgentStatusState& GetState() const{ return m_state; }
127 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
128 inline void SetState(const AgentStatusState& value) { m_stateHasBeenSet = true; m_state = value; }
129 inline void SetState(AgentStatusState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
130 inline AgentStatus& WithState(const AgentStatusState& value) { SetState(value); return *this;}
131 inline AgentStatus& WithState(AgentStatusState&& value) { SetState(std::move(value)); return *this;}
133
135
139 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
140 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
141 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
142 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
143 inline AgentStatus& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
144 inline AgentStatus& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
145 inline AgentStatus& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
146 inline AgentStatus& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
147 inline AgentStatus& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
148 inline AgentStatus& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
149 inline AgentStatus& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
150 inline AgentStatus& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
151 inline AgentStatus& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
153
155
158 inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
159 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
160 inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
161 inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
162 inline AgentStatus& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;}
163 inline AgentStatus& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
165
167
170 inline const Aws::String& GetLastModifiedRegion() const{ return m_lastModifiedRegion; }
171 inline bool LastModifiedRegionHasBeenSet() const { return m_lastModifiedRegionHasBeenSet; }
172 inline void SetLastModifiedRegion(const Aws::String& value) { m_lastModifiedRegionHasBeenSet = true; m_lastModifiedRegion = value; }
173 inline void SetLastModifiedRegion(Aws::String&& value) { m_lastModifiedRegionHasBeenSet = true; m_lastModifiedRegion = std::move(value); }
174 inline void SetLastModifiedRegion(const char* value) { m_lastModifiedRegionHasBeenSet = true; m_lastModifiedRegion.assign(value); }
175 inline AgentStatus& WithLastModifiedRegion(const Aws::String& value) { SetLastModifiedRegion(value); return *this;}
176 inline AgentStatus& WithLastModifiedRegion(Aws::String&& value) { SetLastModifiedRegion(std::move(value)); return *this;}
177 inline AgentStatus& WithLastModifiedRegion(const char* value) { SetLastModifiedRegion(value); return *this;}
179 private:
180
181 Aws::String m_agentStatusARN;
182 bool m_agentStatusARNHasBeenSet = false;
183
184 Aws::String m_agentStatusId;
185 bool m_agentStatusIdHasBeenSet = false;
186
187 Aws::String m_name;
188 bool m_nameHasBeenSet = false;
189
190 Aws::String m_description;
191 bool m_descriptionHasBeenSet = false;
192
193 AgentStatusType m_type;
194 bool m_typeHasBeenSet = false;
195
196 int m_displayOrder;
197 bool m_displayOrderHasBeenSet = false;
198
199 AgentStatusState m_state;
200 bool m_stateHasBeenSet = false;
201
203 bool m_tagsHasBeenSet = false;
204
205 Aws::Utils::DateTime m_lastModifiedTime;
206 bool m_lastModifiedTimeHasBeenSet = false;
207
208 Aws::String m_lastModifiedRegion;
209 bool m_lastModifiedRegionHasBeenSet = false;
210 };
211
212} // namespace Model
213} // namespace Connect
214} // namespace Aws
AgentStatus & WithAgentStatusARN(const Aws::String &value)
Definition AgentStatus.h:53
void SetDescription(const Aws::String &value)
Definition AgentStatus.h:92
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAgentStatusARN(const char *value)
Definition AgentStatus.h:52
AgentStatus & AddTags(Aws::String &&key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AgentStatus & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::String & GetAgentStatusId() const
Definition AgentStatus.h:62
void SetType(const AgentStatusType &value)
AgentStatus & WithState(AgentStatusState &&value)
void SetType(AgentStatusType &&value)
AgentStatus & AddTags(const Aws::String &key, Aws::String &&value)
AgentStatus & WithName(const char *value)
Definition AgentStatus.h:83
AWS_CONNECT_API AgentStatus(Aws::Utils::Json::JsonView jsonValue)
AgentStatus & AddTags(const char *key, Aws::String &&value)
AgentStatus & WithAgentStatusId(const char *value)
Definition AgentStatus.h:69
AgentStatus & WithState(const AgentStatusState &value)
AgentStatus & WithLastModifiedTime(Aws::Utils::DateTime &&value)
AgentStatus & WithLastModifiedRegion(const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
AgentStatus & WithDisplayOrder(int value)
void SetAgentStatusARN(const Aws::String &value)
Definition AgentStatus.h:50
const Aws::String & GetLastModifiedRegion() const
void SetName(Aws::String &&value)
Definition AgentStatus.h:79
AgentStatus & WithDescription(const Aws::String &value)
Definition AgentStatus.h:95
AgentStatus & WithAgentStatusARN(const char *value)
Definition AgentStatus.h:55
void SetName(const char *value)
Definition AgentStatus.h:80
AgentStatus & WithName(const Aws::String &value)
Definition AgentStatus.h:81
AgentStatus & AddTags(const Aws::String &key, const Aws::String &value)
AgentStatus & WithLastModifiedRegion(const char *value)
AgentStatus & AddTags(Aws::String &&key, Aws::String &&value)
void SetLastModifiedRegion(const Aws::String &value)
AgentStatus & WithAgentStatusId(Aws::String &&value)
Definition AgentStatus.h:68
const AgentStatusType & GetType() const
AgentStatus & WithDescription(Aws::String &&value)
Definition AgentStatus.h:96
AgentStatus & WithName(Aws::String &&value)
Definition AgentStatus.h:82
void SetState(AgentStatusState &&value)
void SetLastModifiedRegion(const char *value)
void SetLastModifiedRegion(Aws::String &&value)
AgentStatus & WithAgentStatusId(const Aws::String &value)
Definition AgentStatus.h:67
const AgentStatusState & GetState() const
void SetAgentStatusId(const Aws::String &value)
Definition AgentStatus.h:64
void SetAgentStatusARN(Aws::String &&value)
Definition AgentStatus.h:51
const Aws::String & GetDescription() const
Definition AgentStatus.h:90
AWS_CONNECT_API AgentStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
AgentStatus & AddTags(const char *key, const char *value)
AgentStatus & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
AgentStatus & AddTags(Aws::String &&key, const char *value)
const Aws::String & GetName() const
Definition AgentStatus.h:76
AgentStatus & WithType(const AgentStatusType &value)
void SetDescription(const char *value)
Definition AgentStatus.h:94
AgentStatus & WithLastModifiedRegion(Aws::String &&value)
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
AgentStatus & WithDescription(const char *value)
Definition AgentStatus.h:97
AgentStatus & WithLastModifiedTime(const Aws::Utils::DateTime &value)
void SetAgentStatusId(const char *value)
Definition AgentStatus.h:66
AgentStatus & WithAgentStatusARN(Aws::String &&value)
Definition AgentStatus.h:54
const Aws::Utils::DateTime & GetLastModifiedTime() const
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
AgentStatus & WithType(AgentStatusType &&value)
void SetName(const Aws::String &value)
Definition AgentStatus.h:78
const Aws::String & GetAgentStatusARN() const
Definition AgentStatus.h:48
void SetAgentStatusId(Aws::String &&value)
Definition AgentStatus.h:65
void SetState(const AgentStatusState &value)
void SetDescription(Aws::String &&value)
Definition AgentStatus.h:93
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