7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/SageMakerRequest.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/CognitoConfig.h>
12#include <aws/sagemaker/model/OidcConfig.h>
13#include <aws/sagemaker/model/SourceIpConfig.h>
14#include <aws/sagemaker/model/Tag.h>
15#include <aws/sagemaker/model/WorkforceIpAddressType.h>
16#include <aws/sagemaker/model/WorkforceVpcConfigRequest.h>
50 template <
typename CognitoConfigT = CognitoConfig>
52 m_cognitoConfigHasBeenSet =
true;
53 m_cognitoConfig = std::forward<CognitoConfigT>(value);
55 template <
typename CognitoConfigT = CognitoConfig>
70 template <
typename O
idcConfigT = O
idcConfig>
72 m_oidcConfigHasBeenSet =
true;
73 m_oidcConfig = std::forward<OidcConfigT>(value);
75 template <
typename O
idcConfigT = O
idcConfig>
86 template <
typename SourceIpConfigT = SourceIpConfig>
88 m_sourceIpConfigHasBeenSet =
true;
89 m_sourceIpConfig = std::forward<SourceIpConfigT>(value);
91 template <
typename SourceIpConfigT = SourceIpConfig>
104 template <
typename WorkforceNameT = Aws::String>
106 m_workforceNameHasBeenSet =
true;
107 m_workforceName = std::forward<WorkforceNameT>(value);
109 template <
typename WorkforceNameT = Aws::String>
124 template <
typename TagsT = Aws::Vector<Tag>>
126 m_tagsHasBeenSet =
true;
127 m_tags = std::forward<TagsT>(value);
129 template <
typename TagsT = Aws::Vector<Tag>>
131 SetTags(std::forward<TagsT>(value));
134 template <
typename TagsT = Tag>
136 m_tagsHasBeenSet =
true;
137 m_tags.emplace_back(std::forward<TagsT>(value));
148 template <
typename WorkforceVpcConfigT = WorkforceVpcConfigRequest>
150 m_workforceVpcConfigHasBeenSet =
true;
151 m_workforceVpcConfig = std::forward<WorkforceVpcConfigT>(value);
153 template <
typename WorkforceVpcConfigT = WorkforceVpcConfigRequest>
169 m_ipAddressTypeHasBeenSet =
true;
170 m_ipAddressType = value;
191 bool m_cognitoConfigHasBeenSet =
false;
192 bool m_oidcConfigHasBeenSet =
false;
193 bool m_sourceIpConfigHasBeenSet =
false;
194 bool m_workforceNameHasBeenSet =
false;
195 bool m_tagsHasBeenSet =
false;
196 bool m_workforceVpcConfigHasBeenSet =
false;
197 bool m_ipAddressTypeHasBeenSet =
false;
AWS_SAGEMAKER_API CreateWorkforceRequest()=default
CreateWorkforceRequest & AddTags(TagsT &&value)
void SetOidcConfig(OidcConfigT &&value)
const CognitoConfig & GetCognitoConfig() const
CreateWorkforceRequest & WithOidcConfig(OidcConfigT &&value)
void SetWorkforceVpcConfig(WorkforceVpcConfigT &&value)
bool TagsHasBeenSet() const
void SetSourceIpConfig(SourceIpConfigT &&value)
bool CognitoConfigHasBeenSet() const
void SetWorkforceName(WorkforceNameT &&value)
CreateWorkforceRequest & WithWorkforceName(WorkforceNameT &&value)
CreateWorkforceRequest & WithCognitoConfig(CognitoConfigT &&value)
bool IpAddressTypeHasBeenSet() const
virtual const char * GetServiceRequestName() const override
bool WorkforceVpcConfigHasBeenSet() const
CreateWorkforceRequest & WithIpAddressType(WorkforceIpAddressType value)
bool OidcConfigHasBeenSet() const
CreateWorkforceRequest & WithWorkforceVpcConfig(WorkforceVpcConfigT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
const Aws::Vector< Tag > & GetTags() const
CreateWorkforceRequest & WithSourceIpConfig(SourceIpConfigT &&value)
void SetCognitoConfig(CognitoConfigT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
bool SourceIpConfigHasBeenSet() const
const OidcConfig & GetOidcConfig() const
const WorkforceVpcConfigRequest & GetWorkforceVpcConfig() const
CreateWorkforceRequest & WithTags(TagsT &&value)
void SetTags(TagsT &&value)
void SetIpAddressType(WorkforceIpAddressType value)
const SourceIpConfig & GetSourceIpConfig() const
WorkforceIpAddressType GetIpAddressType() const
const Aws::String & GetWorkforceName() const
bool WorkforceNameHasBeenSet() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector