public class Stack extends Object implements Serializable, Cloneable
The Stack data type.
Constructor and Description |
---|
Stack() |
Modifier and Type | Method and Description |
---|---|
Stack |
clone() |
boolean |
equals(Object obj) |
List<String> |
getCapabilities()
The capabilities allowed in the stack.
|
Date |
getCreationTime()
The time at which the stack was created.
|
String |
getDescription()
A user-defined description associated with the stack.
|
Boolean |
getDisableRollback()
Boolean to enable or disable rollback on stack creation failures:
|
Date |
getLastUpdatedTime()
The time the stack was last updated.
|
List<String> |
getNotificationARNs()
SNS topic ARNs to which stack related events are published.
|
List<Output> |
getOutputs()
A list of output structures.
|
List<Parameter> |
getParameters()
A list of
Parameter structures. |
String |
getStackId()
Unique identifier of the stack.
|
String |
getStackName()
The name associated with the stack.
|
String |
getStackStatus()
Current status of the stack.
|
String |
getStackStatusReason()
Success/failure message associated with the stack status.
|
List<Tag> |
getTags()
A list of
Tag s that specify cost allocation information
for the stack. |
Integer |
getTimeoutInMinutes()
The amount of time within which stack creation should complete.
|
int |
hashCode() |
Boolean |
isDisableRollback()
Boolean to enable or disable rollback on stack creation failures:
|
void |
setCapabilities(Collection<String> capabilities)
The capabilities allowed in the stack.
|
void |
setCreationTime(Date creationTime)
The time at which the stack was created.
|
void |
setDescription(String description)
A user-defined description associated with the stack.
|
void |
setDisableRollback(Boolean disableRollback)
Boolean to enable or disable rollback on stack creation failures:
|
void |
setLastUpdatedTime(Date lastUpdatedTime)
The time the stack was last updated.
|
void |
setNotificationARNs(Collection<String> notificationARNs)
SNS topic ARNs to which stack related events are published.
|
void |
setOutputs(Collection<Output> outputs)
A list of output structures.
|
void |
setParameters(Collection<Parameter> parameters)
A list of
Parameter structures. |
void |
setStackId(String stackId)
Unique identifier of the stack.
|
void |
setStackName(String stackName)
The name associated with the stack.
|
void |
setStackStatus(StackStatus stackStatus)
Current status of the stack.
|
void |
setStackStatus(String stackStatus)
Current status of the stack.
|
void |
setStackStatusReason(String stackStatusReason)
Success/failure message associated with the stack status.
|
void |
setTags(Collection<Tag> tags)
A list of
Tag s that specify cost allocation information
for the stack. |
void |
setTimeoutInMinutes(Integer timeoutInMinutes)
The amount of time within which stack creation should complete.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Stack |
withCapabilities(Capability... capabilities)
The capabilities allowed in the stack.
|
Stack |
withCapabilities(Collection<String> capabilities)
The capabilities allowed in the stack.
|
Stack |
withCapabilities(String... capabilities)
The capabilities allowed in the stack.
|
Stack |
withCreationTime(Date creationTime)
The time at which the stack was created.
|
Stack |
withDescription(String description)
A user-defined description associated with the stack.
|
Stack |
withDisableRollback(Boolean disableRollback)
Boolean to enable or disable rollback on stack creation failures:
|
Stack |
withLastUpdatedTime(Date lastUpdatedTime)
The time the stack was last updated.
|
Stack |
withNotificationARNs(Collection<String> notificationARNs)
SNS topic ARNs to which stack related events are published.
|
Stack |
withNotificationARNs(String... notificationARNs)
SNS topic ARNs to which stack related events are published.
|
Stack |
withOutputs(Collection<Output> outputs)
A list of output structures.
|
Stack |
withOutputs(Output... outputs)
A list of output structures.
|
Stack |
withParameters(Collection<Parameter> parameters)
A list of
Parameter structures. |
Stack |
withParameters(Parameter... parameters)
A list of
Parameter structures. |
Stack |
withStackId(String stackId)
Unique identifier of the stack.
|
Stack |
withStackName(String stackName)
The name associated with the stack.
|
Stack |
withStackStatus(StackStatus stackStatus)
Current status of the stack.
|
Stack |
withStackStatus(String stackStatus)
Current status of the stack.
|
Stack |
withStackStatusReason(String stackStatusReason)
Success/failure message associated with the stack status.
|
Stack |
withTags(Collection<Tag> tags)
A list of
Tag s that specify cost allocation information
for the stack. |
Stack |
withTags(Tag... tags)
A list of
Tag s that specify cost allocation information
for the stack. |
Stack |
withTimeoutInMinutes(Integer timeoutInMinutes)
The amount of time within which stack creation should complete.
|
public String getStackId()
public void setStackId(String stackId)
stackId
- Unique identifier of the stack.public Stack withStackId(String stackId)
Returns a reference to this object so that method calls can be chained together.
stackId
- Unique identifier of the stack.public String getStackName()
public void setStackName(String stackName)
stackName
- The name associated with the stack.public Stack withStackName(String stackName)
Returns a reference to this object so that method calls can be chained together.
stackName
- The name associated with the stack.public String getDescription()
public void setDescription(String description)
description
- A user-defined description associated with the stack.public Stack withDescription(String description)
Returns a reference to this object so that method calls can be chained together.
description
- A user-defined description associated with the stack.public List<Parameter> getParameters()
Parameter
structures.Parameter
structures.public void setParameters(Collection<Parameter> parameters)
Parameter
structures.parameters
- A list of Parameter
structures.public Stack withParameters(Parameter... parameters)
Parameter
structures.
NOTE: This method appends the values to the existing list (if
any). Use setParameters(java.util.Collection)
or withParameters(java.util.Collection)
if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
parameters
- A list of Parameter
structures.public Stack withParameters(Collection<Parameter> parameters)
Parameter
structures.
Returns a reference to this object so that method calls can be chained together.
parameters
- A list of Parameter
structures.public Date getCreationTime()
public void setCreationTime(Date creationTime)
creationTime
- The time at which the stack was created.public Stack withCreationTime(Date creationTime)
Returns a reference to this object so that method calls can be chained together.
creationTime
- The time at which the stack was created.public Date getLastUpdatedTime()
public void setLastUpdatedTime(Date lastUpdatedTime)
lastUpdatedTime
- The time the stack was last updated. This field will only be returned
if the stack has been updated at least once.public Stack withLastUpdatedTime(Date lastUpdatedTime)
Returns a reference to this object so that method calls can be chained together.
lastUpdatedTime
- The time the stack was last updated. This field will only be returned
if the stack has been updated at least once.public String getStackStatus()
Constraints:
Allowed Values: CREATE_IN_PROGRESS, CREATE_FAILED, CREATE_COMPLETE, ROLLBACK_IN_PROGRESS, ROLLBACK_FAILED, ROLLBACK_COMPLETE, DELETE_IN_PROGRESS, DELETE_FAILED, DELETE_COMPLETE, UPDATE_IN_PROGRESS, UPDATE_COMPLETE_CLEANUP_IN_PROGRESS, UPDATE_COMPLETE, UPDATE_ROLLBACK_IN_PROGRESS, UPDATE_ROLLBACK_FAILED, UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS, UPDATE_ROLLBACK_COMPLETE
StackStatus
public void setStackStatus(String stackStatus)
Constraints:
Allowed Values: CREATE_IN_PROGRESS, CREATE_FAILED, CREATE_COMPLETE, ROLLBACK_IN_PROGRESS, ROLLBACK_FAILED, ROLLBACK_COMPLETE, DELETE_IN_PROGRESS, DELETE_FAILED, DELETE_COMPLETE, UPDATE_IN_PROGRESS, UPDATE_COMPLETE_CLEANUP_IN_PROGRESS, UPDATE_COMPLETE, UPDATE_ROLLBACK_IN_PROGRESS, UPDATE_ROLLBACK_FAILED, UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS, UPDATE_ROLLBACK_COMPLETE
stackStatus
- Current status of the stack.StackStatus
public Stack withStackStatus(String stackStatus)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CREATE_IN_PROGRESS, CREATE_FAILED, CREATE_COMPLETE, ROLLBACK_IN_PROGRESS, ROLLBACK_FAILED, ROLLBACK_COMPLETE, DELETE_IN_PROGRESS, DELETE_FAILED, DELETE_COMPLETE, UPDATE_IN_PROGRESS, UPDATE_COMPLETE_CLEANUP_IN_PROGRESS, UPDATE_COMPLETE, UPDATE_ROLLBACK_IN_PROGRESS, UPDATE_ROLLBACK_FAILED, UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS, UPDATE_ROLLBACK_COMPLETE
stackStatus
- Current status of the stack.StackStatus
public void setStackStatus(StackStatus stackStatus)
Constraints:
Allowed Values: CREATE_IN_PROGRESS, CREATE_FAILED, CREATE_COMPLETE, ROLLBACK_IN_PROGRESS, ROLLBACK_FAILED, ROLLBACK_COMPLETE, DELETE_IN_PROGRESS, DELETE_FAILED, DELETE_COMPLETE, UPDATE_IN_PROGRESS, UPDATE_COMPLETE_CLEANUP_IN_PROGRESS, UPDATE_COMPLETE, UPDATE_ROLLBACK_IN_PROGRESS, UPDATE_ROLLBACK_FAILED, UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS, UPDATE_ROLLBACK_COMPLETE
stackStatus
- Current status of the stack.StackStatus
public Stack withStackStatus(StackStatus stackStatus)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CREATE_IN_PROGRESS, CREATE_FAILED, CREATE_COMPLETE, ROLLBACK_IN_PROGRESS, ROLLBACK_FAILED, ROLLBACK_COMPLETE, DELETE_IN_PROGRESS, DELETE_FAILED, DELETE_COMPLETE, UPDATE_IN_PROGRESS, UPDATE_COMPLETE_CLEANUP_IN_PROGRESS, UPDATE_COMPLETE, UPDATE_ROLLBACK_IN_PROGRESS, UPDATE_ROLLBACK_FAILED, UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS, UPDATE_ROLLBACK_COMPLETE
stackStatus
- Current status of the stack.StackStatus
public String getStackStatusReason()
public void setStackStatusReason(String stackStatusReason)
stackStatusReason
- Success/failure message associated with the stack status.public Stack withStackStatusReason(String stackStatusReason)
Returns a reference to this object so that method calls can be chained together.
stackStatusReason
- Success/failure message associated with the stack status.public Boolean isDisableRollback()
true
: disable rollbackfalse
: enable rollback
true
: disable rollbackfalse
: enable rollbackpublic void setDisableRollback(Boolean disableRollback)
true
: disable rollbackfalse
: enable rollbackdisableRollback
- Boolean to enable or disable rollback on stack creation failures:
true
: disable rollbackfalse
: enable rollbackpublic Stack withDisableRollback(Boolean disableRollback)
true
: disable rollbackfalse
: enable rollbackReturns a reference to this object so that method calls can be chained together.
disableRollback
- Boolean to enable or disable rollback on stack creation failures:
true
: disable rollbackfalse
: enable rollbackpublic Boolean getDisableRollback()
true
: disable rollbackfalse
: enable rollback
true
: disable rollbackfalse
: enable rollbackpublic List<String> getNotificationARNs()
Constraints:
Length: 0 - 5
public void setNotificationARNs(Collection<String> notificationARNs)
Constraints:
Length: 0 - 5
notificationARNs
- SNS topic ARNs to which stack related events are published.public Stack withNotificationARNs(String... notificationARNs)
NOTE: This method appends the values to the existing list (if
any). Use setNotificationARNs(java.util.Collection)
or withNotificationARNs(java.util.Collection)
if you want to override
the existing values.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 5
notificationARNs
- SNS topic ARNs to which stack related events are published.public Stack withNotificationARNs(Collection<String> notificationARNs)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 5
notificationARNs
- SNS topic ARNs to which stack related events are published.public Integer getTimeoutInMinutes()
Constraints:
Range: 1 -
public void setTimeoutInMinutes(Integer timeoutInMinutes)
Constraints:
Range: 1 -
timeoutInMinutes
- The amount of time within which stack creation should complete.public Stack withTimeoutInMinutes(Integer timeoutInMinutes)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 -
timeoutInMinutes
- The amount of time within which stack creation should complete.public List<String> getCapabilities()
public void setCapabilities(Collection<String> capabilities)
capabilities
- The capabilities allowed in the stack.public Stack withCapabilities(String... capabilities)
NOTE: This method appends the values to the existing list (if
any). Use setCapabilities(java.util.Collection)
or withCapabilities(java.util.Collection)
if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
capabilities
- The capabilities allowed in the stack.public Stack withCapabilities(Collection<String> capabilities)
Returns a reference to this object so that method calls can be chained together.
capabilities
- The capabilities allowed in the stack.public Stack withCapabilities(Capability... capabilities)
Returns a reference to this object so that method calls can be chained together.
capabilities
- The capabilities allowed in the stack.public List<Output> getOutputs()
public void setOutputs(Collection<Output> outputs)
outputs
- A list of output structures.public Stack withOutputs(Output... outputs)
NOTE: This method appends the values to the existing list (if
any). Use setOutputs(java.util.Collection)
or withOutputs(java.util.Collection)
if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
outputs
- A list of output structures.public Stack withOutputs(Collection<Output> outputs)
Returns a reference to this object so that method calls can be chained together.
outputs
- A list of output structures.public List<Tag> getTags()
Tag
s that specify cost allocation information
for the stack.Tag
s that specify cost allocation information
for the stack.public void setTags(Collection<Tag> tags)
Tag
s that specify cost allocation information
for the stack.tags
- A list of Tag
s that specify cost allocation information
for the stack.public Stack withTags(Tag... tags)
Tag
s that specify cost allocation information
for the stack.
NOTE: This method appends the values to the existing list (if
any). Use setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the existing
values.
Returns a reference to this object so that method calls can be chained together.
tags
- A list of Tag
s that specify cost allocation information
for the stack.public Stack withTags(Collection<Tag> tags)
Tag
s that specify cost allocation information
for the stack.
Returns a reference to this object so that method calls can be chained together.
tags
- A list of Tag
s that specify cost allocation information
for the stack.public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.