Did this page help you?

   Yes   No   Tell us about it...

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
 boolean equals(Object obj)
           
 Map<String,String> getAttributes()
          The contents of the stack's attributes bag.
 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 cloned stack default operating system, which must be either "Amazon Linux" or "Ubuntu 12.04 LTS".
 String getDefaultSshKeyName()
          A default SSH key for the stack's instances.
 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.
 int hashCode()
           
 Boolean isUseCustomCookbooks()
          Whether the stack uses custom cookbooks.
 void setAttributes(Map<String,String> attributes)
          The contents of the stack's attributes bag.
 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 cloned stack default operating system, which must be either "Amazon Linux" or "Ubuntu 12.04 LTS".
 void setDefaultSshKeyName(String defaultSshKeyName)
          A default SSH key for the stack's instances.
 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.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 Stack withAttributes(Map<String,String> attributes)
          The contents of the stack's attributes bag.
 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 cloned stack default operating system, which must be either "Amazon Linux" or "Ubuntu 12.04 LTS".
 Stack withDefaultSshKeyName(String defaultSshKeyName)
          A default SSH key for the stack's instances.
 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.
 
Methods inherited from class java.lang.Object
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.

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.

getAttributes

public Map<String,String> getAttributes()
The contents of the stack's attributes bag.

Returns:
The contents of the stack's attributes bag.

setAttributes

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

Parameters:
attributes - The contents of the stack's attributes bag.

withAttributes

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

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

Parameters:
attributes - The contents of the stack's attributes bag.
Returns:
A reference to this updated 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 cloned stack default operating system, which must be either "Amazon Linux" or "Ubuntu 12.04 LTS".

Returns:
The cloned stack default operating system, which must be either "Amazon Linux" or "Ubuntu 12.04 LTS".

setDefaultOs

public void setDefaultOs(String defaultOs)
The cloned stack default operating system, which must be either "Amazon Linux" or "Ubuntu 12.04 LTS".

Parameters:
defaultOs - The cloned stack default operating system, which must be either "Amazon Linux" or "Ubuntu 12.04 LTS".

withDefaultOs

public Stack withDefaultOs(String defaultOs)
The cloned stack default operating system, which must be either "Amazon Linux" or "Ubuntu 12.04 LTS".

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

Parameters:
defaultOs - The cloned stack default operating system, which must be either "Amazon Linux" or "Ubuntu 12.04 LTS".
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.

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\",...}"

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\",...}"

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\",...}"

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\",...}"

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\",...}"

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\",...}"
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.

getCustomCookbooksSource

public Source getCustomCookbooksSource()
Contains the information required to retrieve an app or cookbook from a repository.

Returns:
Contains the information required to retrieve an app or cookbook from a repository.

setCustomCookbooksSource

public void setCustomCookbooksSource(Source customCookbooksSource)
Contains the information required to retrieve an app or cookbook from a repository.

Parameters:
customCookbooksSource - Contains the information required to retrieve an app or cookbook from a repository.

withCustomCookbooksSource

public Stack withCustomCookbooksSource(Source customCookbooksSource)
Contains the information required to retrieve an app or cookbook from a repository.

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.
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.

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 © 2010 Amazon Web Services, Inc. All Rights Reserved.