Class StackResource
- java.lang.Object
-
- com.amazonaws.services.cloudformation.model.StackResource
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class StackResource extends Object implements Serializable, Cloneable
The StackResource data type.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StackResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StackResource
clone()
boolean
equals(Object obj)
String
getDescription()
User defined description associated with the resource.String
getLogicalResourceId()
The logical name of the resource specified in the template.String
getPhysicalResourceId()
The name or unique identifier that corresponds to a physical instance ID of a resource supported by AWS CloudFormation.String
getResourceStatus()
Current status of the resource.String
getResourceStatusReason()
Success/failure message associated with the resource.String
getResourceType()
Type of resource.String
getStackId()
Unique identifier of the stack.String
getStackName()
The name associated with the stack.Date
getTimestamp()
Time the status was updated.int
hashCode()
void
setDescription(String description)
User defined description associated with the resource.void
setLogicalResourceId(String logicalResourceId)
The logical name of the resource specified in the template.void
setPhysicalResourceId(String physicalResourceId)
The name or unique identifier that corresponds to a physical instance ID of a resource supported by AWS CloudFormation.void
setResourceStatus(ResourceStatus resourceStatus)
Current status of the resource.void
setResourceStatus(String resourceStatus)
Current status of the resource.void
setResourceStatusReason(String resourceStatusReason)
Success/failure message associated with the resource.void
setResourceType(String resourceType)
Type of resource.void
setStackId(String stackId)
Unique identifier of the stack.void
setStackName(String stackName)
The name associated with the stack.void
setTimestamp(Date timestamp)
Time the status was updated.String
toString()
Returns a string representation of this object; useful for testing and debugging.StackResource
withDescription(String description)
User defined description associated with the resource.StackResource
withLogicalResourceId(String logicalResourceId)
The logical name of the resource specified in the template.StackResource
withPhysicalResourceId(String physicalResourceId)
The name or unique identifier that corresponds to a physical instance ID of a resource supported by AWS CloudFormation.StackResource
withResourceStatus(ResourceStatus resourceStatus)
Current status of the resource.StackResource
withResourceStatus(String resourceStatus)
Current status of the resource.StackResource
withResourceStatusReason(String resourceStatusReason)
Success/failure message associated with the resource.StackResource
withResourceType(String resourceType)
Type of resource.StackResource
withStackId(String stackId)
Unique identifier of the stack.StackResource
withStackName(String stackName)
The name associated with the stack.StackResource
withTimestamp(Date timestamp)
Time the status was updated.
-
-
-
Method Detail
-
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 StackResource 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.
-
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 StackResource 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.
-
setLogicalResourceId
public void setLogicalResourceId(String logicalResourceId)
The logical name of the resource specified in the template.
- Parameters:
logicalResourceId
- The logical name of the resource specified in the template.
-
getLogicalResourceId
public String getLogicalResourceId()
The logical name of the resource specified in the template.
- Returns:
- The logical name of the resource specified in the template.
-
withLogicalResourceId
public StackResource withLogicalResourceId(String logicalResourceId)
The logical name of the resource specified in the template.
- Parameters:
logicalResourceId
- The logical name of the resource specified in the template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPhysicalResourceId
public void setPhysicalResourceId(String physicalResourceId)
The name or unique identifier that corresponds to a physical instance ID of a resource supported by AWS CloudFormation.
- Parameters:
physicalResourceId
- The name or unique identifier that corresponds to a physical instance ID of a resource supported by AWS CloudFormation.
-
getPhysicalResourceId
public String getPhysicalResourceId()
The name or unique identifier that corresponds to a physical instance ID of a resource supported by AWS CloudFormation.
- Returns:
- The name or unique identifier that corresponds to a physical instance ID of a resource supported by AWS CloudFormation.
-
withPhysicalResourceId
public StackResource withPhysicalResourceId(String physicalResourceId)
The name or unique identifier that corresponds to a physical instance ID of a resource supported by AWS CloudFormation.
- Parameters:
physicalResourceId
- The name or unique identifier that corresponds to a physical instance ID of a resource supported by AWS CloudFormation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setResourceType
public void setResourceType(String resourceType)
Type of resource. (For more information, go to AWS Resource Types Reference in the AWS CloudFormation User Guide.)
- Parameters:
resourceType
- Type of resource. (For more information, go to AWS Resource Types Reference in the AWS CloudFormation User Guide.)
-
getResourceType
public String getResourceType()
Type of resource. (For more information, go to AWS Resource Types Reference in the AWS CloudFormation User Guide.)
- Returns:
- Type of resource. (For more information, go to AWS Resource Types Reference in the AWS CloudFormation User Guide.)
-
withResourceType
public StackResource withResourceType(String resourceType)
Type of resource. (For more information, go to AWS Resource Types Reference in the AWS CloudFormation User Guide.)
- Parameters:
resourceType
- Type of resource. (For more information, go to AWS Resource Types Reference in the AWS CloudFormation User Guide.)- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTimestamp
public void setTimestamp(Date timestamp)
Time the status was updated.
- Parameters:
timestamp
- Time the status was updated.
-
getTimestamp
public Date getTimestamp()
Time the status was updated.
- Returns:
- Time the status was updated.
-
withTimestamp
public StackResource withTimestamp(Date timestamp)
Time the status was updated.
- Parameters:
timestamp
- Time the status was updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setResourceStatus
public void setResourceStatus(String resourceStatus)
Current status of the resource.
- Parameters:
resourceStatus
- Current status of the resource.- See Also:
ResourceStatus
-
getResourceStatus
public String getResourceStatus()
Current status of the resource.
- Returns:
- Current status of the resource.
- See Also:
ResourceStatus
-
withResourceStatus
public StackResource withResourceStatus(String resourceStatus)
Current status of the resource.
- Parameters:
resourceStatus
- Current status of the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ResourceStatus
-
setResourceStatus
public void setResourceStatus(ResourceStatus resourceStatus)
Current status of the resource.
- Parameters:
resourceStatus
- Current status of the resource.- See Also:
ResourceStatus
-
withResourceStatus
public StackResource withResourceStatus(ResourceStatus resourceStatus)
Current status of the resource.
- Parameters:
resourceStatus
- Current status of the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ResourceStatus
-
setResourceStatusReason
public void setResourceStatusReason(String resourceStatusReason)
Success/failure message associated with the resource.
- Parameters:
resourceStatusReason
- Success/failure message associated with the resource.
-
getResourceStatusReason
public String getResourceStatusReason()
Success/failure message associated with the resource.
- Returns:
- Success/failure message associated with the resource.
-
withResourceStatusReason
public StackResource withResourceStatusReason(String resourceStatusReason)
Success/failure message associated with the resource.
- Parameters:
resourceStatusReason
- Success/failure message associated with the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDescription
public void setDescription(String description)
User defined description associated with the resource.
- Parameters:
description
- User defined description associated with the resource.
-
getDescription
public String getDescription()
User defined description associated with the resource.
- Returns:
- User defined description associated with the resource.
-
withDescription
public StackResource withDescription(String description)
User defined description associated with the resource.
- Parameters:
description
- User defined description associated with the resource.- 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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public StackResource clone()
-
-