public static interface Instance.Builder extends CopyableBuilder<Instance.Builder,Instance>
Modifier and Type | Method and Description |
---|---|
Instance.Builder |
availabilityZone(String availabilityZone)
The Availability Zone in which the instance is running.
|
Instance.Builder |
healthStatus(String healthStatus)
The last reported health status of the instance.
|
Instance.Builder |
instanceId(String instanceId)
The ID of the instance.
|
Instance.Builder |
launchConfigurationName(String launchConfigurationName)
The launch configuration associated with the instance.
|
Instance.Builder |
lifecycleState(LifecycleState lifecycleState)
A description of the current lifecycle state.
|
Instance.Builder |
lifecycleState(String lifecycleState)
A description of the current lifecycle state.
|
Instance.Builder |
protectedFromScaleIn(Boolean protectedFromScaleIn)
Indicates whether the instance is protected from termination by Auto Scaling when scaling in.
|
copy
apply, build
Instance.Builder instanceId(String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.Instance.Builder availabilityZone(String availabilityZone)
The Availability Zone in which the instance is running.
availabilityZone
- The Availability Zone in which the instance is running.Instance.Builder lifecycleState(String lifecycleState)
A description of the current lifecycle state. Note that the Quarantined
state is not used.
lifecycleState
- A description of the current lifecycle state. Note that the Quarantined
state is not
used.LifecycleState
,
LifecycleState
Instance.Builder lifecycleState(LifecycleState lifecycleState)
A description of the current lifecycle state. Note that the Quarantined
state is not used.
lifecycleState
- A description of the current lifecycle state. Note that the Quarantined
state is not
used.LifecycleState
,
LifecycleState
Instance.Builder healthStatus(String healthStatus)
The last reported health status of the instance. "Healthy" means that the instance is healthy and should remain in service. "Unhealthy" means that the instance is unhealthy and Auto Scaling should terminate and replace it.
healthStatus
- The last reported health status of the instance. "Healthy" means that the instance is healthy and
should remain in service. "Unhealthy" means that the instance is unhealthy and Auto Scaling should
terminate and replace it.Instance.Builder launchConfigurationName(String launchConfigurationName)
The launch configuration associated with the instance.
launchConfigurationName
- The launch configuration associated with the instance.Instance.Builder protectedFromScaleIn(Boolean protectedFromScaleIn)
Indicates whether the instance is protected from termination by Auto Scaling when scaling in.
protectedFromScaleIn
- Indicates whether the instance is protected from termination by Auto Scaling when scaling in.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.