Class StackSummary
- java.lang.Object
-
- com.amazonaws.services.opsworks.model.StackSummary
-
- All Implemented Interfaces:
Serializable,Cloneable
public class StackSummary extends Object implements Serializable, Cloneable
Summarizes the number of layers, instances, and apps in a stack.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StackSummary()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StackSummaryclone()booleanequals(Object obj)IntegergetAppsCount()The number of apps.StringgetArn()The stack's ARN.InstancesCountgetInstancesCount()AnInstancesCountobject with the number of instances in each status.IntegergetLayersCount()The number of layers.StringgetName()The stack name.StringgetStackId()The stack ID.inthashCode()voidsetAppsCount(Integer appsCount)The number of apps.voidsetArn(String arn)The stack's ARN.voidsetInstancesCount(InstancesCount instancesCount)AnInstancesCountobject with the number of instances in each status.voidsetLayersCount(Integer layersCount)The number of layers.voidsetName(String name)The stack name.voidsetStackId(String stackId)The stack ID.StringtoString()Returns a string representation of this object; useful for testing and debugging.StackSummarywithAppsCount(Integer appsCount)The number of apps.StackSummarywithArn(String arn)The stack's ARN.StackSummarywithInstancesCount(InstancesCount instancesCount)AnInstancesCountobject with the number of instances in each status.StackSummarywithLayersCount(Integer layersCount)The number of layers.StackSummarywithName(String name)The stack name.StackSummarywithStackId(String stackId)The stack ID.
-
-
-
Method Detail
-
setStackId
public void setStackId(String stackId)
The stack ID.
- Parameters:
stackId- The stack ID.
-
getStackId
public String getStackId()
The stack ID.
- Returns:
- The stack ID.
-
withStackId
public StackSummary withStackId(String stackId)
The stack ID.
- Parameters:
stackId- The stack ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setName
public void setName(String name)
The stack name.
- Parameters:
name- The stack name.
-
getName
public String getName()
The stack name.
- Returns:
- The stack name.
-
withName
public StackSummary withName(String name)
The stack name.
- Parameters:
name- The stack name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setArn
public void setArn(String arn)
The stack's ARN.
- Parameters:
arn- The stack's ARN.
-
getArn
public String getArn()
The stack's ARN.
- Returns:
- The stack's ARN.
-
withArn
public StackSummary withArn(String arn)
The stack's ARN.
- Parameters:
arn- The stack's ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLayersCount
public void setLayersCount(Integer layersCount)
The number of layers.
- Parameters:
layersCount- The number of layers.
-
getLayersCount
public Integer getLayersCount()
The number of layers.
- Returns:
- The number of layers.
-
withLayersCount
public StackSummary withLayersCount(Integer layersCount)
The number of layers.
- Parameters:
layersCount- The number of layers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAppsCount
public void setAppsCount(Integer appsCount)
The number of apps.
- Parameters:
appsCount- The number of apps.
-
getAppsCount
public Integer getAppsCount()
The number of apps.
- Returns:
- The number of apps.
-
withAppsCount
public StackSummary withAppsCount(Integer appsCount)
The number of apps.
- Parameters:
appsCount- The number of apps.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstancesCount
public void setInstancesCount(InstancesCount instancesCount)
An
InstancesCountobject with the number of instances in each status.- Parameters:
instancesCount- AnInstancesCountobject with the number of instances in each status.
-
getInstancesCount
public InstancesCount getInstancesCount()
An
InstancesCountobject with the number of instances in each status.- Returns:
- An
InstancesCountobject with the number of instances in each status.
-
withInstancesCount
public StackSummary withInstancesCount(InstancesCount instancesCount)
An
InstancesCountobject with the number of instances in each status.- Parameters:
instancesCount- AnInstancesCountobject with the number of instances in each status.- 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()
-
clone
public StackSummary clone()
-
-