AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
Workforce.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/sagemaker/model/SourceIpConfig.h>
11#include <aws/sagemaker/model/CognitoConfig.h>
12#include <aws/sagemaker/model/OidcConfigForResponse.h>
13#include <aws/sagemaker/model/WorkforceVpcConfigResponse.h>
14#include <aws/sagemaker/model/WorkforceStatus.h>
15#include <aws/sagemaker/model/WorkforceIpAddressType.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace SageMaker
29{
30namespace Model
31{
32
45 {
46 public:
47 AWS_SAGEMAKER_API Workforce() = default;
48 AWS_SAGEMAKER_API Workforce(Aws::Utils::Json::JsonView jsonValue);
49 AWS_SAGEMAKER_API Workforce& operator=(Aws::Utils::Json::JsonView jsonValue);
50 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
51
52
54
57 inline const Aws::String& GetWorkforceName() const { return m_workforceName; }
58 inline bool WorkforceNameHasBeenSet() const { return m_workforceNameHasBeenSet; }
59 template<typename WorkforceNameT = Aws::String>
60 void SetWorkforceName(WorkforceNameT&& value) { m_workforceNameHasBeenSet = true; m_workforceName = std::forward<WorkforceNameT>(value); }
61 template<typename WorkforceNameT = Aws::String>
62 Workforce& WithWorkforceName(WorkforceNameT&& value) { SetWorkforceName(std::forward<WorkforceNameT>(value)); return *this;}
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) { m_workforceArnHasBeenSet = true; m_workforceArn = std::forward<WorkforceArnT>(value); }
73 template<typename WorkforceArnT = Aws::String>
74 Workforce& WithWorkforceArn(WorkforceArnT&& value) { SetWorkforceArn(std::forward<WorkforceArnT>(value)); return *this;}
76
78
85 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const { return m_lastUpdatedDate; }
86 inline bool LastUpdatedDateHasBeenSet() const { return m_lastUpdatedDateHasBeenSet; }
87 template<typename LastUpdatedDateT = Aws::Utils::DateTime>
88 void SetLastUpdatedDate(LastUpdatedDateT&& value) { m_lastUpdatedDateHasBeenSet = true; m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value); }
89 template<typename LastUpdatedDateT = Aws::Utils::DateTime>
90 Workforce& WithLastUpdatedDate(LastUpdatedDateT&& value) { SetLastUpdatedDate(std::forward<LastUpdatedDateT>(value)); return *this;}
92
94
100 inline const SourceIpConfig& GetSourceIpConfig() const { return m_sourceIpConfig; }
101 inline bool SourceIpConfigHasBeenSet() const { return m_sourceIpConfigHasBeenSet; }
102 template<typename SourceIpConfigT = SourceIpConfig>
103 void SetSourceIpConfig(SourceIpConfigT&& value) { m_sourceIpConfigHasBeenSet = true; m_sourceIpConfig = std::forward<SourceIpConfigT>(value); }
104 template<typename SourceIpConfigT = SourceIpConfig>
105 Workforce& WithSourceIpConfig(SourceIpConfigT&& value) { SetSourceIpConfig(std::forward<SourceIpConfigT>(value)); return *this;}
107
109
112 inline const Aws::String& GetSubDomain() const { return m_subDomain; }
113 inline bool SubDomainHasBeenSet() const { return m_subDomainHasBeenSet; }
114 template<typename SubDomainT = Aws::String>
115 void SetSubDomain(SubDomainT&& value) { m_subDomainHasBeenSet = true; m_subDomain = std::forward<SubDomainT>(value); }
116 template<typename SubDomainT = Aws::String>
117 Workforce& WithSubDomain(SubDomainT&& value) { SetSubDomain(std::forward<SubDomainT>(value)); return *this;}
119
121
127 inline const CognitoConfig& GetCognitoConfig() const { return m_cognitoConfig; }
128 inline bool CognitoConfigHasBeenSet() const { return m_cognitoConfigHasBeenSet; }
129 template<typename CognitoConfigT = CognitoConfig>
130 void SetCognitoConfig(CognitoConfigT&& value) { m_cognitoConfigHasBeenSet = true; m_cognitoConfig = std::forward<CognitoConfigT>(value); }
131 template<typename CognitoConfigT = CognitoConfig>
132 Workforce& WithCognitoConfig(CognitoConfigT&& value) { SetCognitoConfig(std::forward<CognitoConfigT>(value)); return *this;}
134
136
139 inline const OidcConfigForResponse& GetOidcConfig() const { return m_oidcConfig; }
140 inline bool OidcConfigHasBeenSet() const { return m_oidcConfigHasBeenSet; }
141 template<typename OidcConfigT = OidcConfigForResponse>
142 void SetOidcConfig(OidcConfigT&& value) { m_oidcConfigHasBeenSet = true; m_oidcConfig = std::forward<OidcConfigT>(value); }
143 template<typename OidcConfigT = OidcConfigForResponse>
144 Workforce& WithOidcConfig(OidcConfigT&& value) { SetOidcConfig(std::forward<OidcConfigT>(value)); return *this;}
146
148
151 inline const Aws::Utils::DateTime& GetCreateDate() const { return m_createDate; }
152 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
153 template<typename CreateDateT = Aws::Utils::DateTime>
154 void SetCreateDate(CreateDateT&& value) { m_createDateHasBeenSet = true; m_createDate = std::forward<CreateDateT>(value); }
155 template<typename CreateDateT = Aws::Utils::DateTime>
156 Workforce& WithCreateDate(CreateDateT&& value) { SetCreateDate(std::forward<CreateDateT>(value)); return *this;}
158
160
163 inline const WorkforceVpcConfigResponse& GetWorkforceVpcConfig() const { return m_workforceVpcConfig; }
164 inline bool WorkforceVpcConfigHasBeenSet() const { return m_workforceVpcConfigHasBeenSet; }
165 template<typename WorkforceVpcConfigT = WorkforceVpcConfigResponse>
166 void SetWorkforceVpcConfig(WorkforceVpcConfigT&& value) { m_workforceVpcConfigHasBeenSet = true; m_workforceVpcConfig = std::forward<WorkforceVpcConfigT>(value); }
167 template<typename WorkforceVpcConfigT = WorkforceVpcConfigResponse>
168 Workforce& WithWorkforceVpcConfig(WorkforceVpcConfigT&& value) { SetWorkforceVpcConfig(std::forward<WorkforceVpcConfigT>(value)); return *this;}
170
172
175 inline WorkforceStatus GetStatus() const { return m_status; }
176 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
177 inline void SetStatus(WorkforceStatus value) { m_statusHasBeenSet = true; m_status = value; }
178 inline Workforce& WithStatus(WorkforceStatus value) { SetStatus(value); return *this;}
180
182
185 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
186 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
187 template<typename FailureReasonT = Aws::String>
188 void SetFailureReason(FailureReasonT&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::forward<FailureReasonT>(value); }
189 template<typename FailureReasonT = Aws::String>
190 Workforce& WithFailureReason(FailureReasonT&& value) { SetFailureReason(std::forward<FailureReasonT>(value)); return *this;}
192
194
199 inline WorkforceIpAddressType GetIpAddressType() const { return m_ipAddressType; }
200 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
201 inline void SetIpAddressType(WorkforceIpAddressType value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; }
204 private:
205
206 Aws::String m_workforceName;
207 bool m_workforceNameHasBeenSet = false;
208
209 Aws::String m_workforceArn;
210 bool m_workforceArnHasBeenSet = false;
211
212 Aws::Utils::DateTime m_lastUpdatedDate{};
213 bool m_lastUpdatedDateHasBeenSet = false;
214
215 SourceIpConfig m_sourceIpConfig;
216 bool m_sourceIpConfigHasBeenSet = false;
217
218 Aws::String m_subDomain;
219 bool m_subDomainHasBeenSet = false;
220
221 CognitoConfig m_cognitoConfig;
222 bool m_cognitoConfigHasBeenSet = false;
223
224 OidcConfigForResponse m_oidcConfig;
225 bool m_oidcConfigHasBeenSet = false;
226
227 Aws::Utils::DateTime m_createDate{};
228 bool m_createDateHasBeenSet = false;
229
230 WorkforceVpcConfigResponse m_workforceVpcConfig;
231 bool m_workforceVpcConfigHasBeenSet = false;
232
234 bool m_statusHasBeenSet = false;
235
236 Aws::String m_failureReason;
237 bool m_failureReasonHasBeenSet = false;
238
240 bool m_ipAddressTypeHasBeenSet = false;
241 };
242
243} // namespace Model
244} // namespace SageMaker
245} // namespace Aws
Workforce & WithWorkforceName(WorkforceNameT &&value)
Definition Workforce.h:62
void SetWorkforceVpcConfig(WorkforceVpcConfigT &&value)
Definition Workforce.h:166
void SetSubDomain(SubDomainT &&value)
Definition Workforce.h:115
const Aws::String & GetWorkforceArn() const
Definition Workforce.h:69
bool WorkforceVpcConfigHasBeenSet() const
Definition Workforce.h:164
const Aws::String & GetFailureReason() const
Definition Workforce.h:185
AWS_SAGEMAKER_API Workforce(Aws::Utils::Json::JsonView jsonValue)
Workforce & WithIpAddressType(WorkforceIpAddressType value)
Definition Workforce.h:202
void SetCreateDate(CreateDateT &&value)
Definition Workforce.h:154
Workforce & WithStatus(WorkforceStatus value)
Definition Workforce.h:178
Workforce & WithWorkforceVpcConfig(WorkforceVpcConfigT &&value)
Definition Workforce.h:168
bool LastUpdatedDateHasBeenSet() const
Definition Workforce.h:86
Workforce & WithFailureReason(FailureReasonT &&value)
Definition Workforce.h:190
void SetStatus(WorkforceStatus value)
Definition Workforce.h:177
Workforce & WithSubDomain(SubDomainT &&value)
Definition Workforce.h:117
const OidcConfigForResponse & GetOidcConfig() const
Definition Workforce.h:139
Workforce & WithSourceIpConfig(SourceIpConfigT &&value)
Definition Workforce.h:105
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
Workforce & WithCreateDate(CreateDateT &&value)
Definition Workforce.h:156
WorkforceIpAddressType GetIpAddressType() const
Definition Workforce.h:199
const Aws::Utils::DateTime & GetCreateDate() const
Definition Workforce.h:151
void SetFailureReason(FailureReasonT &&value)
Definition Workforce.h:188
const WorkforceVpcConfigResponse & GetWorkforceVpcConfig() const
Definition Workforce.h:163
Workforce & WithWorkforceArn(WorkforceArnT &&value)
Definition Workforce.h:74
void SetSourceIpConfig(SourceIpConfigT &&value)
Definition Workforce.h:103
const SourceIpConfig & GetSourceIpConfig() const
Definition Workforce.h:100
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:90
AWS_SAGEMAKER_API Workforce()=default
const Aws::String & GetWorkforceName() const
Definition Workforce.h:57
Workforce & WithOidcConfig(OidcConfigT &&value)
Definition Workforce.h:144
WorkforceStatus GetStatus() const
Definition Workforce.h:175
void SetCognitoConfig(CognitoConfigT &&value)
Definition Workforce.h:130
void SetLastUpdatedDate(LastUpdatedDateT &&value)
Definition Workforce.h:88
void SetIpAddressType(WorkforceIpAddressType value)
Definition Workforce.h:201
const Aws::String & GetSubDomain() const
Definition Workforce.h:112
const CognitoConfig & GetCognitoConfig() const
Definition Workforce.h:127
void SetOidcConfig(OidcConfigT &&value)
Definition Workforce.h:142
void SetWorkforceName(WorkforceNameT &&value)
Definition Workforce.h:60
Workforce & WithCognitoConfig(CognitoConfigT &&value)
Definition Workforce.h:132
const Aws::Utils::DateTime & GetLastUpdatedDate() const
Definition Workforce.h:85
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue