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