Class CfnArtifactProps.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnArtifactProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnArtifactProps>
- Enclosing interface:
CfnArtifactProps
@Stability(Stable)
public static final class CfnArtifactProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnArtifactProps>
A builder for
CfnArtifactProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionartifactName(String artifactName) Sets the value ofCfnArtifactProps.getArtifactName()artifactType(String artifactType) Sets the value ofCfnArtifactProps.getArtifactType()build()Builds the configured instance.metadataProperties(IResolvable metadataProperties) Sets the value ofCfnArtifactProps.getMetadataProperties()metadataProperties(CfnArtifact.MetadataPropertiesProperty metadataProperties) Sets the value ofCfnArtifactProps.getMetadataProperties()properties(Map<String, String> properties) Sets the value ofCfnArtifactProps.getProperties()properties(IResolvable properties) Sets the value ofCfnArtifactProps.getProperties()source(IResolvable source) Sets the value ofCfnArtifactProps.getSource()Sets the value ofCfnArtifactProps.getSource()Sets the value ofCfnArtifactProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
artifactType
Sets the value ofCfnArtifactProps.getArtifactType()- Parameters:
artifactType- The artifact type. This parameter is required.- Returns:
this
-
source
Sets the value ofCfnArtifactProps.getSource()- Parameters:
source- the value to be set. This parameter is required.- Returns:
this
-
source
@Stability(Stable) public CfnArtifactProps.Builder source(CfnArtifact.ArtifactSourceProperty source) Sets the value ofCfnArtifactProps.getSource()- Parameters:
source- the value to be set. This parameter is required.- Returns:
this
-
artifactName
Sets the value ofCfnArtifactProps.getArtifactName()- Parameters:
artifactName- The name of the artifact. Must be unique to your account in an AWS Region.- Returns:
this
-
metadataProperties
@Stability(Stable) public CfnArtifactProps.Builder metadataProperties(IResolvable metadataProperties) Sets the value ofCfnArtifactProps.getMetadataProperties()- Parameters:
metadataProperties- the value to be set.- Returns:
this
-
metadataProperties
@Stability(Stable) public CfnArtifactProps.Builder metadataProperties(CfnArtifact.MetadataPropertiesProperty metadataProperties) Sets the value ofCfnArtifactProps.getMetadataProperties()- Parameters:
metadataProperties- the value to be set.- Returns:
this
-
properties
Sets the value ofCfnArtifactProps.getProperties()- Parameters:
properties- A list of properties to add to the artifact.- Returns:
this
-
properties
Sets the value ofCfnArtifactProps.getProperties()- Parameters:
properties- A list of properties to add to the artifact.- Returns:
this
-
tags
Sets the value ofCfnArtifactProps.getTags()- Parameters:
tags- A list of tags to apply to the artifact.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnArtifactProps>- Returns:
- a new instance of
CfnArtifactProps - Throws:
NullPointerException- if any required attribute was not provided
-