AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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 <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace SageMaker
28{
29namespace Model
30{
31
44 {
45 public:
46 AWS_SAGEMAKER_API Workforce() = default;
47 AWS_SAGEMAKER_API Workforce(Aws::Utils::Json::JsonView jsonValue);
48 AWS_SAGEMAKER_API Workforce& operator=(Aws::Utils::Json::JsonView jsonValue);
49 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
50
51
53
56 inline const Aws::String& GetWorkforceName() const { return m_workforceName; }
57 inline bool WorkforceNameHasBeenSet() const { return m_workforceNameHasBeenSet; }
58 template<typename WorkforceNameT = Aws::String>
59 void SetWorkforceName(WorkforceNameT&& value) { m_workforceNameHasBeenSet = true; m_workforceName = std::forward<WorkforceNameT>(value); }
60 template<typename WorkforceNameT = Aws::String>
61 Workforce& WithWorkforceName(WorkforceNameT&& value) { SetWorkforceName(std::forward<WorkforceNameT>(value)); return *this;}
63
65
68 inline const Aws::String& GetWorkforceArn() const { return m_workforceArn; }
69 inline bool WorkforceArnHasBeenSet() const { return m_workforceArnHasBeenSet; }
70 template<typename WorkforceArnT = Aws::String>
71 void SetWorkforceArn(WorkforceArnT&& value) { m_workforceArnHasBeenSet = true; m_workforceArn = std::forward<WorkforceArnT>(value); }
72 template<typename WorkforceArnT = Aws::String>
73 Workforce& WithWorkforceArn(WorkforceArnT&& value) { SetWorkforceArn(std::forward<WorkforceArnT>(value)); return *this;}
75
77
84 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const { return m_lastUpdatedDate; }
85 inline bool LastUpdatedDateHasBeenSet() const { return m_lastUpdatedDateHasBeenSet; }
86 template<typename LastUpdatedDateT = Aws::Utils::DateTime>
87 void SetLastUpdatedDate(LastUpdatedDateT&& value) { m_lastUpdatedDateHasBeenSet = true; m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value); }
88 template<typename LastUpdatedDateT = Aws::Utils::DateTime>
89 Workforce& WithLastUpdatedDate(LastUpdatedDateT&& value) { SetLastUpdatedDate(std::forward<LastUpdatedDateT>(value)); return *this;}
91
93
99 inline const SourceIpConfig& GetSourceIpConfig() const { return m_sourceIpConfig; }
100 inline bool SourceIpConfigHasBeenSet() const { return m_sourceIpConfigHasBeenSet; }
101 template<typename SourceIpConfigT = SourceIpConfig>
102 void SetSourceIpConfig(SourceIpConfigT&& value) { m_sourceIpConfigHasBeenSet = true; m_sourceIpConfig = std::forward<SourceIpConfigT>(value); }
103 template<typename SourceIpConfigT = SourceIpConfig>
104 Workforce& WithSourceIpConfig(SourceIpConfigT&& value) { SetSourceIpConfig(std::forward<SourceIpConfigT>(value)); return *this;}
106
108
111 inline const Aws::String& GetSubDomain() const { return m_subDomain; }
112 inline bool SubDomainHasBeenSet() const { return m_subDomainHasBeenSet; }
113 template<typename SubDomainT = Aws::String>
114 void SetSubDomain(SubDomainT&& value) { m_subDomainHasBeenSet = true; m_subDomain = std::forward<SubDomainT>(value); }
115 template<typename SubDomainT = Aws::String>
116 Workforce& WithSubDomain(SubDomainT&& value) { SetSubDomain(std::forward<SubDomainT>(value)); return *this;}
118
120
126 inline const CognitoConfig& GetCognitoConfig() const { return m_cognitoConfig; }
127 inline bool CognitoConfigHasBeenSet() const { return m_cognitoConfigHasBeenSet; }
128 template<typename CognitoConfigT = CognitoConfig>
129 void SetCognitoConfig(CognitoConfigT&& value) { m_cognitoConfigHasBeenSet = true; m_cognitoConfig = std::forward<CognitoConfigT>(value); }
130 template<typename CognitoConfigT = CognitoConfig>
131 Workforce& WithCognitoConfig(CognitoConfigT&& value) { SetCognitoConfig(std::forward<CognitoConfigT>(value)); return *this;}
133
135
138 inline const OidcConfigForResponse& GetOidcConfig() const { return m_oidcConfig; }
139 inline bool OidcConfigHasBeenSet() const { return m_oidcConfigHasBeenSet; }
140 template<typename OidcConfigT = OidcConfigForResponse>
141 void SetOidcConfig(OidcConfigT&& value) { m_oidcConfigHasBeenSet = true; m_oidcConfig = std::forward<OidcConfigT>(value); }
142 template<typename OidcConfigT = OidcConfigForResponse>
143 Workforce& WithOidcConfig(OidcConfigT&& value) { SetOidcConfig(std::forward<OidcConfigT>(value)); return *this;}
145
147
150 inline const Aws::Utils::DateTime& GetCreateDate() const { return m_createDate; }
151 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
152 template<typename CreateDateT = Aws::Utils::DateTime>
153 void SetCreateDate(CreateDateT&& value) { m_createDateHasBeenSet = true; m_createDate = std::forward<CreateDateT>(value); }
154 template<typename CreateDateT = Aws::Utils::DateTime>
155 Workforce& WithCreateDate(CreateDateT&& value) { SetCreateDate(std::forward<CreateDateT>(value)); return *this;}
157
159
162 inline const WorkforceVpcConfigResponse& GetWorkforceVpcConfig() const { return m_workforceVpcConfig; }
163 inline bool WorkforceVpcConfigHasBeenSet() const { return m_workforceVpcConfigHasBeenSet; }
164 template<typename WorkforceVpcConfigT = WorkforceVpcConfigResponse>
165 void SetWorkforceVpcConfig(WorkforceVpcConfigT&& value) { m_workforceVpcConfigHasBeenSet = true; m_workforceVpcConfig = std::forward<WorkforceVpcConfigT>(value); }
166 template<typename WorkforceVpcConfigT = WorkforceVpcConfigResponse>
167 Workforce& WithWorkforceVpcConfig(WorkforceVpcConfigT&& value) { SetWorkforceVpcConfig(std::forward<WorkforceVpcConfigT>(value)); return *this;}
169
171
174 inline WorkforceStatus GetStatus() const { return m_status; }
175 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
176 inline void SetStatus(WorkforceStatus value) { m_statusHasBeenSet = true; m_status = value; }
177 inline Workforce& WithStatus(WorkforceStatus value) { SetStatus(value); return *this;}
179
181
184 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
185 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
186 template<typename FailureReasonT = Aws::String>
187 void SetFailureReason(FailureReasonT&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::forward<FailureReasonT>(value); }
188 template<typename FailureReasonT = Aws::String>
189 Workforce& WithFailureReason(FailureReasonT&& value) { SetFailureReason(std::forward<FailureReasonT>(value)); return *this;}
191 private:
192
193 Aws::String m_workforceName;
194 bool m_workforceNameHasBeenSet = false;
195
196 Aws::String m_workforceArn;
197 bool m_workforceArnHasBeenSet = false;
198
199 Aws::Utils::DateTime m_lastUpdatedDate{};
200 bool m_lastUpdatedDateHasBeenSet = false;
201
202 SourceIpConfig m_sourceIpConfig;
203 bool m_sourceIpConfigHasBeenSet = false;
204
205 Aws::String m_subDomain;
206 bool m_subDomainHasBeenSet = false;
207
208 CognitoConfig m_cognitoConfig;
209 bool m_cognitoConfigHasBeenSet = false;
210
211 OidcConfigForResponse m_oidcConfig;
212 bool m_oidcConfigHasBeenSet = false;
213
214 Aws::Utils::DateTime m_createDate{};
215 bool m_createDateHasBeenSet = false;
216
217 WorkforceVpcConfigResponse m_workforceVpcConfig;
218 bool m_workforceVpcConfigHasBeenSet = false;
219
221 bool m_statusHasBeenSet = false;
222
223 Aws::String m_failureReason;
224 bool m_failureReasonHasBeenSet = false;
225 };
226
227} // namespace Model
228} // namespace SageMaker
229} // namespace Aws
Workforce & WithWorkforceName(WorkforceNameT &&value)
Definition Workforce.h:61
void SetWorkforceVpcConfig(WorkforceVpcConfigT &&value)
Definition Workforce.h:165
void SetSubDomain(SubDomainT &&value)
Definition Workforce.h:114
const Aws::String & GetWorkforceArn() const
Definition Workforce.h:68
bool WorkforceVpcConfigHasBeenSet() const
Definition Workforce.h:163
const Aws::String & GetFailureReason() const
Definition Workforce.h:184
AWS_SAGEMAKER_API Workforce(Aws::Utils::Json::JsonView jsonValue)
void SetCreateDate(CreateDateT &&value)
Definition Workforce.h:153
Workforce & WithStatus(WorkforceStatus value)
Definition Workforce.h:177
Workforce & WithWorkforceVpcConfig(WorkforceVpcConfigT &&value)
Definition Workforce.h:167
bool LastUpdatedDateHasBeenSet() const
Definition Workforce.h:85
Workforce & WithFailureReason(FailureReasonT &&value)
Definition Workforce.h:189
void SetStatus(WorkforceStatus value)
Definition Workforce.h:176
Workforce & WithSubDomain(SubDomainT &&value)
Definition Workforce.h:116
const OidcConfigForResponse & GetOidcConfig() const
Definition Workforce.h:138
Workforce & WithSourceIpConfig(SourceIpConfigT &&value)
Definition Workforce.h:104
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
Workforce & WithCreateDate(CreateDateT &&value)
Definition Workforce.h:155
const Aws::Utils::DateTime & GetCreateDate() const
Definition Workforce.h:150
void SetFailureReason(FailureReasonT &&value)
Definition Workforce.h:187
const WorkforceVpcConfigResponse & GetWorkforceVpcConfig() const
Definition Workforce.h:162
Workforce & WithWorkforceArn(WorkforceArnT &&value)
Definition Workforce.h:73
void SetSourceIpConfig(SourceIpConfigT &&value)
Definition Workforce.h:102
const SourceIpConfig & GetSourceIpConfig() const
Definition Workforce.h:99
void SetWorkforceArn(WorkforceArnT &&value)
Definition Workforce.h:71
AWS_SAGEMAKER_API Workforce & operator=(Aws::Utils::Json::JsonView jsonValue)
Workforce & WithLastUpdatedDate(LastUpdatedDateT &&value)
Definition Workforce.h:89
AWS_SAGEMAKER_API Workforce()=default
const Aws::String & GetWorkforceName() const
Definition Workforce.h:56
Workforce & WithOidcConfig(OidcConfigT &&value)
Definition Workforce.h:143
WorkforceStatus GetStatus() const
Definition Workforce.h:174
void SetCognitoConfig(CognitoConfigT &&value)
Definition Workforce.h:129
void SetLastUpdatedDate(LastUpdatedDateT &&value)
Definition Workforce.h:87
const Aws::String & GetSubDomain() const
Definition Workforce.h:111
const CognitoConfig & GetCognitoConfig() const
Definition Workforce.h:126
void SetOidcConfig(OidcConfigT &&value)
Definition Workforce.h:141
void SetWorkforceName(WorkforceNameT &&value)
Definition Workforce.h:59
Workforce & WithCognitoConfig(CognitoConfigT &&value)
Definition Workforce.h:131
const Aws::Utils::DateTime & GetLastUpdatedDate() const
Definition Workforce.h:84
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue