Class CfnInstancePropsMixin.StateProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lightsail.CfnInstancePropsMixin.StateProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInstancePropsMixin.StateProperty>
- Enclosing interface:
CfnInstancePropsMixin.StateProperty
@Stability(Stable)
public static final class CfnInstancePropsMixin.StateProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInstancePropsMixin.StateProperty>
A builder for
CfnInstancePropsMixin.StateProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnInstancePropsMixin.StateProperty.getCode()Sets the value ofCfnInstancePropsMixin.StateProperty.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
code
Sets the value ofCfnInstancePropsMixin.StateProperty.getCode()- Parameters:
code- The status code of the instance.- Returns:
this
-
name
Sets the value ofCfnInstancePropsMixin.StateProperty.getName()- Parameters:
name- The state of the instance (for example,runningorpending).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInstancePropsMixin.StateProperty>- Returns:
- a new instance of
CfnInstancePropsMixin.StateProperty - Throws:
NullPointerException- if any required attribute was not provided
-