Class CfnModelPackage.MetadataPropertiesProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnModelPackage.MetadataPropertiesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnModelPackage.MetadataPropertiesProperty>
- Enclosing interface:
CfnModelPackage.MetadataPropertiesProperty
@Stability(Stable)
public static final class CfnModelPackage.MetadataPropertiesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnModelPackage.MetadataPropertiesProperty>
A builder for
CfnModelPackage.MetadataPropertiesProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnModelPackage.MetadataPropertiesProperty.getCommitId()
generatedBy
(String generatedBy) Sets the value ofCfnModelPackage.MetadataPropertiesProperty.getGeneratedBy()
Sets the value ofCfnModelPackage.MetadataPropertiesProperty.getProjectId()
repository
(String repository) Sets the value ofCfnModelPackage.MetadataPropertiesProperty.getRepository()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
commitId
@Stability(Stable) public CfnModelPackage.MetadataPropertiesProperty.Builder commitId(String commitId) Sets the value ofCfnModelPackage.MetadataPropertiesProperty.getCommitId()
- Parameters:
commitId
- The commit ID.- Returns:
this
-
generatedBy
@Stability(Stable) public CfnModelPackage.MetadataPropertiesProperty.Builder generatedBy(String generatedBy) Sets the value ofCfnModelPackage.MetadataPropertiesProperty.getGeneratedBy()
- Parameters:
generatedBy
- The entity this entity was generated by.- Returns:
this
-
projectId
@Stability(Stable) public CfnModelPackage.MetadataPropertiesProperty.Builder projectId(String projectId) Sets the value ofCfnModelPackage.MetadataPropertiesProperty.getProjectId()
- Parameters:
projectId
- The project ID.- Returns:
this
-
repository
@Stability(Stable) public CfnModelPackage.MetadataPropertiesProperty.Builder repository(String repository) Sets the value ofCfnModelPackage.MetadataPropertiesProperty.getRepository()
- Parameters:
repository
- The repository.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnModelPackage.MetadataPropertiesProperty>
- Returns:
- a new instance of
CfnModelPackage.MetadataPropertiesProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-