AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
AgentContextSummary.h
1
6#pragma once
7#include <aws/context/Context_EXPORTS.h>
8#include <aws/context/model/AgentContextStatus.h>
9#include <aws/context/model/WorkforceSignInConfig.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/crt/cbor/Cbor.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Cbor {
19class CborValue;
20} // namespace Cbor
21} // namespace Utils
22namespace Context {
23namespace Model {
24
32 public:
33 AWS_CONTEXT_API AgentContextSummary() = default;
34 AWS_CONTEXT_API AgentContextSummary(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_CONTEXT_API AgentContextSummary& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
37
39
42 inline const Aws::String& GetId() const { return m_id; }
43 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
44 template <typename IdT = Aws::String>
45 void SetId(IdT&& value) {
46 m_idHasBeenSet = true;
47 m_id = std::forward<IdT>(value);
48 }
49 template <typename IdT = Aws::String>
51 SetId(std::forward<IdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetArn() const { return m_arn; }
61 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
62 template <typename ArnT = Aws::String>
63 void SetArn(ArnT&& value) {
64 m_arnHasBeenSet = true;
65 m_arn = std::forward<ArnT>(value);
66 }
67 template <typename ArnT = Aws::String>
69 SetArn(std::forward<ArnT>(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 AgentContextSummary& 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 AgentContextSummary& WithDescription(DescriptionT&& value) {
105 SetDescription(std::forward<DescriptionT>(value));
106 return *this;
107 }
109
111
119 inline AgentContextStatus GetStatus() const { return m_status; }
120 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
121 inline void SetStatus(AgentContextStatus value) {
122 m_statusHasBeenSet = true;
123 m_status = value;
124 }
126 SetStatus(value);
127 return *this;
128 }
130
132
135 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
136 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
137 template <typename CreatedAtT = Aws::Utils::DateTime>
138 void SetCreatedAt(CreatedAtT&& value) {
139 m_createdAtHasBeenSet = true;
140 m_createdAt = std::forward<CreatedAtT>(value);
141 }
142 template <typename CreatedAtT = Aws::Utils::DateTime>
143 AgentContextSummary& WithCreatedAt(CreatedAtT&& value) {
144 SetCreatedAt(std::forward<CreatedAtT>(value));
145 return *this;
146 }
148
150
154 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
155 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
156 template <typename UpdatedAtT = Aws::Utils::DateTime>
157 void SetUpdatedAt(UpdatedAtT&& value) {
158 m_updatedAtHasBeenSet = true;
159 m_updatedAt = std::forward<UpdatedAtT>(value);
160 }
161 template <typename UpdatedAtT = Aws::Utils::DateTime>
162 AgentContextSummary& WithUpdatedAt(UpdatedAtT&& value) {
163 SetUpdatedAt(std::forward<UpdatedAtT>(value));
164 return *this;
165 }
167
169
174 inline const WorkforceSignInConfig& GetWorkforceSignInConfig() const { return m_workforceSignInConfig; }
175 inline bool WorkforceSignInConfigHasBeenSet() const { return m_workforceSignInConfigHasBeenSet; }
176 template <typename WorkforceSignInConfigT = WorkforceSignInConfig>
177 void SetWorkforceSignInConfig(WorkforceSignInConfigT&& value) {
178 m_workforceSignInConfigHasBeenSet = true;
179 m_workforceSignInConfig = std::forward<WorkforceSignInConfigT>(value);
180 }
181 template <typename WorkforceSignInConfigT = WorkforceSignInConfig>
182 AgentContextSummary& WithWorkforceSignInConfig(WorkforceSignInConfigT&& value) {
183 SetWorkforceSignInConfig(std::forward<WorkforceSignInConfigT>(value));
184 return *this;
185 }
187 private:
188 Aws::String m_id;
189
190 Aws::String m_arn;
191
192 Aws::String m_name;
193
194 Aws::String m_description;
195
197
198 Aws::Utils::DateTime m_createdAt{};
199
200 Aws::Utils::DateTime m_updatedAt{};
201
202 WorkforceSignInConfig m_workforceSignInConfig;
203 bool m_idHasBeenSet = false;
204 bool m_arnHasBeenSet = false;
205 bool m_nameHasBeenSet = false;
206 bool m_descriptionHasBeenSet = false;
207 bool m_statusHasBeenSet = false;
208 bool m_createdAtHasBeenSet = false;
209 bool m_updatedAtHasBeenSet = false;
210 bool m_workforceSignInConfigHasBeenSet = false;
211};
212
213} // namespace Model
214} // namespace Context
215} // namespace Aws
AWS_CONTEXT_API AgentContextSummary & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AgentContextSummary & WithDescription(DescriptionT &&value)
AWS_CONTEXT_API AgentContextSummary(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetStatus(AgentContextStatus value)
AgentContextSummary & WithWorkforceSignInConfig(WorkforceSignInConfigT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::Utils::DateTime & GetCreatedAt() const
AgentContextSummary & WithArn(ArnT &&value)
AgentContextSummary & WithStatus(AgentContextStatus value)
const WorkforceSignInConfig & GetWorkforceSignInConfig() const
AgentContextSummary & WithUpdatedAt(UpdatedAtT &&value)
AgentContextSummary & WithName(NameT &&value)
AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AgentContextSummary & WithId(IdT &&value)
void SetWorkforceSignInConfig(WorkforceSignInConfigT &&value)
AgentContextSummary & WithCreatedAt(CreatedAtT &&value)
AWS_CONTEXT_API AgentContextSummary()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String