AWS SDK for C++  1.9.156
AWS SDK for C++
CreateWorkforceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace SageMaker
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "CreateWorkforce"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
49  inline const CognitoConfig& GetCognitoConfig() const{ return m_cognitoConfig; }
50 
58  inline bool CognitoConfigHasBeenSet() const { return m_cognitoConfigHasBeenSet; }
59 
67  inline void SetCognitoConfig(const CognitoConfig& value) { m_cognitoConfigHasBeenSet = true; m_cognitoConfig = value; }
68 
76  inline void SetCognitoConfig(CognitoConfig&& value) { m_cognitoConfigHasBeenSet = true; m_cognitoConfig = std::move(value); }
77 
85  inline CreateWorkforceRequest& WithCognitoConfig(const CognitoConfig& value) { SetCognitoConfig(value); return *this;}
86 
94  inline CreateWorkforceRequest& WithCognitoConfig(CognitoConfig&& value) { SetCognitoConfig(std::move(value)); return *this;}
95 
96 
102  inline const OidcConfig& GetOidcConfig() const{ return m_oidcConfig; }
103 
109  inline bool OidcConfigHasBeenSet() const { return m_oidcConfigHasBeenSet; }
110 
116  inline void SetOidcConfig(const OidcConfig& value) { m_oidcConfigHasBeenSet = true; m_oidcConfig = value; }
117 
123  inline void SetOidcConfig(OidcConfig&& value) { m_oidcConfigHasBeenSet = true; m_oidcConfig = std::move(value); }
124 
130  inline CreateWorkforceRequest& WithOidcConfig(const OidcConfig& value) { SetOidcConfig(value); return *this;}
131 
137  inline CreateWorkforceRequest& WithOidcConfig(OidcConfig&& value) { SetOidcConfig(std::move(value)); return *this;}
138 
139 
140 
141  inline const SourceIpConfig& GetSourceIpConfig() const{ return m_sourceIpConfig; }
142 
143 
144  inline bool SourceIpConfigHasBeenSet() const { return m_sourceIpConfigHasBeenSet; }
145 
146 
147  inline void SetSourceIpConfig(const SourceIpConfig& value) { m_sourceIpConfigHasBeenSet = true; m_sourceIpConfig = value; }
148 
149 
150  inline void SetSourceIpConfig(SourceIpConfig&& value) { m_sourceIpConfigHasBeenSet = true; m_sourceIpConfig = std::move(value); }
151 
152 
153  inline CreateWorkforceRequest& WithSourceIpConfig(const SourceIpConfig& value) { SetSourceIpConfig(value); return *this;}
154 
155 
156  inline CreateWorkforceRequest& WithSourceIpConfig(SourceIpConfig&& value) { SetSourceIpConfig(std::move(value)); return *this;}
157 
158 
162  inline const Aws::String& GetWorkforceName() const{ return m_workforceName; }
163 
167  inline bool WorkforceNameHasBeenSet() const { return m_workforceNameHasBeenSet; }
168 
172  inline void SetWorkforceName(const Aws::String& value) { m_workforceNameHasBeenSet = true; m_workforceName = value; }
173 
177  inline void SetWorkforceName(Aws::String&& value) { m_workforceNameHasBeenSet = true; m_workforceName = std::move(value); }
178 
182  inline void SetWorkforceName(const char* value) { m_workforceNameHasBeenSet = true; m_workforceName.assign(value); }
183 
187  inline CreateWorkforceRequest& WithWorkforceName(const Aws::String& value) { SetWorkforceName(value); return *this;}
188 
192  inline CreateWorkforceRequest& WithWorkforceName(Aws::String&& value) { SetWorkforceName(std::move(value)); return *this;}
193 
197  inline CreateWorkforceRequest& WithWorkforceName(const char* value) { SetWorkforceName(value); return *this;}
198 
199 
205  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
206 
212  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
213 
219  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
220 
226  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
227 
233  inline CreateWorkforceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
234 
240  inline CreateWorkforceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
241 
247  inline CreateWorkforceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
248 
254  inline CreateWorkforceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
255 
256  private:
257 
258  CognitoConfig m_cognitoConfig;
259  bool m_cognitoConfigHasBeenSet;
260 
261  OidcConfig m_oidcConfig;
262  bool m_oidcConfigHasBeenSet;
263 
264  SourceIpConfig m_sourceIpConfig;
265  bool m_sourceIpConfigHasBeenSet;
266 
267  Aws::String m_workforceName;
268  bool m_workforceNameHasBeenSet;
269 
270  Aws::Vector<Tag> m_tags;
271  bool m_tagsHasBeenSet;
272  };
273 
274 } // namespace Model
275 } // namespace SageMaker
276 } // namespace Aws
Aws::SageMaker::Model::Tag
Definition: Tag.h:44
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
Aws::SageMaker::Model::CreateWorkforceRequest::AddTags
CreateWorkforceRequest & AddTags(Tag &&value)
Definition: CreateWorkforceRequest.h:254
Aws::SageMaker::Model::CreateWorkforceRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateWorkforceRequest.h:212
Aws::SageMaker::Model::CreateWorkforceRequest::GetCognitoConfig
const CognitoConfig & GetCognitoConfig() const
Definition: CreateWorkforceRequest.h:49
Aws::SageMaker::Model::CreateWorkforceRequest::WithWorkforceName
CreateWorkforceRequest & WithWorkforceName(const char *value)
Definition: CreateWorkforceRequest.h:197
SageMaker_EXPORTS.h
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SageMaker::Model::CreateWorkforceRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateWorkforceRequest.h:219
Aws::SageMaker::Model::CreateWorkforceRequest::SetCognitoConfig
void SetCognitoConfig(const CognitoConfig &value)
Definition: CreateWorkforceRequest.h:67
Aws::SageMaker::Model::CreateWorkforceRequest::CreateWorkforceRequest
CreateWorkforceRequest()
Aws::SageMaker::Model::CreateWorkforceRequest::SetSourceIpConfig
void SetSourceIpConfig(SourceIpConfig &&value)
Definition: CreateWorkforceRequest.h:150
Aws::SageMaker::Model::CreateWorkforceRequest::SetSourceIpConfig
void SetSourceIpConfig(const SourceIpConfig &value)
Definition: CreateWorkforceRequest.h:147
Aws::SageMaker::Model::SourceIpConfig
Definition: SourceIpConfig.h:38
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SageMaker::Model::CreateWorkforceRequest::WithSourceIpConfig
CreateWorkforceRequest & WithSourceIpConfig(SourceIpConfig &&value)
Definition: CreateWorkforceRequest.h:156
Aws::SageMaker::Model::CreateWorkforceRequest::AddTags
CreateWorkforceRequest & AddTags(const Tag &value)
Definition: CreateWorkforceRequest.h:247
Aws::SageMaker::Model::CreateWorkforceRequest::WithCognitoConfig
CreateWorkforceRequest & WithCognitoConfig(CognitoConfig &&value)
Definition: CreateWorkforceRequest.h:94
Aws::SageMaker::Model::CreateWorkforceRequest::SerializePayload
Aws::String SerializePayload() const override
AWSVector.h
Aws::SageMaker::Model::CreateWorkforceRequest::SetWorkforceName
void SetWorkforceName(Aws::String &&value)
Definition: CreateWorkforceRequest.h:177
SourceIpConfig.h
Aws::SageMaker::Model::OidcConfig
Definition: OidcConfig.h:33
OidcConfig.h
Aws::SageMaker::Model::CreateWorkforceRequest::WithCognitoConfig
CreateWorkforceRequest & WithCognitoConfig(const CognitoConfig &value)
Definition: CreateWorkforceRequest.h:85
Aws::SageMaker::Model::CreateWorkforceRequest::SetCognitoConfig
void SetCognitoConfig(CognitoConfig &&value)
Definition: CreateWorkforceRequest.h:76
Aws::SageMaker::SageMakerRequest
Definition: SageMakerRequest.h:17
Aws::SageMaker::Model::CreateWorkforceRequest::SetWorkforceName
void SetWorkforceName(const char *value)
Definition: CreateWorkforceRequest.h:182
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::CreateWorkforceRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateWorkforceRequest.h:205
Aws::SageMaker::Model::CreateWorkforceRequest::SetWorkforceName
void SetWorkforceName(const Aws::String &value)
Definition: CreateWorkforceRequest.h:172
Aws::SageMaker::Model::CreateWorkforceRequest::OidcConfigHasBeenSet
bool OidcConfigHasBeenSet() const
Definition: CreateWorkforceRequest.h:109
Aws::SageMaker::Model::CreateWorkforceRequest::CognitoConfigHasBeenSet
bool CognitoConfigHasBeenSet() const
Definition: CreateWorkforceRequest.h:58
Aws::SageMaker::Model::CreateWorkforceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateWorkforceRequest.h:35
Aws::SageMaker::Model::CreateWorkforceRequest::WithWorkforceName
CreateWorkforceRequest & WithWorkforceName(const Aws::String &value)
Definition: CreateWorkforceRequest.h:187
Aws::SageMaker::Model::CreateWorkforceRequest::SourceIpConfigHasBeenSet
bool SourceIpConfigHasBeenSet() const
Definition: CreateWorkforceRequest.h:144
Aws::SageMaker::Model::CreateWorkforceRequest::WithOidcConfig
CreateWorkforceRequest & WithOidcConfig(OidcConfig &&value)
Definition: CreateWorkforceRequest.h:137
AWSString.h
Aws::SageMaker::Model::CreateWorkforceRequest::WithOidcConfig
CreateWorkforceRequest & WithOidcConfig(const OidcConfig &value)
Definition: CreateWorkforceRequest.h:130
Aws::SageMaker::Model::CreateWorkforceRequest::WorkforceNameHasBeenSet
bool WorkforceNameHasBeenSet() const
Definition: CreateWorkforceRequest.h:167
Tag.h
Aws::SageMaker::Model::CreateWorkforceRequest::WithTags
CreateWorkforceRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateWorkforceRequest.h:233
Aws::SageMaker::Model::CreateWorkforceRequest::SetOidcConfig
void SetOidcConfig(OidcConfig &&value)
Definition: CreateWorkforceRequest.h:123
Aws::SageMaker::Model::CreateWorkforceRequest::WithTags
CreateWorkforceRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateWorkforceRequest.h:240
Aws::SageMaker::Model::CreateWorkforceRequest
Definition: CreateWorkforceRequest.h:27
Aws
Definition: AccessManagementClient.h:15
Aws::SageMaker::Model::CreateWorkforceRequest::GetWorkforceName
const Aws::String & GetWorkforceName() const
Definition: CreateWorkforceRequest.h:162
Aws::SageMaker::Model::CognitoConfig
Definition: CognitoConfig.h:35
SageMakerRequest.h
Aws::SageMaker::Model::CreateWorkforceRequest::GetSourceIpConfig
const SourceIpConfig & GetSourceIpConfig() const
Definition: CreateWorkforceRequest.h:141
CognitoConfig.h
Aws::SageMaker::Model::CreateWorkforceRequest::SetOidcConfig
void SetOidcConfig(const OidcConfig &value)
Definition: CreateWorkforceRequest.h:116
Aws::SageMaker::Model::CreateWorkforceRequest::WithSourceIpConfig
CreateWorkforceRequest & WithSourceIpConfig(const SourceIpConfig &value)
Definition: CreateWorkforceRequest.h:153
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::CreateWorkforceRequest::GetOidcConfig
const OidcConfig & GetOidcConfig() const
Definition: CreateWorkforceRequest.h:102
Aws::SageMaker::Model::CreateWorkforceRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SageMaker::Model::CreateWorkforceRequest::WithWorkforceName
CreateWorkforceRequest & WithWorkforceName(Aws::String &&value)
Definition: CreateWorkforceRequest.h:192
Aws::SageMaker::Model::CreateWorkforceRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateWorkforceRequest.h:226