@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DeploymentCircuitBreaker extends Object implements Serializable, Cloneable, StructuredPojo
The deployment circuit breaker can only be used for services using the rolling update (ECS
) deployment
type that are not behind a Classic Load Balancer.
The deployment circuit breaker determines whether a service deployment will fail if the service can't reach a steady state. If enabled, a service deployment will transition to a failed state and stop launching new tasks. You can also enable Amazon ECS to roll back your service to the last completed deployment after a failure. For more information, see Rolling update in the Amazon Elastic Container Service Developer Guide.
Constructor and Description |
---|
DeploymentCircuitBreaker() |
Modifier and Type | Method and Description |
---|---|
DeploymentCircuitBreaker |
clone() |
boolean |
equals(Object obj) |
Boolean |
getEnable()
Whether to enable the deployment circuit breaker logic for the service.
|
Boolean |
getRollback()
Whether to enable Amazon ECS to roll back the service if a service deployment fails.
|
int |
hashCode() |
Boolean |
isEnable()
Whether to enable the deployment circuit breaker logic for the service.
|
Boolean |
isRollback()
Whether to enable Amazon ECS to roll back the service if a service deployment fails.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setEnable(Boolean enable)
Whether to enable the deployment circuit breaker logic for the service.
|
void |
setRollback(Boolean rollback)
Whether to enable Amazon ECS to roll back the service if a service deployment fails.
|
String |
toString()
Returns a string representation of this object.
|
DeploymentCircuitBreaker |
withEnable(Boolean enable)
Whether to enable the deployment circuit breaker logic for the service.
|
DeploymentCircuitBreaker |
withRollback(Boolean rollback)
Whether to enable Amazon ECS to roll back the service if a service deployment fails.
|
public void setEnable(Boolean enable)
Whether to enable the deployment circuit breaker logic for the service.
enable
- Whether to enable the deployment circuit breaker logic for the service.public Boolean getEnable()
Whether to enable the deployment circuit breaker logic for the service.
public DeploymentCircuitBreaker withEnable(Boolean enable)
Whether to enable the deployment circuit breaker logic for the service.
enable
- Whether to enable the deployment circuit breaker logic for the service.public Boolean isEnable()
Whether to enable the deployment circuit breaker logic for the service.
public void setRollback(Boolean rollback)
Whether to enable Amazon ECS to roll back the service if a service deployment fails. If rollback is enabled, when a service deployment fails, the service is rolled back to the last deployment that completed successfully.
rollback
- Whether to enable Amazon ECS to roll back the service if a service deployment fails. If rollback is
enabled, when a service deployment fails, the service is rolled back to the last deployment that completed
successfully.public Boolean getRollback()
Whether to enable Amazon ECS to roll back the service if a service deployment fails. If rollback is enabled, when a service deployment fails, the service is rolled back to the last deployment that completed successfully.
public DeploymentCircuitBreaker withRollback(Boolean rollback)
Whether to enable Amazon ECS to roll back the service if a service deployment fails. If rollback is enabled, when a service deployment fails, the service is rolled back to the last deployment that completed successfully.
rollback
- Whether to enable Amazon ECS to roll back the service if a service deployment fails. If rollback is
enabled, when a service deployment fails, the service is rolled back to the last deployment that completed
successfully.public Boolean isRollback()
Whether to enable Amazon ECS to roll back the service if a service deployment fails. If rollback is enabled, when a service deployment fails, the service is rolled back to the last deployment that completed successfully.
public String toString()
toString
in class Object
Object.toString()
public DeploymentCircuitBreaker clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.