@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BlueInstanceTerminationOption extends Object implements Serializable, Cloneable
Information about whether instances in the original environment are terminated when a blue/green deployment is successful.
Constructor and Description |
---|
BlueInstanceTerminationOption() |
Modifier and Type | Method and Description |
---|---|
BlueInstanceTerminationOption |
clone() |
boolean |
equals(Object obj) |
String |
getAction()
The action to take on instances in the original environment after a successful blue/green deployment.
|
Integer |
getTerminationWaitTimeInMinutes()
The number of minutes to wait after a successful blue/green deployment before terminating instances from the
original environment.
|
int |
hashCode() |
void |
setAction(InstanceAction action)
The action to take on instances in the original environment after a successful blue/green deployment.
|
void |
setAction(String action)
The action to take on instances in the original environment after a successful blue/green deployment.
|
void |
setTerminationWaitTimeInMinutes(Integer terminationWaitTimeInMinutes)
The number of minutes to wait after a successful blue/green deployment before terminating instances from the
original environment.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
BlueInstanceTerminationOption |
withAction(InstanceAction action)
The action to take on instances in the original environment after a successful blue/green deployment.
|
BlueInstanceTerminationOption |
withAction(String action)
The action to take on instances in the original environment after a successful blue/green deployment.
|
BlueInstanceTerminationOption |
withTerminationWaitTimeInMinutes(Integer terminationWaitTimeInMinutes)
The number of minutes to wait after a successful blue/green deployment before terminating instances from the
original environment.
|
public void setAction(String 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.
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.
InstanceAction
public String getAction()
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.
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 BlueInstanceTerminationOption withAction(String 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.
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.
InstanceAction
public void setAction(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.
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.
InstanceAction
public BlueInstanceTerminationOption withAction(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.
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.
InstanceAction
public void setTerminationWaitTimeInMinutes(Integer terminationWaitTimeInMinutes)
The number of minutes to wait after a successful blue/green deployment before terminating instances from the original environment.
terminationWaitTimeInMinutes
- The number of minutes to wait after a successful blue/green deployment before terminating instances from
the original environment.public Integer getTerminationWaitTimeInMinutes()
The number of minutes to wait after a successful blue/green deployment before terminating instances from the original environment.
public BlueInstanceTerminationOption withTerminationWaitTimeInMinutes(Integer terminationWaitTimeInMinutes)
The number of minutes to wait after a successful blue/green deployment before terminating instances from the original environment.
terminationWaitTimeInMinutes
- The number of minutes to wait after a successful blue/green deployment before terminating instances from
the original environment.public String toString()
toString
in class Object
Object.toString()
public BlueInstanceTerminationOption clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.