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