Class CfnEndpointProps.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnEndpointProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpointProps>
- Enclosing interface:
CfnEndpointProps
@Stability(Stable)
public static final class CfnEndpointProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEndpointProps>
A builder for
CfnEndpointProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.deploymentConfig
(IResolvable deploymentConfig) Sets the value ofCfnEndpointProps.getDeploymentConfig()
deploymentConfig
(CfnEndpoint.DeploymentConfigProperty deploymentConfig) Sets the value ofCfnEndpointProps.getDeploymentConfig()
endpointConfigName
(String endpointConfigName) Sets the value ofCfnEndpointProps.getEndpointConfigName()
endpointName
(String endpointName) Sets the value ofCfnEndpointProps.getEndpointName()
excludeRetainedVariantProperties
(List<? extends Object> excludeRetainedVariantProperties) Sets the value ofCfnEndpointProps.getExcludeRetainedVariantProperties()
excludeRetainedVariantProperties
(IResolvable excludeRetainedVariantProperties) Sets the value ofCfnEndpointProps.getExcludeRetainedVariantProperties()
retainAllVariantProperties
(Boolean retainAllVariantProperties) Sets the value ofCfnEndpointProps.getRetainAllVariantProperties()
retainAllVariantProperties
(IResolvable retainAllVariantProperties) Sets the value ofCfnEndpointProps.getRetainAllVariantProperties()
retainDeploymentConfig
(Boolean retainDeploymentConfig) Sets the value ofCfnEndpointProps.getRetainDeploymentConfig()
retainDeploymentConfig
(IResolvable retainDeploymentConfig) Sets the value ofCfnEndpointProps.getRetainDeploymentConfig()
Sets the value ofCfnEndpointProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
endpointConfigName
Sets the value ofCfnEndpointProps.getEndpointConfigName()
- Parameters:
endpointConfigName
- The name of the AWS::SageMaker::EndpointConfig resource that specifies the configuration for the endpoint. For more information, see CreateEndpointConfig . This parameter is required.- Returns:
this
-
deploymentConfig
Sets the value ofCfnEndpointProps.getDeploymentConfig()
- Parameters:
deploymentConfig
- The deployment configuration for an endpoint, which contains the desired deployment strategy and rollback configurations.- Returns:
this
-
deploymentConfig
@Stability(Stable) public CfnEndpointProps.Builder deploymentConfig(CfnEndpoint.DeploymentConfigProperty deploymentConfig) Sets the value ofCfnEndpointProps.getDeploymentConfig()
- Parameters:
deploymentConfig
- The deployment configuration for an endpoint, which contains the desired deployment strategy and rollback configurations.- Returns:
this
-
endpointName
Sets the value ofCfnEndpointProps.getEndpointName()
-
excludeRetainedVariantProperties
@Stability(Stable) public CfnEndpointProps.Builder excludeRetainedVariantProperties(IResolvable excludeRetainedVariantProperties) Sets the value ofCfnEndpointProps.getExcludeRetainedVariantProperties()
- Parameters:
excludeRetainedVariantProperties
- When you are updating endpoint resources with RetainAllVariantProperties whose value is set totrue
,ExcludeRetainedVariantProperties
specifies 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 whenRetainAllVariantProperties
is set tofalse
.- Returns:
this
-
excludeRetainedVariantProperties
@Stability(Stable) public CfnEndpointProps.Builder excludeRetainedVariantProperties(List<? extends Object> excludeRetainedVariantProperties) Sets the value ofCfnEndpointProps.getExcludeRetainedVariantProperties()
- Parameters:
excludeRetainedVariantProperties
- When you are updating endpoint resources with RetainAllVariantProperties whose value is set totrue
,ExcludeRetainedVariantProperties
specifies 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 whenRetainAllVariantProperties
is set tofalse
.- Returns:
this
-
retainAllVariantProperties
@Stability(Stable) public CfnEndpointProps.Builder retainAllVariantProperties(Boolean retainAllVariantProperties) Sets the value ofCfnEndpointProps.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, setRetainAllVariantProperties
totrue
. To use the variant properties specified in a newEndpointConfig
call when updating an endpoint, setRetainAllVariantProperties
tofalse
. Use this property only when updating endpoint resources, not when creating new endpoint resources.- Returns:
this
-
retainAllVariantProperties
@Stability(Stable) public CfnEndpointProps.Builder retainAllVariantProperties(IResolvable retainAllVariantProperties) Sets the value ofCfnEndpointProps.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, setRetainAllVariantProperties
totrue
. To use the variant properties specified in a newEndpointConfig
call when updating an endpoint, setRetainAllVariantProperties
tofalse
. Use this property only when updating endpoint resources, not when creating new endpoint resources.- Returns:
this
-
retainDeploymentConfig
@Stability(Stable) public CfnEndpointProps.Builder retainDeploymentConfig(Boolean retainDeploymentConfig) Sets the value ofCfnEndpointProps.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 CfnEndpointProps.Builder retainDeploymentConfig(IResolvable retainDeploymentConfig) Sets the value ofCfnEndpointProps.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 ofCfnEndpointProps.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:
build
in interfacesoftware.amazon.jsii.Builder<CfnEndpointProps>
- Returns:
- a new instance of
CfnEndpointProps
- Throws:
NullPointerException
- if any required attribute was not provided
-