@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AutoRollbackConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Information about a configuration for automatically rolling back to a previous version of an application revision when a deployment is not completed successfully.
| Constructor and Description |
|---|
AutoRollbackConfiguration () |
| Modifier and Type | Method and Description |
|---|---|
AutoRollbackConfiguration |
clone () |
boolean |
equals (Object obj) |
Boolean |
getEnabled ()
Indicates whether a defined automatic rollback configuration is currently enabled.
|
List<String> |
getEvents ()
The event type or types that trigger a rollback.
|
int |
hashCode () |
Boolean |
isEnabled ()
Indicates whether a defined automatic rollback configuration is currently enabled.
|
void |
marshall (ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setEnabled (Boolean enabled)
Indicates whether a defined automatic rollback configuration is currently enabled.
|
void |
setEvents (Collection<String> events)
The event type or types that trigger a rollback.
|
String |
toString ()
Returns a string representation of this object.
|
AutoRollbackConfiguration |
withEnabled (Boolean enabled)
Indicates whether a defined automatic rollback configuration is currently enabled.
|
AutoRollbackConfiguration |
withEvents (AutoRollbackEvent... events)
The event type or types that trigger a rollback.
|
AutoRollbackConfiguration |
withEvents (Collection<String> events)
The event type or types that trigger a rollback.
|
AutoRollbackConfiguration |
withEvents (String... events)
The event type or types that trigger a rollback.
|
public AutoRollbackConfiguration()
public void setEnabled(Boolean enabled)
Indicates whether a defined automatic rollback configuration is currently enabled.
enabled - Indicates whether a defined automatic rollback configuration is currently enabled.public Boolean getEnabled()
Indicates whether a defined automatic rollback configuration is currently enabled.
public AutoRollbackConfiguration withEnabled(Boolean enabled)
Indicates whether a defined automatic rollback configuration is currently enabled.
enabled - Indicates whether a defined automatic rollback configuration is currently enabled.public Boolean isEnabled()
Indicates whether a defined automatic rollback configuration is currently enabled.
public List<String> getEvents()
The event type or types that trigger a rollback.
AutoRollbackEvent public void setEvents(Collection<String> events)
The event type or types that trigger a rollback.
events - The event type or types that trigger a rollback.AutoRollbackEvent public AutoRollbackConfiguration withEvents(String... events)
The event type or types that trigger a rollback.
NOTE: This method appends the values to the existing list (if any). Use
setEvents(java.util.Collection) or withEvents(java.util.Collection) if you want to override the
existing values.
events - The event type or types that trigger a rollback.AutoRollbackEvent public AutoRollbackConfiguration withEvents(Collection<String> events)
The event type or types that trigger a rollback.
events - The event type or types that trigger a rollback.AutoRollbackEvent public AutoRollbackConfiguration withEvents(AutoRollbackEvent... events)
The event type or types that trigger a rollback.
events - The event type or types that trigger a rollback.AutoRollbackEvent public String toString()
toString in class Object Object.toString() public AutoRollbackConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo ProtocolMarshaller.marshall in interface StructuredPojo protocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.