@Generated(value="software.amazon.awssdk:codegen") public final class BlueInstanceTerminationOption extends Object implements StructuredPojo, ToCopyableBuilder<BlueInstanceTerminationOption.Builder,BlueInstanceTerminationOption>
Information about whether instances in the original environment are terminated when a blue/green deployment is successful.
Modifier and Type | Class and Description |
---|---|
static interface |
BlueInstanceTerminationOption.Builder |
Modifier and Type | Method and Description |
---|---|
InstanceAction |
action()
The action to take on instances in the original environment after a successful blue/green deployment.
|
String |
actionAsString()
The action to take on instances in the original environment after a successful blue/green deployment.
|
static BlueInstanceTerminationOption.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
static Class<? extends BlueInstanceTerminationOption.Builder> |
serializableBuilderClass() |
Integer |
terminationWaitTimeInMinutes()
The number of minutes to wait after a successful blue/green deployment before terminating instances from the
original environment.
|
BlueInstanceTerminationOption.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public InstanceAction action()
The action to take on instances in the original environment after a successful blue/green deployment.
TERMINATE: Instances are terminated after a specified wait time.
KEEP_ALIVE: Instances are left running after they are deregistered from the load balancer and removed from the deployment group.
If the service returns an enum value that is not available in the current SDK version, action
will
return InstanceAction.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
actionAsString()
.
TERMINATE: Instances are terminated after a specified wait time.
KEEP_ALIVE: Instances are left running after they are deregistered from the load balancer and removed from the deployment group.
InstanceAction
public String actionAsString()
The action to take on instances in the original environment after a successful blue/green deployment.
TERMINATE: Instances are terminated after a specified wait time.
KEEP_ALIVE: Instances are left running after they are deregistered from the load balancer and removed from the deployment group.
If the service returns an enum value that is not available in the current SDK version, action
will
return InstanceAction.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
actionAsString()
.
TERMINATE: Instances are terminated after a specified wait time.
KEEP_ALIVE: Instances are left running after they are deregistered from the load balancer and removed from the deployment group.
InstanceAction
public Integer terminationWaitTimeInMinutes()
The number of minutes to wait after a successful blue/green deployment before terminating instances from the original environment.
public BlueInstanceTerminationOption.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<BlueInstanceTerminationOption.Builder,BlueInstanceTerminationOption>
public static BlueInstanceTerminationOption.Builder builder()
public static Class<? extends BlueInstanceTerminationOption.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.