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