AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename AgentStatusARNT = Aws::String>
51 void SetAgentStatusARN(AgentStatusARNT&& value) { m_agentStatusARNHasBeenSet = true; m_agentStatusARN = std::forward<AgentStatusARNT>(value); }
52 template<typename AgentStatusARNT = Aws::String>
53 AgentStatus& WithAgentStatusARN(AgentStatusARNT&& value) { SetAgentStatusARN(std::forward<AgentStatusARNT>(value)); return *this;}
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) { m_agentStatusIdHasBeenSet = true; m_agentStatusId = std::forward<AgentStatusIdT>(value); }
64 template<typename AgentStatusIdT = Aws::String>
65 AgentStatus& WithAgentStatusId(AgentStatusIdT&& value) { SetAgentStatusId(std::forward<AgentStatusIdT>(value)); return *this;}
67
69
72 inline const Aws::String& GetName() const { return m_name; }
73 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
74 template<typename NameT = Aws::String>
75 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
76 template<typename NameT = Aws::String>
77 AgentStatus& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
79
81
84 inline const Aws::String& GetDescription() const { return m_description; }
85 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
86 template<typename DescriptionT = Aws::String>
87 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
88 template<typename DescriptionT = Aws::String>
89 AgentStatus& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
91
93
96 inline AgentStatusType GetType() const { return m_type; }
97 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
98 inline void SetType(AgentStatusType value) { m_typeHasBeenSet = true; m_type = value; }
99 inline AgentStatus& WithType(AgentStatusType value) { SetType(value); return *this;}
101
103
106 inline int GetDisplayOrder() const { return m_displayOrder; }
107 inline bool DisplayOrderHasBeenSet() const { return m_displayOrderHasBeenSet; }
108 inline void SetDisplayOrder(int value) { m_displayOrderHasBeenSet = true; m_displayOrder = value; }
109 inline AgentStatus& WithDisplayOrder(int value) { SetDisplayOrder(value); return *this;}
111
113
116 inline AgentStatusState GetState() const { return m_state; }
117 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
118 inline void SetState(AgentStatusState value) { m_stateHasBeenSet = true; m_state = value; }
119 inline AgentStatus& WithState(AgentStatusState value) { SetState(value); return *this;}
121
123
127 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
128 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
129 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
130 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
131 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
132 AgentStatus& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
133 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
134 AgentStatus& AddTags(TagsKeyT&& key, TagsValueT&& value) {
135 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
136 }
138
140
143 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
144 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
145 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
146 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
147 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
148 AgentStatus& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
150
152
155 inline const Aws::String& GetLastModifiedRegion() const { return m_lastModifiedRegion; }
156 inline bool LastModifiedRegionHasBeenSet() const { return m_lastModifiedRegionHasBeenSet; }
157 template<typename LastModifiedRegionT = Aws::String>
158 void SetLastModifiedRegion(LastModifiedRegionT&& value) { m_lastModifiedRegionHasBeenSet = true; m_lastModifiedRegion = std::forward<LastModifiedRegionT>(value); }
159 template<typename LastModifiedRegionT = Aws::String>
160 AgentStatus& WithLastModifiedRegion(LastModifiedRegionT&& value) { SetLastModifiedRegion(std::forward<LastModifiedRegionT>(value)); return *this;}
162 private:
163
164 Aws::String m_agentStatusARN;
165 bool m_agentStatusARNHasBeenSet = false;
166
167 Aws::String m_agentStatusId;
168 bool m_agentStatusIdHasBeenSet = false;
169
170 Aws::String m_name;
171 bool m_nameHasBeenSet = false;
172
173 Aws::String m_description;
174 bool m_descriptionHasBeenSet = false;
175
177 bool m_typeHasBeenSet = false;
178
179 int m_displayOrder{0};
180 bool m_displayOrderHasBeenSet = false;
181
183 bool m_stateHasBeenSet = false;
184
186 bool m_tagsHasBeenSet = false;
187
188 Aws::Utils::DateTime m_lastModifiedTime{};
189 bool m_lastModifiedTimeHasBeenSet = false;
190
191 Aws::String m_lastModifiedRegion;
192 bool m_lastModifiedRegionHasBeenSet = false;
193 };
194
195} // namespace Model
196} // namespace Connect
197} // namespace Aws
void SetType(AgentStatusType value)
Definition AgentStatus.h:98
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:51
AgentStatus & WithLastModifiedRegion(LastModifiedRegionT &&value)
AWS_CONNECT_API AgentStatus(Aws::Utils::Json::JsonView jsonValue)
AgentStatus & WithDescription(DescriptionT &&value)
Definition AgentStatus.h:89
AgentStatus & WithDisplayOrder(int value)
const Aws::String & GetLastModifiedRegion() const
AgentStatus & WithLastModifiedTime(LastModifiedTimeT &&value)
AgentStatus & WithAgentStatusId(AgentStatusIdT &&value)
Definition AgentStatus.h:65
void SetState(AgentStatusState value)
AgentStatusState GetState() const
AgentStatus & WithName(NameT &&value)
Definition AgentStatus.h:77
void SetDescription(DescriptionT &&value)
Definition AgentStatus.h:87
AgentStatus & WithType(AgentStatusType value)
Definition AgentStatus.h:99
AgentStatus & WithAgentStatusARN(AgentStatusARNT &&value)
Definition AgentStatus.h:53
AgentStatusType GetType() const
Definition AgentStatus.h:96
const Aws::String & GetDescription() const
Definition AgentStatus.h:84
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:72
void SetName(NameT &&value)
Definition AgentStatus.h:75
void SetLastModifiedRegion(LastModifiedRegionT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
AgentStatus & WithState(AgentStatusState value)
const Aws::String & GetAgentStatusARN() const
Definition AgentStatus.h:48
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