Class CfnEndpointMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.sagemaker.CfnEndpointMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpointMixinProps>
- Enclosing interface:
CfnEndpointMixinProps
@Stability(Stable)
public static final class CfnEndpointMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEndpointMixinProps>
A builder for
CfnEndpointMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.deploymentConfig(CfnEndpointPropsMixin.DeploymentConfigProperty deploymentConfig) Sets the value ofCfnEndpointMixinProps.getDeploymentConfig()deploymentConfig(IResolvable deploymentConfig) Sets the value ofCfnEndpointMixinProps.getDeploymentConfig()endpointConfigName(String endpointConfigName) Sets the value ofCfnEndpointMixinProps.getEndpointConfigName()endpointName(String endpointName) Sets the value ofCfnEndpointMixinProps.getEndpointName()excludeRetainedVariantProperties(List<? extends Object> excludeRetainedVariantProperties) Sets the value ofCfnEndpointMixinProps.getExcludeRetainedVariantProperties()excludeRetainedVariantProperties(IResolvable excludeRetainedVariantProperties) Sets the value ofCfnEndpointMixinProps.getExcludeRetainedVariantProperties()retainAllVariantProperties(Boolean retainAllVariantProperties) Sets the value ofCfnEndpointMixinProps.getRetainAllVariantProperties()retainAllVariantProperties(IResolvable retainAllVariantProperties) Sets the value ofCfnEndpointMixinProps.getRetainAllVariantProperties()retainDeploymentConfig(Boolean retainDeploymentConfig) Sets the value ofCfnEndpointMixinProps.getRetainDeploymentConfig()retainDeploymentConfig(IResolvable retainDeploymentConfig) Sets the value ofCfnEndpointMixinProps.getRetainDeploymentConfig()Sets the value ofCfnEndpointMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deploymentConfig
@Stability(Stable) public CfnEndpointMixinProps.Builder deploymentConfig(IResolvable deploymentConfig) Sets the value ofCfnEndpointMixinProps.getDeploymentConfig()- Parameters:
deploymentConfig- The deployment configuration for an endpoint, which contains the desired deployment strategy and rollback configurations.- Returns:
this
-
deploymentConfig
@Stability(Stable) public CfnEndpointMixinProps.Builder deploymentConfig(CfnEndpointPropsMixin.DeploymentConfigProperty deploymentConfig) Sets the value ofCfnEndpointMixinProps.getDeploymentConfig()- Parameters:
deploymentConfig- The deployment configuration for an endpoint, which contains the desired deployment strategy and rollback configurations.- Returns:
this
-
endpointConfigName
@Stability(Stable) public CfnEndpointMixinProps.Builder endpointConfigName(String endpointConfigName) Sets the value ofCfnEndpointMixinProps.getEndpointConfigName()- Parameters:
endpointConfigName- The name of the AWS::SageMaker::EndpointConfig resource that specifies the configuration for the endpoint. For more information, see CreateEndpointConfig .- Returns:
this
-
endpointName
Sets the value ofCfnEndpointMixinProps.getEndpointName() -
excludeRetainedVariantProperties
@Stability(Stable) public CfnEndpointMixinProps.Builder excludeRetainedVariantProperties(IResolvable excludeRetainedVariantProperties) Sets the value ofCfnEndpointMixinProps.getExcludeRetainedVariantProperties()- Parameters:
excludeRetainedVariantProperties- When you are updating endpoint resources with RetainAllVariantProperties whose value is set totrue,ExcludeRetainedVariantPropertiesspecifies the list of type VariantProperty to override with the values provided byEndpointConfig. If you don't specify a value forExcludeAllVariantProperties, no variant properties are overridden. Don't use this property when creating new endpoint resources or whenRetainAllVariantPropertiesis set tofalse.- Returns:
this
-
excludeRetainedVariantProperties
@Stability(Stable) public CfnEndpointMixinProps.Builder excludeRetainedVariantProperties(List<? extends Object> excludeRetainedVariantProperties) Sets the value ofCfnEndpointMixinProps.getExcludeRetainedVariantProperties()- Parameters:
excludeRetainedVariantProperties- When you are updating endpoint resources with RetainAllVariantProperties whose value is set totrue,ExcludeRetainedVariantPropertiesspecifies the list of type VariantProperty to override with the values provided byEndpointConfig. If you don't specify a value forExcludeAllVariantProperties, no variant properties are overridden. Don't use this property when creating new endpoint resources or whenRetainAllVariantPropertiesis set tofalse.- Returns:
this
-
retainAllVariantProperties
@Stability(Stable) public CfnEndpointMixinProps.Builder retainAllVariantProperties(Boolean retainAllVariantProperties) Sets the value ofCfnEndpointMixinProps.getRetainAllVariantProperties()- Parameters:
retainAllVariantProperties- When updating endpoint resources, enables or disables the retention of variant properties, such as the instance count or the variant weight. To retain the variant properties of an endpoint when updating it, setRetainAllVariantPropertiestotrue. To use the variant properties specified in a newEndpointConfigcall when updating an endpoint, setRetainAllVariantPropertiestofalse. Use this property only when updating endpoint resources, not when creating new endpoint resources.- Returns:
this
-
retainAllVariantProperties
@Stability(Stable) public CfnEndpointMixinProps.Builder retainAllVariantProperties(IResolvable retainAllVariantProperties) Sets the value ofCfnEndpointMixinProps.getRetainAllVariantProperties()- Parameters:
retainAllVariantProperties- When updating endpoint resources, enables or disables the retention of variant properties, such as the instance count or the variant weight. To retain the variant properties of an endpoint when updating it, setRetainAllVariantPropertiestotrue. To use the variant properties specified in a newEndpointConfigcall when updating an endpoint, setRetainAllVariantPropertiestofalse. Use this property only when updating endpoint resources, not when creating new endpoint resources.- Returns:
this
-
retainDeploymentConfig
@Stability(Stable) public CfnEndpointMixinProps.Builder retainDeploymentConfig(Boolean retainDeploymentConfig) Sets the value ofCfnEndpointMixinProps.getRetainDeploymentConfig()- Parameters:
retainDeploymentConfig- Specifies whether to reuse the last deployment configuration. The default value is false (the configuration is not reused).- Returns:
this
-
retainDeploymentConfig
@Stability(Stable) public CfnEndpointMixinProps.Builder retainDeploymentConfig(IResolvable retainDeploymentConfig) Sets the value ofCfnEndpointMixinProps.getRetainDeploymentConfig()- Parameters:
retainDeploymentConfig- Specifies whether to reuse the last deployment configuration. The default value is false (the configuration is not reused).- Returns:
this
-
tags
Sets the value ofCfnEndpointMixinProps.getTags()- Parameters:
tags- A list of key-value pairs to apply to this resource. For more information, see Resource Tag and Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEndpointMixinProps>- Returns:
- a new instance of
CfnEndpointMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-