Class CfnTrialComponent.TrialComponentArtifactProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnTrialComponent.TrialComponentArtifactProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTrialComponent.TrialComponentArtifactProperty>
- Enclosing interface:
CfnTrialComponent.TrialComponentArtifactProperty
@Stability(Stable)
public static final class CfnTrialComponent.TrialComponentArtifactProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTrialComponent.TrialComponentArtifactProperty>
A builder for
CfnTrialComponent.TrialComponentArtifactProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnTrialComponent.TrialComponentArtifactProperty.getMediaType()Sets the value ofCfnTrialComponent.TrialComponentArtifactProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
value
@Stability(Stable) public CfnTrialComponent.TrialComponentArtifactProperty.Builder value(String value) Sets the value ofCfnTrialComponent.TrialComponentArtifactProperty.getValue()- Parameters:
value- The location of the artifact. This parameter is required.- Returns:
this
-
mediaType
@Stability(Stable) public CfnTrialComponent.TrialComponentArtifactProperty.Builder mediaType(String mediaType) Sets the value ofCfnTrialComponent.TrialComponentArtifactProperty.getMediaType()- Parameters:
mediaType- The media type of the artifact.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTrialComponent.TrialComponentArtifactProperty>- Returns:
- a new instance of
CfnTrialComponent.TrialComponentArtifactProperty - Throws:
NullPointerException- if any required attribute was not provided
-