@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.
The deployment circuit breaker determines whether a service deployment will fail if the service can't reach a steady state. If it is turned on, a service deployment will transition to a failed state and stop launching new tasks. You can also configure 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.
For more information about API failure reasons, see API failure reasons 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()
Determines whether to use the deployment circuit breaker logic for the service.
|
Boolean |
getRollback()
Determines whether to configure Amazon ECS to roll back the service if a service deployment fails.
|
int |
hashCode() |
Boolean |
isEnable()
Determines whether to use the deployment circuit breaker logic for the service.
|
Boolean |
isRollback()
Determines whether to configure 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)
Determines whether to use the deployment circuit breaker logic for the service.
|
void |
setRollback(Boolean rollback)
Determines whether to configure 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)
Determines whether to use the deployment circuit breaker logic for the service.
|
DeploymentCircuitBreaker |
withRollback(Boolean rollback)
Determines whether to configure Amazon ECS to roll back the service if a service deployment fails.
|
public void setEnable(Boolean enable)
Determines whether to use the deployment circuit breaker logic for the service.
enable
- Determines whether to use the deployment circuit breaker logic for the service.public Boolean getEnable()
Determines whether to use the deployment circuit breaker logic for the service.
public DeploymentCircuitBreaker withEnable(Boolean enable)
Determines whether to use the deployment circuit breaker logic for the service.
enable
- Determines whether to use the deployment circuit breaker logic for the service.public Boolean isEnable()
Determines whether to use the deployment circuit breaker logic for the service.
public void setRollback(Boolean rollback)
Determines whether to configure Amazon ECS to roll back the service if a service deployment fails. If rollback is on, when a service deployment fails, the service is rolled back to the last deployment that completed successfully.
rollback
- Determines whether to configure Amazon ECS to roll back the service if a service deployment fails. If
rollback is on, when a service deployment fails, the service is rolled back to the last deployment that
completed successfully.public Boolean getRollback()
Determines whether to configure Amazon ECS to roll back the service if a service deployment fails. If rollback is on, when a service deployment fails, the service is rolled back to the last deployment that completed successfully.
public DeploymentCircuitBreaker withRollback(Boolean rollback)
Determines whether to configure Amazon ECS to roll back the service if a service deployment fails. If rollback is on, when a service deployment fails, the service is rolled back to the last deployment that completed successfully.
rollback
- Determines whether to configure Amazon ECS to roll back the service if a service deployment fails. If
rollback is on, when a service deployment fails, the service is rolled back to the last deployment that
completed successfully.public Boolean isRollback()
Determines whether to configure Amazon ECS to roll back the service if a service deployment fails. If rollback is on, 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.