AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetWorkforceName(const Aws::String& value) { m_workforceNameHasBeenSet = true; m_workforceName = value; }
59 inline void SetWorkforceName(Aws::String&& value) { m_workforceNameHasBeenSet = true; m_workforceName = std::move(value); }
60 inline void SetWorkforceName(const char* value) { m_workforceNameHasBeenSet = true; m_workforceName.assign(value); }
61 inline Workforce& WithWorkforceName(const Aws::String& value) { SetWorkforceName(value); return *this;}
62 inline Workforce& WithWorkforceName(Aws::String&& value) { SetWorkforceName(std::move(value)); return *this;}
63 inline Workforce& WithWorkforceName(const char* value) { SetWorkforceName(value); return *this;}
65
67
70 inline const Aws::String& GetWorkforceArn() const{ return m_workforceArn; }
71 inline bool WorkforceArnHasBeenSet() const { return m_workforceArnHasBeenSet; }
72 inline void SetWorkforceArn(const Aws::String& value) { m_workforceArnHasBeenSet = true; m_workforceArn = value; }
73 inline void SetWorkforceArn(Aws::String&& value) { m_workforceArnHasBeenSet = true; m_workforceArn = std::move(value); }
74 inline void SetWorkforceArn(const char* value) { m_workforceArnHasBeenSet = true; m_workforceArn.assign(value); }
75 inline Workforce& WithWorkforceArn(const Aws::String& value) { SetWorkforceArn(value); return *this;}
76 inline Workforce& WithWorkforceArn(Aws::String&& value) { SetWorkforceArn(std::move(value)); return *this;}
77 inline Workforce& WithWorkforceArn(const char* value) { SetWorkforceArn(value); return *this;}
79
81
88 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const{ return m_lastUpdatedDate; }
89 inline bool LastUpdatedDateHasBeenSet() const { return m_lastUpdatedDateHasBeenSet; }
90 inline void SetLastUpdatedDate(const Aws::Utils::DateTime& value) { m_lastUpdatedDateHasBeenSet = true; m_lastUpdatedDate = value; }
91 inline void SetLastUpdatedDate(Aws::Utils::DateTime&& value) { m_lastUpdatedDateHasBeenSet = true; m_lastUpdatedDate = std::move(value); }
92 inline Workforce& WithLastUpdatedDate(const Aws::Utils::DateTime& value) { SetLastUpdatedDate(value); return *this;}
93 inline Workforce& WithLastUpdatedDate(Aws::Utils::DateTime&& value) { SetLastUpdatedDate(std::move(value)); return *this;}
95
97
103 inline const SourceIpConfig& GetSourceIpConfig() const{ return m_sourceIpConfig; }
104 inline bool SourceIpConfigHasBeenSet() const { return m_sourceIpConfigHasBeenSet; }
105 inline void SetSourceIpConfig(const SourceIpConfig& value) { m_sourceIpConfigHasBeenSet = true; m_sourceIpConfig = value; }
106 inline void SetSourceIpConfig(SourceIpConfig&& value) { m_sourceIpConfigHasBeenSet = true; m_sourceIpConfig = std::move(value); }
107 inline Workforce& WithSourceIpConfig(const SourceIpConfig& value) { SetSourceIpConfig(value); return *this;}
108 inline Workforce& WithSourceIpConfig(SourceIpConfig&& value) { SetSourceIpConfig(std::move(value)); return *this;}
110
112
115 inline const Aws::String& GetSubDomain() const{ return m_subDomain; }
116 inline bool SubDomainHasBeenSet() const { return m_subDomainHasBeenSet; }
117 inline void SetSubDomain(const Aws::String& value) { m_subDomainHasBeenSet = true; m_subDomain = value; }
118 inline void SetSubDomain(Aws::String&& value) { m_subDomainHasBeenSet = true; m_subDomain = std::move(value); }
119 inline void SetSubDomain(const char* value) { m_subDomainHasBeenSet = true; m_subDomain.assign(value); }
120 inline Workforce& WithSubDomain(const Aws::String& value) { SetSubDomain(value); return *this;}
121 inline Workforce& WithSubDomain(Aws::String&& value) { SetSubDomain(std::move(value)); return *this;}
122 inline Workforce& WithSubDomain(const char* value) { SetSubDomain(value); return *this;}
124
126
132 inline const CognitoConfig& GetCognitoConfig() const{ return m_cognitoConfig; }
133 inline bool CognitoConfigHasBeenSet() const { return m_cognitoConfigHasBeenSet; }
134 inline void SetCognitoConfig(const CognitoConfig& value) { m_cognitoConfigHasBeenSet = true; m_cognitoConfig = value; }
135 inline void SetCognitoConfig(CognitoConfig&& value) { m_cognitoConfigHasBeenSet = true; m_cognitoConfig = std::move(value); }
136 inline Workforce& WithCognitoConfig(const CognitoConfig& value) { SetCognitoConfig(value); return *this;}
137 inline Workforce& WithCognitoConfig(CognitoConfig&& value) { SetCognitoConfig(std::move(value)); return *this;}
139
141
144 inline const OidcConfigForResponse& GetOidcConfig() const{ return m_oidcConfig; }
145 inline bool OidcConfigHasBeenSet() const { return m_oidcConfigHasBeenSet; }
146 inline void SetOidcConfig(const OidcConfigForResponse& value) { m_oidcConfigHasBeenSet = true; m_oidcConfig = value; }
147 inline void SetOidcConfig(OidcConfigForResponse&& value) { m_oidcConfigHasBeenSet = true; m_oidcConfig = std::move(value); }
148 inline Workforce& WithOidcConfig(const OidcConfigForResponse& value) { SetOidcConfig(value); return *this;}
149 inline Workforce& WithOidcConfig(OidcConfigForResponse&& value) { SetOidcConfig(std::move(value)); return *this;}
151
153
156 inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; }
157 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
158 inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; }
159 inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }
160 inline Workforce& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;}
161 inline Workforce& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;}
163
165
168 inline const WorkforceVpcConfigResponse& GetWorkforceVpcConfig() const{ return m_workforceVpcConfig; }
169 inline bool WorkforceVpcConfigHasBeenSet() const { return m_workforceVpcConfigHasBeenSet; }
170 inline void SetWorkforceVpcConfig(const WorkforceVpcConfigResponse& value) { m_workforceVpcConfigHasBeenSet = true; m_workforceVpcConfig = value; }
171 inline void SetWorkforceVpcConfig(WorkforceVpcConfigResponse&& value) { m_workforceVpcConfigHasBeenSet = true; m_workforceVpcConfig = std::move(value); }
173 inline Workforce& WithWorkforceVpcConfig(WorkforceVpcConfigResponse&& value) { SetWorkforceVpcConfig(std::move(value)); return *this;}
175
177
180 inline const WorkforceStatus& GetStatus() const{ return m_status; }
181 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
182 inline void SetStatus(const WorkforceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
183 inline void SetStatus(WorkforceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
184 inline Workforce& WithStatus(const WorkforceStatus& value) { SetStatus(value); return *this;}
185 inline Workforce& WithStatus(WorkforceStatus&& value) { SetStatus(std::move(value)); return *this;}
187
189
192 inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
193 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
194 inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
195 inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
196 inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); }
197 inline Workforce& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;}
198 inline Workforce& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;}
199 inline Workforce& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
201 private:
202
203 Aws::String m_workforceName;
204 bool m_workforceNameHasBeenSet = false;
205
206 Aws::String m_workforceArn;
207 bool m_workforceArnHasBeenSet = false;
208
209 Aws::Utils::DateTime m_lastUpdatedDate;
210 bool m_lastUpdatedDateHasBeenSet = false;
211
212 SourceIpConfig m_sourceIpConfig;
213 bool m_sourceIpConfigHasBeenSet = false;
214
215 Aws::String m_subDomain;
216 bool m_subDomainHasBeenSet = false;
217
218 CognitoConfig m_cognitoConfig;
219 bool m_cognitoConfigHasBeenSet = false;
220
221 OidcConfigForResponse m_oidcConfig;
222 bool m_oidcConfigHasBeenSet = false;
223
224 Aws::Utils::DateTime m_createDate;
225 bool m_createDateHasBeenSet = false;
226
227 WorkforceVpcConfigResponse m_workforceVpcConfig;
228 bool m_workforceVpcConfigHasBeenSet = false;
229
230 WorkforceStatus m_status;
231 bool m_statusHasBeenSet = false;
232
233 Aws::String m_failureReason;
234 bool m_failureReasonHasBeenSet = false;
235 };
236
237} // namespace Model
238} // namespace SageMaker
239} // namespace Aws
Workforce & WithStatus(const WorkforceStatus &value)
Definition Workforce.h:184
Workforce & WithCreateDate(Aws::Utils::DateTime &&value)
Definition Workforce.h:161
void SetLastUpdatedDate(const Aws::Utils::DateTime &value)
Definition Workforce.h:90
const Aws::String & GetWorkforceArn() const
Definition Workforce.h:70
bool WorkforceVpcConfigHasBeenSet() const
Definition Workforce.h:169
Workforce & WithWorkforceName(Aws::String &&value)
Definition Workforce.h:62
const Aws::String & GetFailureReason() const
Definition Workforce.h:192
Workforce & WithSourceIpConfig(const SourceIpConfig &value)
Definition Workforce.h:107
void SetWorkforceName(const char *value)
Definition Workforce.h:60
void SetFailureReason(Aws::String &&value)
Definition Workforce.h:195
void SetWorkforceArn(const Aws::String &value)
Definition Workforce.h:72
AWS_SAGEMAKER_API Workforce(Aws::Utils::Json::JsonView jsonValue)
Workforce & WithFailureReason(Aws::String &&value)
Definition Workforce.h:198
void SetFailureReason(const Aws::String &value)
Definition Workforce.h:194
void SetWorkforceArn(const char *value)
Definition Workforce.h:74
Workforce & WithStatus(WorkforceStatus &&value)
Definition Workforce.h:185
Workforce & WithSourceIpConfig(SourceIpConfig &&value)
Definition Workforce.h:108
Workforce & WithWorkforceName(const char *value)
Definition Workforce.h:63
Workforce & WithWorkforceVpcConfig(WorkforceVpcConfigResponse &&value)
Definition Workforce.h:173
Workforce & WithSubDomain(Aws::String &&value)
Definition Workforce.h:121
void SetWorkforceName(const Aws::String &value)
Definition Workforce.h:58
Workforce & WithCognitoConfig(CognitoConfig &&value)
Definition Workforce.h:137
void SetOidcConfig(const OidcConfigForResponse &value)
Definition Workforce.h:146
void SetSourceIpConfig(const SourceIpConfig &value)
Definition Workforce.h:105
bool LastUpdatedDateHasBeenSet() const
Definition Workforce.h:89
Workforce & WithWorkforceArn(const char *value)
Definition Workforce.h:77
Workforce & WithSubDomain(const char *value)
Definition Workforce.h:122
void SetSubDomain(const char *value)
Definition Workforce.h:119
void SetStatus(WorkforceStatus &&value)
Definition Workforce.h:183
void SetSubDomain(Aws::String &&value)
Definition Workforce.h:118
Workforce & WithOidcConfig(OidcConfigForResponse &&value)
Definition Workforce.h:149
void SetSourceIpConfig(SourceIpConfig &&value)
Definition Workforce.h:106
const OidcConfigForResponse & GetOidcConfig() const
Definition Workforce.h:144
void SetFailureReason(const char *value)
Definition Workforce.h:196
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetWorkforceArn(Aws::String &&value)
Definition Workforce.h:73
Workforce & WithFailureReason(const Aws::String &value)
Definition Workforce.h:197
const Aws::Utils::DateTime & GetCreateDate() const
Definition Workforce.h:156
Workforce & WithWorkforceArn(Aws::String &&value)
Definition Workforce.h:76
void SetCreateDate(Aws::Utils::DateTime &&value)
Definition Workforce.h:159
void SetCreateDate(const Aws::Utils::DateTime &value)
Definition Workforce.h:158
void SetLastUpdatedDate(Aws::Utils::DateTime &&value)
Definition Workforce.h:91
const WorkforceVpcConfigResponse & GetWorkforceVpcConfig() const
Definition Workforce.h:168
const SourceIpConfig & GetSourceIpConfig() const
Definition Workforce.h:103
void SetStatus(const WorkforceStatus &value)
Definition Workforce.h:182
void SetOidcConfig(OidcConfigForResponse &&value)
Definition Workforce.h:147
AWS_SAGEMAKER_API Workforce & operator=(Aws::Utils::Json::JsonView jsonValue)
Workforce & WithSubDomain(const Aws::String &value)
Definition Workforce.h:120
Workforce & WithLastUpdatedDate(Aws::Utils::DateTime &&value)
Definition Workforce.h:93
Workforce & WithWorkforceVpcConfig(const WorkforceVpcConfigResponse &value)
Definition Workforce.h:172
Workforce & WithLastUpdatedDate(const Aws::Utils::DateTime &value)
Definition Workforce.h:92
const Aws::String & GetWorkforceName() const
Definition Workforce.h:56
Workforce & WithFailureReason(const char *value)
Definition Workforce.h:199
Workforce & WithCreateDate(const Aws::Utils::DateTime &value)
Definition Workforce.h:160
void SetWorkforceVpcConfig(WorkforceVpcConfigResponse &&value)
Definition Workforce.h:171
void SetCognitoConfig(const CognitoConfig &value)
Definition Workforce.h:134
Workforce & WithWorkforceName(const Aws::String &value)
Definition Workforce.h:61
const WorkforceStatus & GetStatus() const
Definition Workforce.h:180
Workforce & WithOidcConfig(const OidcConfigForResponse &value)
Definition Workforce.h:148
Workforce & WithWorkforceArn(const Aws::String &value)
Definition Workforce.h:75
const Aws::String & GetSubDomain() const
Definition Workforce.h:115
Workforce & WithCognitoConfig(const CognitoConfig &value)
Definition Workforce.h:136
void SetSubDomain(const Aws::String &value)
Definition Workforce.h:117
void SetCognitoConfig(CognitoConfig &&value)
Definition Workforce.h:135
const CognitoConfig & GetCognitoConfig() const
Definition Workforce.h:132
void SetWorkforceVpcConfig(const WorkforceVpcConfigResponse &value)
Definition Workforce.h:170
const Aws::Utils::DateTime & GetLastUpdatedDate() const
Definition Workforce.h:88
AWS_SAGEMAKER_API Workforce()
void SetWorkforceName(Aws::String &&value)
Definition Workforce.h:59
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue