public static final class CfnInstance.StateProperty.Builder
extends java.lang.Object
CfnInstance.StateProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnInstance.StateProperty |
build()
Builds the configured instance.
|
CfnInstance.StateProperty.Builder |
code(java.lang.Number code)
Sets the value of
CfnInstance.StateProperty.getCode() |
CfnInstance.StateProperty.Builder |
name(java.lang.String name)
Sets the value of
CfnInstance.StateProperty.getName() |
public CfnInstance.StateProperty.Builder code(java.lang.Number code)
CfnInstance.StateProperty.getCode()
code
- The status code of the instance.this
public CfnInstance.StateProperty.Builder name(java.lang.String name)
CfnInstance.StateProperty.getName()
name
- The state of the instance (for example, `running` or `pending` ).this
public CfnInstance.StateProperty build()
CfnInstance.StateProperty
java.lang.NullPointerException
- if any required attribute was not provided