AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
Workforce.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10#include <aws/sagemaker/model/CognitoConfig.h>
11#include <aws/sagemaker/model/OidcConfigForResponse.h>
12#include <aws/sagemaker/model/SourceIpConfig.h>
13#include <aws/sagemaker/model/WorkforceIpAddressType.h>
14#include <aws/sagemaker/model/WorkforceStatus.h>
15#include <aws/sagemaker/model/WorkforceVpcConfigResponse.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace SageMaker {
27namespace Model {
28
40class Workforce {
41 public:
42 AWS_SAGEMAKER_API Workforce() = default;
43 AWS_SAGEMAKER_API Workforce(Aws::Utils::Json::JsonView jsonValue);
44 AWS_SAGEMAKER_API Workforce& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
46
48
51 inline const Aws::String& GetWorkforceName() const { return m_workforceName; }
52 inline bool WorkforceNameHasBeenSet() const { return m_workforceNameHasBeenSet; }
53 template <typename WorkforceNameT = Aws::String>
54 void SetWorkforceName(WorkforceNameT&& value) {
55 m_workforceNameHasBeenSet = true;
56 m_workforceName = std::forward<WorkforceNameT>(value);
57 }
58 template <typename WorkforceNameT = Aws::String>
59 Workforce& WithWorkforceName(WorkforceNameT&& value) {
60 SetWorkforceName(std::forward<WorkforceNameT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::String& GetWorkforceArn() const { return m_workforceArn; }
70 inline bool WorkforceArnHasBeenSet() const { return m_workforceArnHasBeenSet; }
71 template <typename WorkforceArnT = Aws::String>
72 void SetWorkforceArn(WorkforceArnT&& value) {
73 m_workforceArnHasBeenSet = true;
74 m_workforceArn = std::forward<WorkforceArnT>(value);
75 }
76 template <typename WorkforceArnT = Aws::String>
77 Workforce& WithWorkforceArn(WorkforceArnT&& value) {
78 SetWorkforceArn(std::forward<WorkforceArnT>(value));
79 return *this;
80 }
82
84
91 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const { return m_lastUpdatedDate; }
92 inline bool LastUpdatedDateHasBeenSet() const { return m_lastUpdatedDateHasBeenSet; }
93 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
94 void SetLastUpdatedDate(LastUpdatedDateT&& value) {
95 m_lastUpdatedDateHasBeenSet = true;
96 m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value);
97 }
98 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
99 Workforce& WithLastUpdatedDate(LastUpdatedDateT&& value) {
100 SetLastUpdatedDate(std::forward<LastUpdatedDateT>(value));
101 return *this;
102 }
104
106
112 inline const SourceIpConfig& GetSourceIpConfig() const { return m_sourceIpConfig; }
113 inline bool SourceIpConfigHasBeenSet() const { return m_sourceIpConfigHasBeenSet; }
114 template <typename SourceIpConfigT = SourceIpConfig>
115 void SetSourceIpConfig(SourceIpConfigT&& value) {
116 m_sourceIpConfigHasBeenSet = true;
117 m_sourceIpConfig = std::forward<SourceIpConfigT>(value);
118 }
119 template <typename SourceIpConfigT = SourceIpConfig>
120 Workforce& WithSourceIpConfig(SourceIpConfigT&& value) {
121 SetSourceIpConfig(std::forward<SourceIpConfigT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::String& GetSubDomain() const { return m_subDomain; }
131 inline bool SubDomainHasBeenSet() const { return m_subDomainHasBeenSet; }
132 template <typename SubDomainT = Aws::String>
133 void SetSubDomain(SubDomainT&& value) {
134 m_subDomainHasBeenSet = true;
135 m_subDomain = std::forward<SubDomainT>(value);
136 }
137 template <typename SubDomainT = Aws::String>
138 Workforce& WithSubDomain(SubDomainT&& value) {
139 SetSubDomain(std::forward<SubDomainT>(value));
140 return *this;
141 }
143
145
151 inline const CognitoConfig& GetCognitoConfig() const { return m_cognitoConfig; }
152 inline bool CognitoConfigHasBeenSet() const { return m_cognitoConfigHasBeenSet; }
153 template <typename CognitoConfigT = CognitoConfig>
154 void SetCognitoConfig(CognitoConfigT&& value) {
155 m_cognitoConfigHasBeenSet = true;
156 m_cognitoConfig = std::forward<CognitoConfigT>(value);
157 }
158 template <typename CognitoConfigT = CognitoConfig>
159 Workforce& WithCognitoConfig(CognitoConfigT&& value) {
160 SetCognitoConfig(std::forward<CognitoConfigT>(value));
161 return *this;
162 }
164
166
169 inline const OidcConfigForResponse& GetOidcConfig() const { return m_oidcConfig; }
170 inline bool OidcConfigHasBeenSet() const { return m_oidcConfigHasBeenSet; }
171 template <typename OidcConfigT = OidcConfigForResponse>
172 void SetOidcConfig(OidcConfigT&& value) {
173 m_oidcConfigHasBeenSet = true;
174 m_oidcConfig = std::forward<OidcConfigT>(value);
175 }
176 template <typename OidcConfigT = OidcConfigForResponse>
177 Workforce& WithOidcConfig(OidcConfigT&& value) {
178 SetOidcConfig(std::forward<OidcConfigT>(value));
179 return *this;
180 }
182
184
187 inline const Aws::Utils::DateTime& GetCreateDate() const { return m_createDate; }
188 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
189 template <typename CreateDateT = Aws::Utils::DateTime>
190 void SetCreateDate(CreateDateT&& value) {
191 m_createDateHasBeenSet = true;
192 m_createDate = std::forward<CreateDateT>(value);
193 }
194 template <typename CreateDateT = Aws::Utils::DateTime>
195 Workforce& WithCreateDate(CreateDateT&& value) {
196 SetCreateDate(std::forward<CreateDateT>(value));
197 return *this;
198 }
200
202
205 inline const WorkforceVpcConfigResponse& GetWorkforceVpcConfig() const { return m_workforceVpcConfig; }
206 inline bool WorkforceVpcConfigHasBeenSet() const { return m_workforceVpcConfigHasBeenSet; }
207 template <typename WorkforceVpcConfigT = WorkforceVpcConfigResponse>
208 void SetWorkforceVpcConfig(WorkforceVpcConfigT&& value) {
209 m_workforceVpcConfigHasBeenSet = true;
210 m_workforceVpcConfig = std::forward<WorkforceVpcConfigT>(value);
211 }
212 template <typename WorkforceVpcConfigT = WorkforceVpcConfigResponse>
213 Workforce& WithWorkforceVpcConfig(WorkforceVpcConfigT&& value) {
214 SetWorkforceVpcConfig(std::forward<WorkforceVpcConfigT>(value));
215 return *this;
216 }
218
220
223 inline WorkforceStatus GetStatus() const { return m_status; }
224 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
225 inline void SetStatus(WorkforceStatus value) {
226 m_statusHasBeenSet = true;
227 m_status = value;
228 }
230 SetStatus(value);
231 return *this;
232 }
234
236
239 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
240 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
241 template <typename FailureReasonT = Aws::String>
242 void SetFailureReason(FailureReasonT&& value) {
243 m_failureReasonHasBeenSet = true;
244 m_failureReason = std::forward<FailureReasonT>(value);
245 }
246 template <typename FailureReasonT = Aws::String>
247 Workforce& WithFailureReason(FailureReasonT&& value) {
248 SetFailureReason(std::forward<FailureReasonT>(value));
249 return *this;
250 }
252
254
259 inline WorkforceIpAddressType GetIpAddressType() const { return m_ipAddressType; }
260 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
262 m_ipAddressTypeHasBeenSet = true;
263 m_ipAddressType = value;
264 }
266 SetIpAddressType(value);
267 return *this;
268 }
270 private:
271 Aws::String m_workforceName;
272
273 Aws::String m_workforceArn;
274
275 Aws::Utils::DateTime m_lastUpdatedDate{};
276
277 SourceIpConfig m_sourceIpConfig;
278
279 Aws::String m_subDomain;
280
281 CognitoConfig m_cognitoConfig;
282
283 OidcConfigForResponse m_oidcConfig;
284
285 Aws::Utils::DateTime m_createDate{};
286
287 WorkforceVpcConfigResponse m_workforceVpcConfig;
288
290
291 Aws::String m_failureReason;
292
294 bool m_workforceNameHasBeenSet = false;
295 bool m_workforceArnHasBeenSet = false;
296 bool m_lastUpdatedDateHasBeenSet = false;
297 bool m_sourceIpConfigHasBeenSet = false;
298 bool m_subDomainHasBeenSet = false;
299 bool m_cognitoConfigHasBeenSet = false;
300 bool m_oidcConfigHasBeenSet = false;
301 bool m_createDateHasBeenSet = false;
302 bool m_workforceVpcConfigHasBeenSet = false;
303 bool m_statusHasBeenSet = false;
304 bool m_failureReasonHasBeenSet = false;
305 bool m_ipAddressTypeHasBeenSet = false;
306};
307
308} // namespace Model
309} // namespace SageMaker
310} // namespace Aws
Workforce & WithWorkforceName(WorkforceNameT &&value)
Definition Workforce.h:59
void SetWorkforceVpcConfig(WorkforceVpcConfigT &&value)
Definition Workforce.h:208
void SetSubDomain(SubDomainT &&value)
Definition Workforce.h:133
const Aws::String & GetWorkforceArn() const
Definition Workforce.h:69
bool WorkforceVpcConfigHasBeenSet() const
Definition Workforce.h:206
const Aws::String & GetFailureReason() const
Definition Workforce.h:239
AWS_SAGEMAKER_API Workforce(Aws::Utils::Json::JsonView jsonValue)
Workforce & WithIpAddressType(WorkforceIpAddressType value)
Definition Workforce.h:265
void SetCreateDate(CreateDateT &&value)
Definition Workforce.h:190
Workforce & WithStatus(WorkforceStatus value)
Definition Workforce.h:229
Workforce & WithWorkforceVpcConfig(WorkforceVpcConfigT &&value)
Definition Workforce.h:213
bool LastUpdatedDateHasBeenSet() const
Definition Workforce.h:92
Workforce & WithFailureReason(FailureReasonT &&value)
Definition Workforce.h:247
void SetStatus(WorkforceStatus value)
Definition Workforce.h:225
Workforce & WithSubDomain(SubDomainT &&value)
Definition Workforce.h:138
const OidcConfigForResponse & GetOidcConfig() const
Definition Workforce.h:169
Workforce & WithSourceIpConfig(SourceIpConfigT &&value)
Definition Workforce.h:120
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
Workforce & WithCreateDate(CreateDateT &&value)
Definition Workforce.h:195
WorkforceIpAddressType GetIpAddressType() const
Definition Workforce.h:259
const Aws::Utils::DateTime & GetCreateDate() const
Definition Workforce.h:187
void SetFailureReason(FailureReasonT &&value)
Definition Workforce.h:242
const WorkforceVpcConfigResponse & GetWorkforceVpcConfig() const
Definition Workforce.h:205
Workforce & WithWorkforceArn(WorkforceArnT &&value)
Definition Workforce.h:77
void SetSourceIpConfig(SourceIpConfigT &&value)
Definition Workforce.h:115
const SourceIpConfig & GetSourceIpConfig() const
Definition Workforce.h:112
void SetWorkforceArn(WorkforceArnT &&value)
Definition Workforce.h:72
AWS_SAGEMAKER_API Workforce & operator=(Aws::Utils::Json::JsonView jsonValue)
Workforce & WithLastUpdatedDate(LastUpdatedDateT &&value)
Definition Workforce.h:99
AWS_SAGEMAKER_API Workforce()=default
const Aws::String & GetWorkforceName() const
Definition Workforce.h:51
Workforce & WithOidcConfig(OidcConfigT &&value)
Definition Workforce.h:177
WorkforceStatus GetStatus() const
Definition Workforce.h:223
void SetCognitoConfig(CognitoConfigT &&value)
Definition Workforce.h:154
void SetLastUpdatedDate(LastUpdatedDateT &&value)
Definition Workforce.h:94
void SetIpAddressType(WorkforceIpAddressType value)
Definition Workforce.h:261
const Aws::String & GetSubDomain() const
Definition Workforce.h:130
const CognitoConfig & GetCognitoConfig() const
Definition Workforce.h:151
void SetOidcConfig(OidcConfigT &&value)
Definition Workforce.h:172
void SetWorkforceName(WorkforceNameT &&value)
Definition Workforce.h:54
Workforce & WithCognitoConfig(CognitoConfigT &&value)
Definition Workforce.h:159
const Aws::Utils::DateTime & GetLastUpdatedDate() const
Definition Workforce.h:91
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue