Class CfnCluster.ErrorInfoProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pcs.CfnCluster.ErrorInfoProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster.ErrorInfoProperty>
- Enclosing interface:
CfnCluster.ErrorInfoProperty
@Stability(Stable)
public static final class CfnCluster.ErrorInfoProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster.ErrorInfoProperty>
A builder for
CfnCluster.ErrorInfoProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnCluster.ErrorInfoProperty.getCode()Sets the value ofCfnCluster.ErrorInfoProperty.getMessage()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
code
Sets the value ofCfnCluster.ErrorInfoProperty.getCode()- Parameters:
code- The short-form error code.- Returns:
this
-
message
Sets the value ofCfnCluster.ErrorInfoProperty.getMessage()- Parameters:
message- The detailed error information.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCluster.ErrorInfoProperty>- Returns:
- a new instance of
CfnCluster.ErrorInfoProperty - Throws:
NullPointerException- if any required attribute was not provided
-