Class CfnModelPackage.MetricsSourceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnModelPackage.MetricsSourceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnModelPackage.MetricsSourceProperty>
- Enclosing interface:
- CfnModelPackage.MetricsSourceProperty
@Stability(Stable)
public static final class CfnModelPackage.MetricsSourceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnModelPackage.MetricsSourceProperty>
A builder for
CfnModelPackage.MetricsSourceProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.contentDigest(String contentDigest) Sets the value ofCfnModelPackage.MetricsSourceProperty.getContentDigest()contentType(String contentType) Sets the value ofCfnModelPackage.MetricsSourceProperty.getContentType()Sets the value ofCfnModelPackage.MetricsSourceProperty.getS3Uri()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
contentType
@Stability(Stable) public CfnModelPackage.MetricsSourceProperty.Builder contentType(String contentType) Sets the value ofCfnModelPackage.MetricsSourceProperty.getContentType()- Parameters:
contentType- The metric source content type. This parameter is required.- Returns:
this
-
s3Uri
Sets the value ofCfnModelPackage.MetricsSourceProperty.getS3Uri()- Parameters:
s3Uri- The S3 URI for the metrics source. This parameter is required.- Returns:
this
-
contentDigest
@Stability(Stable) public CfnModelPackage.MetricsSourceProperty.Builder contentDigest(String contentDigest) Sets the value ofCfnModelPackage.MetricsSourceProperty.getContentDigest()- Parameters:
contentDigest- The hash key used for the metrics source.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnModelPackage.MetricsSourceProperty>- Returns:
- a new instance of
CfnModelPackage.MetricsSourceProperty - Throws:
NullPointerException- if any required attribute was not provided
-