Class CfnInstance.StateProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lightsail.CfnInstance.StateProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInstance.StateProperty>
- Enclosing interface:
CfnInstance.StateProperty
@Stability(Stable)
public static final class CfnInstance.StateProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInstance.StateProperty>
A builder for
CfnInstance.StateProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnInstance.StateProperty.getCode()Sets the value ofCfnInstance.StateProperty.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
code
Sets the value ofCfnInstance.StateProperty.getCode()- Parameters:
code- The status code of the instance.- Returns:
this
-
name
Sets the value ofCfnInstance.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<CfnInstance.StateProperty>- Returns:
- a new instance of
CfnInstance.StateProperty - Throws:
NullPointerException- if any required attribute was not provided
-