Class Stack
- java.lang.Object
-
- com.amazonaws.services.cloudformation.model.Stack
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Stack extends Object implements Serializable, Cloneable
The Stack data type.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Stack()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stackclone()booleanequals(Object obj)List<String>getCapabilities()The capabilities allowed in the stack.DategetCreationTime()The time at which the stack was created.StringgetDescription()A user-defined description associated with the stack.BooleangetDisableRollback()Boolean to enable or disable rollback on stack creation failures:DategetLastUpdatedTime()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 ofParameterstructures.StringgetStackId()Unique identifier of the stack.StringgetStackName()The name associated with the stack.StringgetStackStatus()Current status of the stack.StringgetStackStatusReason()Success/failure message associated with the stack status.List<Tag>getTags()A list ofTags that specify information about the stack.IntegergetTimeoutInMinutes()The amount of time within which stack creation should complete.inthashCode()BooleanisDisableRollback()Boolean to enable or disable rollback on stack creation failures:voidsetCapabilities(Collection<String> capabilities)The capabilities allowed in the stack.voidsetCreationTime(Date creationTime)The time at which the stack was created.voidsetDescription(String description)A user-defined description associated with the stack.voidsetDisableRollback(Boolean disableRollback)Boolean to enable or disable rollback on stack creation failures:voidsetLastUpdatedTime(Date lastUpdatedTime)The time the stack was last updated.voidsetNotificationARNs(Collection<String> notificationARNs)SNS topic ARNs to which stack related events are published.voidsetOutputs(Collection<Output> outputs)A list of output structures.voidsetParameters(Collection<Parameter> parameters)A list ofParameterstructures.voidsetStackId(String stackId)Unique identifier of the stack.voidsetStackName(String stackName)The name associated with the stack.voidsetStackStatus(StackStatus stackStatus)Current status of the stack.voidsetStackStatus(String stackStatus)Current status of the stack.voidsetStackStatusReason(String stackStatusReason)Success/failure message associated with the stack status.voidsetTags(Collection<Tag> tags)A list ofTags that specify information about the stack.voidsetTimeoutInMinutes(Integer timeoutInMinutes)The amount of time within which stack creation should complete.StringtoString()Returns a string representation of this object; useful for testing and debugging.StackwithCapabilities(Capability... capabilities)The capabilities allowed in the stack.StackwithCapabilities(String... capabilities)The capabilities allowed in the stack.StackwithCapabilities(Collection<String> capabilities)The capabilities allowed in the stack.StackwithCreationTime(Date creationTime)The time at which the stack was created.StackwithDescription(String description)A user-defined description associated with the stack.StackwithDisableRollback(Boolean disableRollback)Boolean to enable or disable rollback on stack creation failures:StackwithLastUpdatedTime(Date lastUpdatedTime)The time the stack was last updated.StackwithNotificationARNs(String... notificationARNs)SNS topic ARNs to which stack related events are published.StackwithNotificationARNs(Collection<String> notificationARNs)SNS topic ARNs to which stack related events are published.StackwithOutputs(Output... outputs)A list of output structures.StackwithOutputs(Collection<Output> outputs)A list of output structures.StackwithParameters(Parameter... parameters)A list ofParameterstructures.StackwithParameters(Collection<Parameter> parameters)A list ofParameterstructures.StackwithStackId(String stackId)Unique identifier of the stack.StackwithStackName(String stackName)The name associated with the stack.StackwithStackStatus(StackStatus stackStatus)Current status of the stack.StackwithStackStatus(String stackStatus)Current status of the stack.StackwithStackStatusReason(String stackStatusReason)Success/failure message associated with the stack status.StackwithTags(Tag... tags)A list ofTags that specify information about the stack.StackwithTags(Collection<Tag> tags)A list ofTags that specify information about the stack.StackwithTimeoutInMinutes(Integer timeoutInMinutes)The amount of time within which stack creation should complete.
-
-
-
Method Detail
-
setStackId
public void setStackId(String stackId)
Unique identifier of the stack.
- Parameters:
stackId- Unique identifier of the stack.
-
getStackId
public String getStackId()
Unique identifier of the stack.
- Returns:
- Unique identifier of the stack.
-
withStackId
public Stack withStackId(String stackId)
Unique identifier of the stack.
- Parameters:
stackId- Unique identifier of the stack.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStackName
public void setStackName(String stackName)
The name associated with the stack.
- Parameters:
stackName- The name associated with the stack.
-
getStackName
public String getStackName()
The name associated with the stack.
- Returns:
- The name associated with the stack.
-
withStackName
public Stack withStackName(String stackName)
The name associated with the stack.
- Parameters:
stackName- The name associated with the stack.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDescription
public void setDescription(String description)
A user-defined description associated with the stack.
- Parameters:
description- A user-defined description associated with the stack.
-
getDescription
public String getDescription()
A user-defined description associated with the stack.
- Returns:
- A user-defined description associated with the stack.
-
withDescription
public Stack withDescription(String description)
A user-defined description associated with the stack.
- Parameters:
description- A user-defined description associated with the stack.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getParameters
public List<Parameter> getParameters()
A list of
Parameterstructures.- Returns:
- A list of
Parameterstructures.
-
setParameters
public void setParameters(Collection<Parameter> parameters)
A list of
Parameterstructures.- Parameters:
parameters- A list ofParameterstructures.
-
withParameters
public Stack withParameters(Parameter... parameters)
A list of
Parameterstructures.NOTE: This method appends the values to the existing list (if any). Use
setParameters(java.util.Collection)orwithParameters(java.util.Collection)if you want to override the existing values.- Parameters:
parameters- A list ofParameterstructures.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withParameters
public Stack withParameters(Collection<Parameter> parameters)
A list of
Parameterstructures.- Parameters:
parameters- A list ofParameterstructures.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCreationTime
public void setCreationTime(Date creationTime)
The time at which the stack was created.
- Parameters:
creationTime- The time at which the stack was created.
-
getCreationTime
public Date getCreationTime()
The time at which the stack was created.
- Returns:
- The time at which the stack was created.
-
withCreationTime
public Stack withCreationTime(Date creationTime)
The time at which the stack was created.
- Parameters:
creationTime- The time at which the stack was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLastUpdatedTime
public void setLastUpdatedTime(Date lastUpdatedTime)
The time the stack was last updated. This field will only be returned if the stack has been updated at least once.
- Parameters:
lastUpdatedTime- The time the stack was last updated. This field will only be returned if the stack has been updated at least once.
-
getLastUpdatedTime
public Date getLastUpdatedTime()
The time the stack was last updated. This field will only be returned if the stack has been updated at least once.
- Returns:
- The time the stack was last updated. This field will only be returned if the stack has been updated at least once.
-
withLastUpdatedTime
public Stack withLastUpdatedTime(Date lastUpdatedTime)
The time the stack was last updated. This field will only be returned if the stack has been updated at least once.
- Parameters:
lastUpdatedTime- The time the stack was last updated. This field will only be returned if the stack has been updated at least once.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStackStatus
public void setStackStatus(String stackStatus)
Current status of the stack.
- Parameters:
stackStatus- Current status of the stack.- See Also:
StackStatus
-
getStackStatus
public String getStackStatus()
Current status of the stack.
- Returns:
- Current status of the stack.
- See Also:
StackStatus
-
withStackStatus
public Stack withStackStatus(String stackStatus)
Current status of the stack.
- Parameters:
stackStatus- Current status of the stack.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
StackStatus
-
setStackStatus
public void setStackStatus(StackStatus stackStatus)
Current status of the stack.
- Parameters:
stackStatus- Current status of the stack.- See Also:
StackStatus
-
withStackStatus
public Stack withStackStatus(StackStatus stackStatus)
Current status of the stack.
- Parameters:
stackStatus- Current status of the stack.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
StackStatus
-
setStackStatusReason
public void setStackStatusReason(String stackStatusReason)
Success/failure message associated with the stack status.
- Parameters:
stackStatusReason- Success/failure message associated with the stack status.
-
getStackStatusReason
public String getStackStatusReason()
Success/failure message associated with the stack status.
- Returns:
- Success/failure message associated with the stack status.
-
withStackStatusReason
public Stack withStackStatusReason(String stackStatusReason)
Success/failure message associated with the stack status.
- Parameters:
stackStatusReason- Success/failure message associated with the stack status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDisableRollback
public void setDisableRollback(Boolean disableRollback)
Boolean to enable or disable rollback on stack creation failures:
-
true: disable rollback -
false: enable rollback
- Parameters:
disableRollback- Boolean to enable or disable rollback on stack creation failures:-
true: disable rollback -
false: enable rollback
-
-
-
getDisableRollback
public Boolean getDisableRollback()
Boolean to enable or disable rollback on stack creation failures:
-
true: disable rollback -
false: enable rollback
- Returns:
- Boolean to enable or disable rollback on stack creation
failures:
-
true: disable rollback -
false: enable rollback
-
-
-
withDisableRollback
public Stack withDisableRollback(Boolean disableRollback)
Boolean to enable or disable rollback on stack creation failures:
-
true: disable rollback -
false: enable rollback
- Parameters:
disableRollback- Boolean to enable or disable rollback on stack creation failures:-
true: disable rollback -
false: enable rollback
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
isDisableRollback
public Boolean isDisableRollback()
Boolean to enable or disable rollback on stack creation failures:
-
true: disable rollback -
false: enable rollback
- Returns:
- Boolean to enable or disable rollback on stack creation
failures:
-
true: disable rollback -
false: enable rollback
-
-
-
getNotificationARNs
public List<String> getNotificationARNs()
SNS topic ARNs to which stack related events are published.
- Returns:
- SNS topic ARNs to which stack related events are published.
-
setNotificationARNs
public void setNotificationARNs(Collection<String> notificationARNs)
SNS topic ARNs to which stack related events are published.
- Parameters:
notificationARNs- SNS topic ARNs to which stack related events are published.
-
withNotificationARNs
public Stack withNotificationARNs(String... notificationARNs)
SNS topic ARNs to which stack related events are published.
NOTE: This method appends the values to the existing list (if any). Use
setNotificationARNs(java.util.Collection)orwithNotificationARNs(java.util.Collection)if you want to override the existing values.- Parameters:
notificationARNs- SNS topic ARNs to which stack related events are published.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withNotificationARNs
public Stack withNotificationARNs(Collection<String> notificationARNs)
SNS topic ARNs to which stack related events are published.
- Parameters:
notificationARNs- SNS topic ARNs to which stack related events are published.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTimeoutInMinutes
public void setTimeoutInMinutes(Integer timeoutInMinutes)
The amount of time within which stack creation should complete.
- Parameters:
timeoutInMinutes- The amount of time within which stack creation should complete.
-
getTimeoutInMinutes
public Integer getTimeoutInMinutes()
The amount of time within which stack creation should complete.
- Returns:
- The amount of time within which stack creation should complete.
-
withTimeoutInMinutes
public Stack withTimeoutInMinutes(Integer timeoutInMinutes)
The amount of time within which stack creation should complete.
- Parameters:
timeoutInMinutes- The amount of time within which stack creation should complete.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getCapabilities
public List<String> getCapabilities()
The capabilities allowed in the stack.
- Returns:
- The capabilities allowed in the stack.
- See Also:
Capability
-
setCapabilities
public void setCapabilities(Collection<String> capabilities)
The capabilities allowed in the stack.
- Parameters:
capabilities- The capabilities allowed in the stack.- See Also:
Capability
-
withCapabilities
public Stack withCapabilities(String... capabilities)
The capabilities allowed in the stack.
NOTE: This method appends the values to the existing list (if any). Use
setCapabilities(java.util.Collection)orwithCapabilities(java.util.Collection)if you want to override the existing values.- Parameters:
capabilities- The capabilities allowed in the stack.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Capability
-
withCapabilities
public Stack withCapabilities(Collection<String> capabilities)
The capabilities allowed in the stack.
- Parameters:
capabilities- The capabilities allowed in the stack.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Capability
-
withCapabilities
public Stack withCapabilities(Capability... capabilities)
The capabilities allowed in the stack.
- Parameters:
capabilities- The capabilities allowed in the stack.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Capability
-
getOutputs
public List<Output> getOutputs()
A list of output structures.
- Returns:
- A list of output structures.
-
setOutputs
public void setOutputs(Collection<Output> outputs)
A list of output structures.
- Parameters:
outputs- A list of output structures.
-
withOutputs
public Stack withOutputs(Output... outputs)
A list of output structures.
NOTE: This method appends the values to the existing list (if any). Use
setOutputs(java.util.Collection)orwithOutputs(java.util.Collection)if you want to override the existing values.- Parameters:
outputs- A list of output structures.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withOutputs
public Stack withOutputs(Collection<Output> outputs)
A list of output structures.
- Parameters:
outputs- A list of output structures.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getTags
public List<Tag> getTags()
A list of
Tags that specify information about the stack.- Returns:
- A list of
Tags that specify information about the stack.
-
setTags
public void setTags(Collection<Tag> tags)
A list of
Tags that specify information about the stack.- Parameters:
tags- A list ofTags that specify information about the stack.
-
withTags
public Stack withTags(Tag... tags)
A list of
Tags that specify information about the stack.NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)orwithTags(java.util.Collection)if you want to override the existing values.- Parameters:
tags- A list ofTags that specify information about the stack.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTags
public Stack withTags(Collection<Tag> tags)
A list of
Tags that specify information about the stack.- Parameters:
tags- A list ofTags that specify information about the stack.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-