public static interface Instance.Builder extends SdkPojo, 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 |
instanceType(String instanceType)
The instance type of the EC2 instance.
|
Instance.Builder |
launchConfigurationName(String launchConfigurationName)
The launch configuration associated with the instance.
|
default Instance.Builder |
launchTemplate(Consumer<LaunchTemplateSpecification.Builder> launchTemplate)
The launch template for the instance.
|
Instance.Builder |
launchTemplate(LaunchTemplateSpecification launchTemplate)
The launch template for 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 Amazon EC2 Auto Scaling when scaling in.
|
Instance.Builder |
weightedCapacity(String weightedCapacity)
The number of capacity units contributed by the instance based on its instance type.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildInstance.Builder instanceId(String instanceId)
The ID of the instance.
instanceId - The ID of the instance.Instance.Builder instanceType(String instanceType)
The instance type of the EC2 instance.
instanceType - The instance type of the EC2 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. The Quarantined state is not used. For information
about lifecycle states, see Instance
lifecycle in the Amazon EC2 Auto Scaling User Guide.
lifecycleState - A description of the current lifecycle state. The Quarantined state is not used. For
information about lifecycle states, see Instance
lifecycle in the Amazon EC2 Auto Scaling User Guide.LifecycleState,
LifecycleStateInstance.Builder lifecycleState(LifecycleState lifecycleState)
A description of the current lifecycle state. The Quarantined state is not used. For information
about lifecycle states, see Instance
lifecycle in the Amazon EC2 Auto Scaling User Guide.
lifecycleState - A description of the current lifecycle state. The Quarantined state is not used. For
information about lifecycle states, see Instance
lifecycle in the Amazon EC2 Auto Scaling User Guide.LifecycleState,
LifecycleStateInstance.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 that Amazon EC2 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 that Amazon EC2 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 launchTemplate(LaunchTemplateSpecification launchTemplate)
The launch template for the instance.
launchTemplate - The launch template for the instance.default Instance.Builder launchTemplate(Consumer<LaunchTemplateSpecification.Builder> launchTemplate)
The launch template for the instance.
This is a convenience method that creates an instance of theLaunchTemplateSpecification.Builder
avoiding the need to create one manually via LaunchTemplateSpecification.builder().
When the Consumer completes, SdkBuilder.build() is called
immediately and its result is passed to launchTemplate(LaunchTemplateSpecification).
launchTemplate - a consumer that will call methods on LaunchTemplateSpecification.BuilderlaunchTemplate(LaunchTemplateSpecification)Instance.Builder protectedFromScaleIn(Boolean protectedFromScaleIn)
Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in.
protectedFromScaleIn - Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling
in.Instance.Builder weightedCapacity(String weightedCapacity)
The number of capacity units contributed by the instance based on its instance type.
Valid Range: Minimum value of 1. Maximum value of 999.
weightedCapacity - The number of capacity units contributed by the instance based on its instance type.
Valid Range: Minimum value of 1. Maximum value of 999.
Copyright © 2022. All rights reserved.