Interface CreateWorkforceRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateWorkforceRequest.Builder,CreateWorkforceRequest>
,SageMakerRequest.Builder
,SdkBuilder<CreateWorkforceRequest.Builder,CreateWorkforceRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- CreateWorkforceRequest
public static interface CreateWorkforceRequest.Builder extends SageMakerRequest.Builder, SdkPojo, CopyableBuilder<CreateWorkforceRequest.Builder,CreateWorkforceRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CreateWorkforceRequest.Builder
cognitoConfig(Consumer<CognitoConfig.Builder> cognitoConfig)
Use this parameter to configure an Amazon Cognito private workforce.CreateWorkforceRequest.Builder
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.CreateWorkforceRequest.Builder
oidcConfig(OidcConfig oidcConfig)
Use this parameter to configure a private workforce using your own OIDC Identity Provider.CreateWorkforceRequest.Builder
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
CreateWorkforceRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
default CreateWorkforceRequest.Builder
sourceIpConfig(Consumer<SourceIpConfig.Builder> sourceIpConfig)
Sets the value of the SourceIpConfig property for this object.CreateWorkforceRequest.Builder
sourceIpConfig(SourceIpConfig sourceIpConfig)
Sets the value of the SourceIpConfig property for this object.CreateWorkforceRequest.Builder
tags(Collection<Tag> tags)
An array of key-value pairs that contain metadata to help you categorize and organize our workforce.CreateWorkforceRequest.Builder
tags(Consumer<Tag.Builder>... tags)
An array of key-value pairs that contain metadata to help you categorize and organize our workforce.CreateWorkforceRequest.Builder
tags(Tag... tags)
An array of key-value pairs that contain metadata to help you categorize and organize our workforce.CreateWorkforceRequest.Builder
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.CreateWorkforceRequest.Builder
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 Detail
-
cognitoConfig
CreateWorkforceRequest.Builder cognitoConfig(CognitoConfig 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
default CreateWorkforceRequest.Builder cognitoConfig(Consumer<CognitoConfig.Builder> 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:
cognitoConfig(CognitoConfig)
-
oidcConfig
CreateWorkforceRequest.Builder oidcConfig(OidcConfig 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
default CreateWorkforceRequest.Builder oidcConfig(Consumer<OidcConfig.Builder> 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:
oidcConfig(OidcConfig)
-
sourceIpConfig
CreateWorkforceRequest.Builder sourceIpConfig(SourceIpConfig 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:
sourceIpConfig(SourceIpConfig)
-
workforceName
CreateWorkforceRequest.Builder workforceName(String 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
CreateWorkforceRequest.Builder tags(Collection<Tag> 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
CreateWorkforceRequest.Builder tags(Tag... 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
CreateWorkforceRequest.Builder tags(Consumer<Tag.Builder>... 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 to#tags(List
.) - 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:
#tags(java.util.Collection
)
-
workforceVpcConfig
CreateWorkforceRequest.Builder workforceVpcConfig(WorkforceVpcConfigRequest 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:
workforceVpcConfig(WorkforceVpcConfigRequest)
-
overrideConfiguration
CreateWorkforceRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
CreateWorkforceRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-