Interface CreateWorkforceRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateWorkforceRequest.Builder,
,CreateWorkforceRequest> SageMakerRequest.Builder
,SdkBuilder<CreateWorkforceRequest.Builder,
,CreateWorkforceRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateWorkforceRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault CreateWorkforceRequest.Builder
cognitoConfig
(Consumer<CognitoConfig.Builder> cognitoConfig) Use this parameter to configure an Amazon Cognito private workforce.cognitoConfig
(CognitoConfig cognitoConfig) Use this parameter to configure an Amazon Cognito private workforce.default CreateWorkforceRequest.Builder
oidcConfig
(Consumer<OidcConfig.Builder> oidcConfig) Use this parameter to configure a private workforce using your own OIDC Identity Provider.oidcConfig
(OidcConfig oidcConfig) Use this parameter to configure a private workforce using your own OIDC Identity Provider.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.default CreateWorkforceRequest.Builder
sourceIpConfig
(Consumer<SourceIpConfig.Builder> sourceIpConfig) Sets the value of the SourceIpConfig property for this object.sourceIpConfig
(SourceIpConfig sourceIpConfig) Sets the value of the SourceIpConfig property for this object.tags
(Collection<Tag> tags) An array of key-value pairs that contain metadata to help you categorize and organize our workforce.tags
(Consumer<Tag.Builder>... tags) An array of key-value pairs that contain metadata to help you categorize and organize our workforce.An array of key-value pairs that contain metadata to help you categorize and organize our workforce.workforceName
(String workforceName) The name of the private workforce.default CreateWorkforceRequest.Builder
workforceVpcConfig
(Consumer<WorkforceVpcConfigRequest.Builder> workforceVpcConfig) Use this parameter to configure a workforce using VPC.workforceVpcConfig
(WorkforceVpcConfigRequest workforceVpcConfig) Use this parameter to configure a workforce using VPC.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.sagemaker.model.SageMakerRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
cognitoConfig
Use this parameter to configure an Amazon Cognito private workforce. A single Cognito workforce is created using and corresponds to a single Amazon Cognito user pool.
Do not use
OidcConfig
if you specify values forCognitoConfig
.- Parameters:
cognitoConfig
- Use this parameter to configure an Amazon Cognito private workforce. A single Cognito workforce is created using and corresponds to a single Amazon Cognito user pool.Do not use
OidcConfig
if you specify values forCognitoConfig
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cognitoConfig
Use this parameter to configure an Amazon Cognito private workforce. A single Cognito workforce is created using and corresponds to a single Amazon Cognito user pool.
Do not use
This is a convenience method that creates an instance of theOidcConfig
if you specify values forCognitoConfig
.CognitoConfig.Builder
avoiding the need to create one manually viaCognitoConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocognitoConfig(CognitoConfig)
.- Parameters:
cognitoConfig
- a consumer that will call methods onCognitoConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
oidcConfig
Use this parameter to configure a private workforce using your own OIDC Identity Provider.
Do not use
CognitoConfig
if you specify values forOidcConfig
.- Parameters:
oidcConfig
- Use this parameter to configure a private workforce using your own OIDC Identity Provider.Do not use
CognitoConfig
if you specify values forOidcConfig
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
oidcConfig
Use this parameter to configure a private workforce using your own OIDC Identity Provider.
Do not use
This is a convenience method that creates an instance of theCognitoConfig
if you specify values forOidcConfig
.OidcConfig.Builder
avoiding the need to create one manually viaOidcConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tooidcConfig(OidcConfig)
.- Parameters:
oidcConfig
- a consumer that will call methods onOidcConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sourceIpConfig
Sets the value of the SourceIpConfig property for this object.- Parameters:
sourceIpConfig
- The new value for the SourceIpConfig property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceIpConfig
default CreateWorkforceRequest.Builder sourceIpConfig(Consumer<SourceIpConfig.Builder> sourceIpConfig) Sets the value of the SourceIpConfig property for this object. This is a convenience method that creates an instance of theSourceIpConfig.Builder
avoiding the need to create one manually viaSourceIpConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosourceIpConfig(SourceIpConfig)
.- Parameters:
sourceIpConfig
- a consumer that will call methods onSourceIpConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
workforceName
The name of the private workforce.
- Parameters:
workforceName
- The name of the private workforce.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
An array of key-value pairs that contain metadata to help you categorize and organize our workforce. Each tag consists of a key and a value, both of which you define.
- Parameters:
tags
- An array of key-value pairs that contain metadata to help you categorize and organize our workforce. Each tag consists of a key and a value, both of which you define.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
An array of key-value pairs that contain metadata to help you categorize and organize our workforce. Each tag consists of a key and a value, both of which you define.
- Parameters:
tags
- An array of key-value pairs that contain metadata to help you categorize and organize our workforce. Each tag consists of a key and a value, both of which you define.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
An array of key-value pairs that contain metadata to help you categorize and organize our workforce. Each tag consists of a key and a value, both of which you define.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
workforceVpcConfig
Use this parameter to configure a workforce using VPC.
- Parameters:
workforceVpcConfig
- Use this parameter to configure a workforce using VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workforceVpcConfig
default CreateWorkforceRequest.Builder workforceVpcConfig(Consumer<WorkforceVpcConfigRequest.Builder> workforceVpcConfig) Use this parameter to configure a workforce using VPC.
This is a convenience method that creates an instance of theWorkforceVpcConfigRequest.Builder
avoiding the need to create one manually viaWorkforceVpcConfigRequest.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toworkforceVpcConfig(WorkforceVpcConfigRequest)
.- Parameters:
workforceVpcConfig
- a consumer that will call methods onWorkforceVpcConfigRequest.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateWorkforceRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateWorkforceRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-