Class CfnModelPackagePropsMixin.ModelPackageStatusItemProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.sagemaker.CfnModelPackagePropsMixin.ModelPackageStatusItemProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnModelPackagePropsMixin.ModelPackageStatusItemProperty>
- Enclosing interface:
CfnModelPackagePropsMixin.ModelPackageStatusItemProperty
@Stability(Stable)
public static final class CfnModelPackagePropsMixin.ModelPackageStatusItemProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnModelPackagePropsMixin.ModelPackageStatusItemProperty>
A builder for
CfnModelPackagePropsMixin.ModelPackageStatusItemProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.failureReason(String failureReason) Sets the value ofCfnModelPackagePropsMixin.ModelPackageStatusItemProperty.getName()Sets the value ofCfnModelPackagePropsMixin.ModelPackageStatusItemProperty.getStatus()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
failureReason
@Stability(Stable) public CfnModelPackagePropsMixin.ModelPackageStatusItemProperty.Builder failureReason(String failureReason) - Parameters:
failureReason- if the overall status isFailed, the reason for the failure.- Returns:
this
-
name
@Stability(Stable) public CfnModelPackagePropsMixin.ModelPackageStatusItemProperty.Builder name(String name) Sets the value ofCfnModelPackagePropsMixin.ModelPackageStatusItemProperty.getName()- Parameters:
name- The name of the model package for which the overall status is being reported.- Returns:
this
-
status
@Stability(Stable) public CfnModelPackagePropsMixin.ModelPackageStatusItemProperty.Builder status(String status) Sets the value ofCfnModelPackagePropsMixin.ModelPackageStatusItemProperty.getStatus()- Parameters:
status- The current status.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnModelPackagePropsMixin.ModelPackageStatusItemProperty>- Returns:
- a new instance of
CfnModelPackagePropsMixin.ModelPackageStatusItemProperty - Throws:
NullPointerException- if any required attribute was not provided
-