com.amazonaws.services.opsworks.model
Class Stack

java.lang.Object
  extended by com.amazonaws.services.opsworks.model.Stack
All Implemented Interfaces:
Serializable

public class Stack
extends Object
implements Serializable

Describes a stack.

See Also:
Serialized Form

Constructor Summary
Stack()
           
 
Method Summary
 Stack addAttributesEntry(String key, String value)
          The stack's attributes.
 Stack clearAttributesEntries()
          Removes all the entries added into Attributes.
 boolean equals(Object obj)
           
 String getArn()
          The stack's ARN.
 Map<String,String> getAttributes()
          The stack's attributes.
 ChefConfiguration getChefConfiguration()
          A ChefConfiguration object that specifies whether to enable Berkshelf and the Berkshelf version.
 StackConfigurationManager getConfigurationManager()
          The configuration manager.
 String getCreatedAt()
          Date when the stack was created.
 Source getCustomCookbooksSource()
          Contains the information required to retrieve an app or cookbook from a repository.
 String getCustomJson()
          A string that contains user-defined, custom JSON.
 String getDefaultAvailabilityZone()
          The stack's default Availability Zone.
 String getDefaultInstanceProfileArn()
          The ARN of an IAM profile that is the default profile for all of the stack's EC2 instances.
 String getDefaultOs()
          The stack's default operating system, which must be set to Amazon Linux or Ubuntu 12.04 LTS.
 String getDefaultRootDeviceType()
          The default root device type.
 String getDefaultSshKeyName()
          A default SSH key for the stack's instances.
 String getDefaultSubnetId()
          The default subnet ID, if the stack is running in a VPC.
 String getHostnameTheme()
          The stack host name theme, with spaces replaced by underscores.
 String getName()
          The stack name.
 String getRegion()
          The stack AWS region, such as "us-east-1".
 String getServiceRoleArn()
          The stack AWS Identity and Access Management (IAM) role.
 String getStackId()
          The stack ID.
 Boolean getUseCustomCookbooks()
          Whether the stack uses custom cookbooks.
 Boolean getUseOpsworksSecurityGroups()
          Whether the stack automatically associates the AWS OpsWorks built-in security groups with the stack's layers.
 String getVpcId()
          The VPC ID, if the stack is running in a VPC.
 int hashCode()
           
 Boolean isUseCustomCookbooks()
          Whether the stack uses custom cookbooks.
 Boolean isUseOpsworksSecurityGroups()
          Whether the stack automatically associates the AWS OpsWorks built-in security groups with the stack's layers.
 void setArn(String arn)
          The stack's ARN.
 void setAttributes(Map<String,String> attributes)
          The stack's attributes.
 void setChefConfiguration(ChefConfiguration chefConfiguration)
          A ChefConfiguration object that specifies whether to enable Berkshelf and the Berkshelf version.
 void setConfigurationManager(StackConfigurationManager configurationManager)
          The configuration manager.
 void setCreatedAt(String createdAt)
          Date when the stack was created.
 void setCustomCookbooksSource(Source customCookbooksSource)
          Contains the information required to retrieve an app or cookbook from a repository.
 void setCustomJson(String customJson)
          A string that contains user-defined, custom JSON.
 void setDefaultAvailabilityZone(String defaultAvailabilityZone)
          The stack's default Availability Zone.
 void setDefaultInstanceProfileArn(String defaultInstanceProfileArn)
          The ARN of an IAM profile that is the default profile for all of the stack's EC2 instances.
 void setDefaultOs(String defaultOs)
          The stack's default operating system, which must be set to Amazon Linux or Ubuntu 12.04 LTS.
 void setDefaultRootDeviceType(RootDeviceType defaultRootDeviceType)
          The default root device type.
 void setDefaultRootDeviceType(String defaultRootDeviceType)
          The default root device type.
 void setDefaultSshKeyName(String defaultSshKeyName)
          A default SSH key for the stack's instances.
 void setDefaultSubnetId(String defaultSubnetId)
          The default subnet ID, if the stack is running in a VPC.
 void setHostnameTheme(String hostnameTheme)
          The stack host name theme, with spaces replaced by underscores.
 void setName(String name)
          The stack name.
 void setRegion(String region)
          The stack AWS region, such as "us-east-1".
 void setServiceRoleArn(String serviceRoleArn)
          The stack AWS Identity and Access Management (IAM) role.
 void setStackId(String stackId)
          The stack ID.
 void setUseCustomCookbooks(Boolean useCustomCookbooks)
          Whether the stack uses custom cookbooks.
 void setUseOpsworksSecurityGroups(Boolean useOpsworksSecurityGroups)
          Whether the stack automatically associates the AWS OpsWorks built-in security groups with the stack's layers.
 void setVpcId(String vpcId)
          The VPC ID, if the stack is running in a VPC.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 Stack withArn(String arn)
          The stack's ARN.
 Stack withAttributes(Map<String,String> attributes)
          The stack's attributes.
 Stack withChefConfiguration(ChefConfiguration chefConfiguration)
          A ChefConfiguration object that specifies whether to enable Berkshelf and the Berkshelf version.
 Stack withConfigurationManager(StackConfigurationManager configurationManager)
          The configuration manager.
 Stack withCreatedAt(String createdAt)
          Date when the stack was created.
 Stack withCustomCookbooksSource(Source customCookbooksSource)
          Contains the information required to retrieve an app or cookbook from a repository.
 Stack withCustomJson(String customJson)
          A string that contains user-defined, custom JSON.
 Stack withDefaultAvailabilityZone(String defaultAvailabilityZone)
          The stack's default Availability Zone.
 Stack withDefaultInstanceProfileArn(String defaultInstanceProfileArn)
          The ARN of an IAM profile that is the default profile for all of the stack's EC2 instances.
 Stack withDefaultOs(String defaultOs)
          The stack's default operating system, which must be set to Amazon Linux or Ubuntu 12.04 LTS.
 Stack withDefaultRootDeviceType(RootDeviceType defaultRootDeviceType)
          The default root device type.
 Stack withDefaultRootDeviceType(String defaultRootDeviceType)
          The default root device type.
 Stack withDefaultSshKeyName(String defaultSshKeyName)
          A default SSH key for the stack's instances.
 Stack withDefaultSubnetId(String defaultSubnetId)
          The default subnet ID, if the stack is running in a VPC.
 Stack withHostnameTheme(String hostnameTheme)
          The stack host name theme, with spaces replaced by underscores.
 Stack withName(String name)
          The stack name.
 Stack withRegion(String region)
          The stack AWS region, such as "us-east-1".
 Stack withServiceRoleArn(String serviceRoleArn)
          The stack AWS Identity and Access Management (IAM) role.
 Stack withStackId(String stackId)
          The stack ID.
 Stack withUseCustomCookbooks(Boolean useCustomCookbooks)
          Whether the stack uses custom cookbooks.
 Stack withUseOpsworksSecurityGroups(Boolean useOpsworksSecurityGroups)
          Whether the stack automatically associates the AWS OpsWorks built-in security groups with the stack's layers.
 Stack withVpcId(String vpcId)
          The VPC ID, if the stack is running in a VPC.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Stack

public Stack()
Method Detail

getStackId

public String getStackId()
The stack ID.

Returns:
The stack ID.

setStackId

public void setStackId(String stackId)
The stack ID.

Parameters:
stackId - The stack ID.

withStackId

public Stack withStackId(String stackId)
The stack ID.

Returns a reference to this object so that method calls can be chained together.

Parameters:
stackId - The stack ID.
Returns:
A reference to this updated object so that method calls can be chained together.

getName

public String getName()
The stack name.

Returns:
The stack name.

setName

public void setName(String name)
The stack name.

Parameters:
name - The stack name.

withName

public Stack withName(String name)
The stack name.

Returns a reference to this object so that method calls can be chained together.

Parameters:
name - The stack name.
Returns:
A reference to this updated object so that method calls can be chained together.

getArn

public String getArn()
The stack's ARN.

Returns:
The stack's ARN.

setArn

public void setArn(String arn)
The stack's ARN.

Parameters:
arn - The stack's ARN.

withArn

public Stack withArn(String arn)
The stack's ARN.

Returns a reference to this object so that method calls can be chained together.

Parameters:
arn - The stack's ARN.
Returns:
A reference to this updated object so that method calls can be chained together.

getRegion

public String getRegion()
The stack AWS region, such as "us-east-1". For more information about AWS regions, see Regions and Endpoints.

Returns:
The stack AWS region, such as "us-east-1". For more information about AWS regions, see Regions and Endpoints.

setRegion

public void setRegion(String region)
The stack AWS region, such as "us-east-1". For more information about AWS regions, see Regions and Endpoints.

Parameters:
region - The stack AWS region, such as "us-east-1". For more information about AWS regions, see Regions and Endpoints.

withRegion

public Stack withRegion(String region)
The stack AWS region, such as "us-east-1". For more information about AWS regions, see Regions and Endpoints.

Returns a reference to this object so that method calls can be chained together.

Parameters:
region - The stack AWS region, such as "us-east-1". For more information about AWS regions, see Regions and Endpoints.
Returns:
A reference to this updated object so that method calls can be chained together.

getVpcId

public String getVpcId()
The VPC ID, if the stack is running in a VPC.

Returns:
The VPC ID, if the stack is running in a VPC.

setVpcId

public void setVpcId(String vpcId)
The VPC ID, if the stack is running in a VPC.

Parameters:
vpcId - The VPC ID, if the stack is running in a VPC.

withVpcId

public Stack withVpcId(String vpcId)
The VPC ID, if the stack is running in a VPC.

Returns a reference to this object so that method calls can be chained together.

Parameters:
vpcId - The VPC ID, if the stack is running in a VPC.
Returns:
A reference to this updated object so that method calls can be chained together.

getAttributes

public Map<String,String> getAttributes()
The stack's attributes.

Returns:
The stack's attributes.

setAttributes

public void setAttributes(Map<String,String> attributes)
The stack's attributes.

Parameters:
attributes - The stack's attributes.

withAttributes

public Stack withAttributes(Map<String,String> attributes)
The stack's attributes.

Returns a reference to this object so that method calls can be chained together.

Parameters:
attributes - The stack's attributes.
Returns:
A reference to this updated object so that method calls can be chained together.

addAttributesEntry

public Stack addAttributesEntry(String key,
                                String value)
The stack's attributes.

The method adds a new key-value pair into Attributes parameter, and returns a reference to this object so that method calls can be chained together.

Parameters:
key - The key of the entry to be added into Attributes.
value - The corresponding value of the entry to be added into Attributes.

clearAttributesEntries

public Stack clearAttributesEntries()
Removes all the entries added into Attributes.

Returns a reference to this object so that method calls can be chained together.


getServiceRoleArn

public String getServiceRoleArn()
The stack AWS Identity and Access Management (IAM) role.

Returns:
The stack AWS Identity and Access Management (IAM) role.

setServiceRoleArn

public void setServiceRoleArn(String serviceRoleArn)
The stack AWS Identity and Access Management (IAM) role.

Parameters:
serviceRoleArn - The stack AWS Identity and Access Management (IAM) role.

withServiceRoleArn

public Stack withServiceRoleArn(String serviceRoleArn)
The stack AWS Identity and Access Management (IAM) role.

Returns a reference to this object so that method calls can be chained together.

Parameters:
serviceRoleArn - The stack AWS Identity and Access Management (IAM) role.
Returns:
A reference to this updated object so that method calls can be chained together.

getDefaultInstanceProfileArn

public String getDefaultInstanceProfileArn()
The ARN of an IAM profile that is the default profile for all of the stack's EC2 instances. For more information about IAM ARNs, see Using Identifiers.

Returns:
The ARN of an IAM profile that is the default profile for all of the stack's EC2 instances. For more information about IAM ARNs, see Using Identifiers.

setDefaultInstanceProfileArn

public void setDefaultInstanceProfileArn(String defaultInstanceProfileArn)
The ARN of an IAM profile that is the default profile for all of the stack's EC2 instances. For more information about IAM ARNs, see Using Identifiers.

Parameters:
defaultInstanceProfileArn - The ARN of an IAM profile that is the default profile for all of the stack's EC2 instances. For more information about IAM ARNs, see Using Identifiers.

withDefaultInstanceProfileArn

public Stack withDefaultInstanceProfileArn(String defaultInstanceProfileArn)
The ARN of an IAM profile that is the default profile for all of the stack's EC2 instances. For more information about IAM ARNs, see Using Identifiers.

Returns a reference to this object so that method calls can be chained together.

Parameters:
defaultInstanceProfileArn - The ARN of an IAM profile that is the default profile for all of the stack's EC2 instances. For more information about IAM ARNs, see Using Identifiers.
Returns:
A reference to this updated object so that method calls can be chained together.

getDefaultOs

public String getDefaultOs()
The stack's default operating system, which must be set to Amazon Linux or Ubuntu 12.04 LTS. The default option is Amazon Linux.

Returns:
The stack's default operating system, which must be set to Amazon Linux or Ubuntu 12.04 LTS. The default option is Amazon Linux.

setDefaultOs

public void setDefaultOs(String defaultOs)
The stack's default operating system, which must be set to Amazon Linux or Ubuntu 12.04 LTS. The default option is Amazon Linux.

Parameters:
defaultOs - The stack's default operating system, which must be set to Amazon Linux or Ubuntu 12.04 LTS. The default option is Amazon Linux.

withDefaultOs

public Stack withDefaultOs(String defaultOs)
The stack's default operating system, which must be set to Amazon Linux or Ubuntu 12.04 LTS. The default option is Amazon Linux.

Returns a reference to this object so that method calls can be chained together.

Parameters:
defaultOs - The stack's default operating system, which must be set to Amazon Linux or Ubuntu 12.04 LTS. The default option is Amazon Linux.
Returns:
A reference to this updated object so that method calls can be chained together.

getHostnameTheme

public String getHostnameTheme()
The stack host name theme, with spaces replaced by underscores.

Returns:
The stack host name theme, with spaces replaced by underscores.

setHostnameTheme

public void setHostnameTheme(String hostnameTheme)
The stack host name theme, with spaces replaced by underscores.

Parameters:
hostnameTheme - The stack host name theme, with spaces replaced by underscores.

withHostnameTheme

public Stack withHostnameTheme(String hostnameTheme)
The stack host name theme, with spaces replaced by underscores.

Returns a reference to this object so that method calls can be chained together.

Parameters:
hostnameTheme - The stack host name theme, with spaces replaced by underscores.
Returns:
A reference to this updated object so that method calls can be chained together.

getDefaultAvailabilityZone

public String getDefaultAvailabilityZone()
The stack's default Availability Zone. For more information, see Regions and Endpoints.

Returns:
The stack's default Availability Zone. For more information, see Regions and Endpoints.

setDefaultAvailabilityZone

public void setDefaultAvailabilityZone(String defaultAvailabilityZone)
The stack's default Availability Zone. For more information, see Regions and Endpoints.

Parameters:
defaultAvailabilityZone - The stack's default Availability Zone. For more information, see Regions and Endpoints.

withDefaultAvailabilityZone

public Stack withDefaultAvailabilityZone(String defaultAvailabilityZone)
The stack's default Availability Zone. For more information, see Regions and Endpoints.

Returns a reference to this object so that method calls can be chained together.

Parameters:
defaultAvailabilityZone - The stack's default Availability Zone. For more information, see Regions and Endpoints.
Returns:
A reference to this updated object so that method calls can be chained together.

getDefaultSubnetId

public String getDefaultSubnetId()
The default subnet ID, if the stack is running in a VPC.

Returns:
The default subnet ID, if the stack is running in a VPC.

setDefaultSubnetId

public void setDefaultSubnetId(String defaultSubnetId)
The default subnet ID, if the stack is running in a VPC.

Parameters:
defaultSubnetId - The default subnet ID, if the stack is running in a VPC.

withDefaultSubnetId

public Stack withDefaultSubnetId(String defaultSubnetId)
The default subnet ID, if the stack is running in a VPC.

Returns a reference to this object so that method calls can be chained together.

Parameters:
defaultSubnetId - The default subnet ID, if the stack is running in a VPC.
Returns:
A reference to this updated object so that method calls can be chained together.

getCustomJson

public String getCustomJson()
A string that contains user-defined, custom JSON. It is used to override the corresponding default stack configuration JSON values. The string should be in the following format and must escape characters such as '"'.:

"{\"key1\": \"value1\", \"key2\": \"value2\",...}"

For more information on custom JSON, see Use Custom JSON to Modify the Stack Configuration JSON.

Returns:
A string that contains user-defined, custom JSON. It is used to override the corresponding default stack configuration JSON values. The string should be in the following format and must escape characters such as '"'.:

"{\"key1\": \"value1\", \"key2\": \"value2\",...}"

For more information on custom JSON, see Use Custom JSON to Modify the Stack Configuration JSON.


setCustomJson

public void setCustomJson(String customJson)
A string that contains user-defined, custom JSON. It is used to override the corresponding default stack configuration JSON values. The string should be in the following format and must escape characters such as '"'.:

"{\"key1\": \"value1\", \"key2\": \"value2\",...}"

For more information on custom JSON, see Use Custom JSON to Modify the Stack Configuration JSON.

Parameters:
customJson - A string that contains user-defined, custom JSON. It is used to override the corresponding default stack configuration JSON values. The string should be in the following format and must escape characters such as '"'.:

"{\"key1\": \"value1\", \"key2\": \"value2\",...}"

For more information on custom JSON, see Use Custom JSON to Modify the Stack Configuration JSON.


withCustomJson

public Stack withCustomJson(String customJson)
A string that contains user-defined, custom JSON. It is used to override the corresponding default stack configuration JSON values. The string should be in the following format and must escape characters such as '"'.:

"{\"key1\": \"value1\", \"key2\": \"value2\",...}"

For more information on custom JSON, see Use Custom JSON to Modify the Stack Configuration JSON.

Returns a reference to this object so that method calls can be chained together.

Parameters:
customJson - A string that contains user-defined, custom JSON. It is used to override the corresponding default stack configuration JSON values. The string should be in the following format and must escape characters such as '"'.:

"{\"key1\": \"value1\", \"key2\": \"value2\",...}"

For more information on custom JSON, see Use Custom JSON to Modify the Stack Configuration JSON.

Returns:
A reference to this updated object so that method calls can be chained together.

getConfigurationManager

public StackConfigurationManager getConfigurationManager()
The configuration manager.

Returns:
The configuration manager.

setConfigurationManager

public void setConfigurationManager(StackConfigurationManager configurationManager)
The configuration manager.

Parameters:
configurationManager - The configuration manager.

withConfigurationManager

public Stack withConfigurationManager(StackConfigurationManager configurationManager)
The configuration manager.

Returns a reference to this object so that method calls can be chained together.

Parameters:
configurationManager - The configuration manager.
Returns:
A reference to this updated object so that method calls can be chained together.

getChefConfiguration

public ChefConfiguration getChefConfiguration()
A ChefConfiguration object that specifies whether to enable Berkshelf and the Berkshelf version. For more information, see Create a New Stack.

Returns:
A ChefConfiguration object that specifies whether to enable Berkshelf and the Berkshelf version. For more information, see Create a New Stack.

setChefConfiguration

public void setChefConfiguration(ChefConfiguration chefConfiguration)
A ChefConfiguration object that specifies whether to enable Berkshelf and the Berkshelf version. For more information, see Create a New Stack.

Parameters:
chefConfiguration - A ChefConfiguration object that specifies whether to enable Berkshelf and the Berkshelf version. For more information, see Create a New Stack.

withChefConfiguration

public Stack withChefConfiguration(ChefConfiguration chefConfiguration)
A ChefConfiguration object that specifies whether to enable Berkshelf and the Berkshelf version. For more information, see Create a New Stack.

Returns a reference to this object so that method calls can be chained together.

Parameters:
chefConfiguration - A ChefConfiguration object that specifies whether to enable Berkshelf and the Berkshelf version. For more information, see Create a New Stack.
Returns:
A reference to this updated object so that method calls can be chained together.

isUseCustomCookbooks

public Boolean isUseCustomCookbooks()
Whether the stack uses custom cookbooks.

Returns:
Whether the stack uses custom cookbooks.

setUseCustomCookbooks

public void setUseCustomCookbooks(Boolean useCustomCookbooks)
Whether the stack uses custom cookbooks.

Parameters:
useCustomCookbooks - Whether the stack uses custom cookbooks.

withUseCustomCookbooks

public Stack withUseCustomCookbooks(Boolean useCustomCookbooks)
Whether the stack uses custom cookbooks.

Returns a reference to this object so that method calls can be chained together.

Parameters:
useCustomCookbooks - Whether the stack uses custom cookbooks.
Returns:
A reference to this updated object so that method calls can be chained together.

getUseCustomCookbooks

public Boolean getUseCustomCookbooks()
Whether the stack uses custom cookbooks.

Returns:
Whether the stack uses custom cookbooks.

isUseOpsworksSecurityGroups

public Boolean isUseOpsworksSecurityGroups()
Whether the stack automatically associates the AWS OpsWorks built-in security groups with the stack's layers.

Returns:
Whether the stack automatically associates the AWS OpsWorks built-in security groups with the stack's layers.

setUseOpsworksSecurityGroups

public void setUseOpsworksSecurityGroups(Boolean useOpsworksSecurityGroups)
Whether the stack automatically associates the AWS OpsWorks built-in security groups with the stack's layers.

Parameters:
useOpsworksSecurityGroups - Whether the stack automatically associates the AWS OpsWorks built-in security groups with the stack's layers.

withUseOpsworksSecurityGroups

public Stack withUseOpsworksSecurityGroups(Boolean useOpsworksSecurityGroups)
Whether the stack automatically associates the AWS OpsWorks built-in security groups with the stack's layers.

Returns a reference to this object so that method calls can be chained together.

Parameters:
useOpsworksSecurityGroups - Whether the stack automatically associates the AWS OpsWorks built-in security groups with the stack's layers.
Returns:
A reference to this updated object so that method calls can be chained together.

getUseOpsworksSecurityGroups

public Boolean getUseOpsworksSecurityGroups()
Whether the stack automatically associates the AWS OpsWorks built-in security groups with the stack's layers.

Returns:
Whether the stack automatically associates the AWS OpsWorks built-in security groups with the stack's layers.

getCustomCookbooksSource

public Source getCustomCookbooksSource()
Contains the information required to retrieve an app or cookbook from a repository. For more information, see Creating Apps or Custom Recipes and Cookbooks.

Returns:
Contains the information required to retrieve an app or cookbook from a repository. For more information, see Creating Apps or Custom Recipes and Cookbooks.

setCustomCookbooksSource

public void setCustomCookbooksSource(Source customCookbooksSource)
Contains the information required to retrieve an app or cookbook from a repository. For more information, see Creating Apps or Custom Recipes and Cookbooks.

Parameters:
customCookbooksSource - Contains the information required to retrieve an app or cookbook from a repository. For more information, see Creating Apps or Custom Recipes and Cookbooks.

withCustomCookbooksSource

public Stack withCustomCookbooksSource(Source customCookbooksSource)
Contains the information required to retrieve an app or cookbook from a repository. For more information, see Creating Apps or Custom Recipes and Cookbooks.

Returns a reference to this object so that method calls can be chained together.

Parameters:
customCookbooksSource - Contains the information required to retrieve an app or cookbook from a repository. For more information, see Creating Apps or Custom Recipes and Cookbooks.
Returns:
A reference to this updated object so that method calls can be chained together.

getDefaultSshKeyName

public String getDefaultSshKeyName()
A default SSH key for the stack's instances. You can override this value when you create or update an instance.

Returns:
A default SSH key for the stack's instances. You can override this value when you create or update an instance.

setDefaultSshKeyName

public void setDefaultSshKeyName(String defaultSshKeyName)
A default SSH key for the stack's instances. You can override this value when you create or update an instance.

Parameters:
defaultSshKeyName - A default SSH key for the stack's instances. You can override this value when you create or update an instance.

withDefaultSshKeyName

public Stack withDefaultSshKeyName(String defaultSshKeyName)
A default SSH key for the stack's instances. You can override this value when you create or update an instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
defaultSshKeyName - A default SSH key for the stack's instances. You can override this value when you create or update an instance.
Returns:
A reference to this updated object so that method calls can be chained together.

getCreatedAt

public String getCreatedAt()
Date when the stack was created.

Returns:
Date when the stack was created.

setCreatedAt

public void setCreatedAt(String createdAt)
Date when the stack was created.

Parameters:
createdAt - Date when the stack was created.

withCreatedAt

public Stack withCreatedAt(String createdAt)
Date when the stack was created.

Returns a reference to this object so that method calls can be chained together.

Parameters:
createdAt - Date when the stack was created.
Returns:
A reference to this updated object so that method calls can be chained together.

getDefaultRootDeviceType

public String getDefaultRootDeviceType()
The default root device type. This value is used by default for all instances in the stack, but you can override it when you create an instance. For more information, see Storage for the Root Device.

Constraints:
Allowed Values: ebs, instance-store

Returns:
The default root device type. This value is used by default for all instances in the stack, but you can override it when you create an instance. For more information, see Storage for the Root Device.
See Also:
RootDeviceType

setDefaultRootDeviceType

public void setDefaultRootDeviceType(String defaultRootDeviceType)
The default root device type. This value is used by default for all instances in the stack, but you can override it when you create an instance. For more information, see Storage for the Root Device.

Constraints:
Allowed Values: ebs, instance-store

Parameters:
defaultRootDeviceType - The default root device type. This value is used by default for all instances in the stack, but you can override it when you create an instance. For more information, see Storage for the Root Device.
See Also:
RootDeviceType

withDefaultRootDeviceType

public Stack withDefaultRootDeviceType(String defaultRootDeviceType)
The default root device type. This value is used by default for all instances in the stack, but you can override it when you create an instance. For more information, see Storage for the Root Device.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: ebs, instance-store

Parameters:
defaultRootDeviceType - The default root device type. This value is used by default for all instances in the stack, but you can override it when you create an instance. For more information, see Storage for the Root Device.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
RootDeviceType

setDefaultRootDeviceType

public void setDefaultRootDeviceType(RootDeviceType defaultRootDeviceType)
The default root device type. This value is used by default for all instances in the stack, but you can override it when you create an instance. For more information, see Storage for the Root Device.

Constraints:
Allowed Values: ebs, instance-store

Parameters:
defaultRootDeviceType - The default root device type. This value is used by default for all instances in the stack, but you can override it when you create an instance. For more information, see Storage for the Root Device.
See Also:
RootDeviceType

withDefaultRootDeviceType

public Stack withDefaultRootDeviceType(RootDeviceType defaultRootDeviceType)
The default root device type. This value is used by default for all instances in the stack, but you can override it when you create an instance. For more information, see Storage for the Root Device.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: ebs, instance-store

Parameters:
defaultRootDeviceType - The default root device type. This value is used by default for all instances in the stack, but you can override it when you create an instance. For more information, see Storage for the Root Device.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
RootDeviceType

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2016. All rights reserved.