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.BuildercognitoConfig(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.BuilderoidcConfig(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.BuildersourceIpConfig(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.BuilderworkforceVpcConfig(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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.sagemaker.model.SageMakerRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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
OidcConfigif 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
OidcConfigif 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 theOidcConfigif you specify values forCognitoConfig.CognitoConfig.Builderavoiding the need to create one manually viaCognitoConfig.builder().When the
Consumercompletes,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
CognitoConfigif you specify values forOidcConfig.- Parameters:
oidcConfig- Use this parameter to configure a private workforce using your own OIDC Identity Provider.Do not use
CognitoConfigif 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 theCognitoConfigif you specify values forOidcConfig.OidcConfig.Builderavoiding the need to create one manually viaOidcConfig.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaSourceIpConfig.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaWorkforceVpcConfigRequest.builder().When the
Consumercompletes,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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-