Class CfnWorkforceProps.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnWorkforceProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWorkforceProps>
- Enclosing interface:
CfnWorkforceProps
@Stability(Stable)
public static final class CfnWorkforceProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWorkforceProps>
A builder for
CfnWorkforceProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.cognitoConfig(IResolvable cognitoConfig) Sets the value ofCfnWorkforceProps.getCognitoConfig()cognitoConfig(CfnWorkforce.CognitoConfigProperty cognitoConfig) Sets the value ofCfnWorkforceProps.getCognitoConfig()ipAddressType(String ipAddressType) Sets the value ofCfnWorkforceProps.getIpAddressType()oidcConfig(IResolvable oidcConfig) Sets the value ofCfnWorkforceProps.getOidcConfig()oidcConfig(CfnWorkforce.OidcConfigProperty oidcConfig) Sets the value ofCfnWorkforceProps.getOidcConfig()sourceIpConfig(IResolvable sourceIpConfig) Sets the value ofCfnWorkforceProps.getSourceIpConfig()sourceIpConfig(CfnWorkforce.SourceIpConfigProperty sourceIpConfig) Sets the value ofCfnWorkforceProps.getSourceIpConfig()Sets the value ofCfnWorkforceProps.getTags()workforceName(String workforceName) Sets the value ofCfnWorkforceProps.getWorkforceName()workforceVpcConfig(IResolvable workforceVpcConfig) Sets the value ofCfnWorkforceProps.getWorkforceVpcConfig()workforceVpcConfig(CfnWorkforce.WorkforceVpcConfigRequestProperty workforceVpcConfig) Sets the value ofCfnWorkforceProps.getWorkforceVpcConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
workforceName
Sets the value ofCfnWorkforceProps.getWorkforceName()- Parameters:
workforceName- The name of the private workforce. This parameter is required.- Returns:
this
-
cognitoConfig
Sets the value ofCfnWorkforceProps.getCognitoConfig()- Parameters:
cognitoConfig- The configuration of an Amazon Cognito workforce. A single Cognito workforce is created using and corresponds to a single Amazon Cognito user pool.- Returns:
this
-
cognitoConfig
@Stability(Stable) public CfnWorkforceProps.Builder cognitoConfig(CfnWorkforce.CognitoConfigProperty cognitoConfig) Sets the value ofCfnWorkforceProps.getCognitoConfig()- Parameters:
cognitoConfig- The configuration of an Amazon Cognito workforce. A single Cognito workforce is created using and corresponds to a single Amazon Cognito user pool.- Returns:
this
-
ipAddressType
Sets the value ofCfnWorkforceProps.getIpAddressType()- Parameters:
ipAddressType- The IP address type for the workforce. IPv4 only or dualstack (IPv4 and IPv6).- Returns:
this
-
oidcConfig
Sets the value ofCfnWorkforceProps.getOidcConfig()- Parameters:
oidcConfig- The configuration of an OIDC Identity Provider (IdP) private workforce.- Returns:
this
-
oidcConfig
@Stability(Stable) public CfnWorkforceProps.Builder oidcConfig(CfnWorkforce.OidcConfigProperty oidcConfig) Sets the value ofCfnWorkforceProps.getOidcConfig()- Parameters:
oidcConfig- The configuration of an OIDC Identity Provider (IdP) private workforce.- Returns:
this
-
sourceIpConfig
Sets the value ofCfnWorkforceProps.getSourceIpConfig()- Parameters:
sourceIpConfig- A list of IP address ranges used to access your training data.- Returns:
this
-
sourceIpConfig
@Stability(Stable) public CfnWorkforceProps.Builder sourceIpConfig(CfnWorkforce.SourceIpConfigProperty sourceIpConfig) Sets the value ofCfnWorkforceProps.getSourceIpConfig()- Parameters:
sourceIpConfig- A list of IP address ranges used to access your training data.- Returns:
this
-
tags
Sets the value ofCfnWorkforceProps.getTags()- Parameters:
tags- An array of key-value pairs.- Returns:
this
-
workforceVpcConfig
@Stability(Stable) public CfnWorkforceProps.Builder workforceVpcConfig(IResolvable workforceVpcConfig) Sets the value ofCfnWorkforceProps.getWorkforceVpcConfig()- Parameters:
workforceVpcConfig- The VPC configuration for the workforce.- Returns:
this
-
workforceVpcConfig
@Stability(Stable) public CfnWorkforceProps.Builder workforceVpcConfig(CfnWorkforce.WorkforceVpcConfigRequestProperty workforceVpcConfig) Sets the value ofCfnWorkforceProps.getWorkforceVpcConfig()- Parameters:
workforceVpcConfig- The VPC configuration for the workforce.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnWorkforceProps>- Returns:
- a new instance of
CfnWorkforceProps - Throws:
NullPointerException- if any required attribute was not provided
-