Class CfnEntity.StatusProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iottwinmaker.CfnEntity.StatusProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEntity.StatusProperty>
- Enclosing interface:
CfnEntity.StatusProperty
@Stability(Stable)
public static final class CfnEntity.StatusProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEntity.StatusProperty>
A builder for
CfnEntity.StatusProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnEntity.StatusProperty.getError()
Sets the value ofCfnEntity.StatusProperty.getState()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
error
Sets the value ofCfnEntity.StatusProperty.getError()
- Parameters:
error
- The error message.- Returns:
this
-
state
Sets the value ofCfnEntity.StatusProperty.getState()
- Parameters:
state
- The current state of the entity, component, component type, or workspace. Valid Values:CREATING | UPDATING | DELETING | ACTIVE | ERROR
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnEntity.StatusProperty>
- Returns:
- a new instance of
CfnEntity.StatusProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-