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