com.amazonaws.services.opsworks.model
Class UpdateStackRequest

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

public class UpdateStackRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the UpdateStack operation.

Updates a specified stack.

Required Permissions : To use this action, an IAM user must have a Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions .

See Also:
AWSOpsWorks.updateStack(UpdateStackRequest), Serialized Form

Constructor Summary
UpdateStackRequest()
           
 
Method Summary
 UpdateStackRequest addAttributesEntry(String key, String value)
          One or more user-defined key/value pairs to be added to the stack attributes.
 UpdateStackRequest clearAttributesEntries()
          Removes all the entries added into Attributes.
 boolean equals(Object obj)
           
 Map<String,String> getAttributes()
          One or more user-defined key/value pairs to be added to the stack attributes.
 ChefConfiguration getChefConfiguration()
          A ChefConfiguration object that specifies whether to enable Berkshelf and the Berkshelf version on Chef 11.10 stacks.
 StackConfigurationManager getConfigurationManager()
          The configuration manager.
 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, which must be in the specified region.
 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 instances.
 String getDefaultSubnetId()
          The stack's default subnet ID.
 String getHostnameTheme()
          The stack's new host name theme, with spaces are replaced by underscores.
 String getName()
          The stack's new name.
 String getServiceRoleArn()
          The stack AWS Identity and Access Management (IAM) role, which allows AWS OpsWorks to work with AWS resources on your behalf.
 String getStackId()
          The stack ID.
 Boolean getUseCustomCookbooks()
          Whether the stack uses custom cookbooks.
 Boolean getUseOpsworksSecurityGroups()
          Whether to associate the AWS OpsWorks built-in security groups with the stack's layers.
 int hashCode()
           
 Boolean isUseCustomCookbooks()
          Whether the stack uses custom cookbooks.
 Boolean isUseOpsworksSecurityGroups()
          Whether to associate the AWS OpsWorks built-in security groups with the stack's layers.
 void setAttributes(Map<String,String> attributes)
          One or more user-defined key/value pairs to be added to the stack attributes.
 void setChefConfiguration(ChefConfiguration chefConfiguration)
          A ChefConfiguration object that specifies whether to enable Berkshelf and the Berkshelf version on Chef 11.10 stacks.
 void setConfigurationManager(StackConfigurationManager configurationManager)
          The configuration manager.
 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, which must be in the specified region.
 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 instances.
 void setDefaultSubnetId(String defaultSubnetId)
          The stack's default subnet ID.
 void setHostnameTheme(String hostnameTheme)
          The stack's new host name theme, with spaces are replaced by underscores.
 void setName(String name)
          The stack's new name.
 void setServiceRoleArn(String serviceRoleArn)
          The stack AWS Identity and Access Management (IAM) role, which allows AWS OpsWorks to work with AWS resources on your behalf.
 void setStackId(String stackId)
          The stack ID.
 void setUseCustomCookbooks(Boolean useCustomCookbooks)
          Whether the stack uses custom cookbooks.
 void setUseOpsworksSecurityGroups(Boolean useOpsworksSecurityGroups)
          Whether to associate the AWS OpsWorks built-in security groups with the stack's layers.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 UpdateStackRequest withAttributes(Map<String,String> attributes)
          One or more user-defined key/value pairs to be added to the stack attributes.
 UpdateStackRequest withChefConfiguration(ChefConfiguration chefConfiguration)
          A ChefConfiguration object that specifies whether to enable Berkshelf and the Berkshelf version on Chef 11.10 stacks.
 UpdateStackRequest withConfigurationManager(StackConfigurationManager configurationManager)
          The configuration manager.
 UpdateStackRequest withCustomCookbooksSource(Source customCookbooksSource)
          Contains the information required to retrieve an app or cookbook from a repository.
 UpdateStackRequest withCustomJson(String customJson)
          A string that contains user-defined, custom JSON.
 UpdateStackRequest withDefaultAvailabilityZone(String defaultAvailabilityZone)
          The stack's default Availability Zone, which must be in the specified region.
 UpdateStackRequest withDefaultInstanceProfileArn(String defaultInstanceProfileArn)
          The ARN of an IAM profile that is the default profile for all of the stack's EC2 instances.
 UpdateStackRequest withDefaultOs(String defaultOs)
          The stack's default operating system, which must be set to Amazon Linux or Ubuntu 12.04 LTS.
 UpdateStackRequest withDefaultRootDeviceType(RootDeviceType defaultRootDeviceType)
          The default root device type.
 UpdateStackRequest withDefaultRootDeviceType(String defaultRootDeviceType)
          The default root device type.
 UpdateStackRequest withDefaultSshKeyName(String defaultSshKeyName)
          A default SSH key for the stack instances.
 UpdateStackRequest withDefaultSubnetId(String defaultSubnetId)
          The stack's default subnet ID.
 UpdateStackRequest withHostnameTheme(String hostnameTheme)
          The stack's new host name theme, with spaces are replaced by underscores.
 UpdateStackRequest withName(String name)
          The stack's new name.
 UpdateStackRequest withServiceRoleArn(String serviceRoleArn)
          The stack AWS Identity and Access Management (IAM) role, which allows AWS OpsWorks to work with AWS resources on your behalf.
 UpdateStackRequest withStackId(String stackId)
          The stack ID.
 UpdateStackRequest withUseCustomCookbooks(Boolean useCustomCookbooks)
          Whether the stack uses custom cookbooks.
 UpdateStackRequest withUseOpsworksSecurityGroups(Boolean useOpsworksSecurityGroups)
          Whether to associate the AWS OpsWorks built-in security groups with the stack's layers.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UpdateStackRequest

public UpdateStackRequest()
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 UpdateStackRequest 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's new name.

Returns:
The stack's new name.

setName

public void setName(String name)
The stack's new name.

Parameters:
name - The stack's new name.

withName

public UpdateStackRequest withName(String name)
The stack's new name.

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

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

getAttributes

public Map<String,String> getAttributes()
One or more user-defined key/value pairs to be added to the stack attributes.

Returns:
One or more user-defined key/value pairs to be added to the stack attributes.

setAttributes

public void setAttributes(Map<String,String> attributes)
One or more user-defined key/value pairs to be added to the stack attributes.

Parameters:
attributes - One or more user-defined key/value pairs to be added to the stack attributes.

withAttributes

public UpdateStackRequest withAttributes(Map<String,String> attributes)
One or more user-defined key/value pairs to be added to the stack attributes.

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

Parameters:
attributes - One or more user-defined key/value pairs to be added to the stack attributes.
Returns:
A reference to this updated object so that method calls can be chained together.

addAttributesEntry

public UpdateStackRequest addAttributesEntry(String key,
                                             String value)
One or more user-defined key/value pairs to be added to the stack 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 UpdateStackRequest 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, which allows AWS OpsWorks to work with AWS resources on your behalf. You must set this parameter to the Amazon Resource Name (ARN) for an existing IAM role. For more information about IAM ARNs, see Using Identifiers.

You must set this parameter to a valid service role ARN or the action will fail; there is no default value. You can specify the stack's current service role ARN, if you prefer, but you must do so explicitly.

Returns:
The stack AWS Identity and Access Management (IAM) role, which allows AWS OpsWorks to work with AWS resources on your behalf. You must set this parameter to the Amazon Resource Name (ARN) for an existing IAM role. For more information about IAM ARNs, see Using Identifiers.

You must set this parameter to a valid service role ARN or the action will fail; there is no default value. You can specify the stack's current service role ARN, if you prefer, but you must do so explicitly.


setServiceRoleArn

public void setServiceRoleArn(String serviceRoleArn)
The stack AWS Identity and Access Management (IAM) role, which allows AWS OpsWorks to work with AWS resources on your behalf. You must set this parameter to the Amazon Resource Name (ARN) for an existing IAM role. For more information about IAM ARNs, see Using Identifiers.

You must set this parameter to a valid service role ARN or the action will fail; there is no default value. You can specify the stack's current service role ARN, if you prefer, but you must do so explicitly.

Parameters:
serviceRoleArn - The stack AWS Identity and Access Management (IAM) role, which allows AWS OpsWorks to work with AWS resources on your behalf. You must set this parameter to the Amazon Resource Name (ARN) for an existing IAM role. For more information about IAM ARNs, see Using Identifiers.

You must set this parameter to a valid service role ARN or the action will fail; there is no default value. You can specify the stack's current service role ARN, if you prefer, but you must do so explicitly.


withServiceRoleArn

public UpdateStackRequest withServiceRoleArn(String serviceRoleArn)
The stack AWS Identity and Access Management (IAM) role, which allows AWS OpsWorks to work with AWS resources on your behalf. You must set this parameter to the Amazon Resource Name (ARN) for an existing IAM role. For more information about IAM ARNs, see Using Identifiers.

You must set this parameter to a valid service role ARN or the action will fail; there is no default value. You can specify the stack's current service role ARN, if you prefer, but you must do so explicitly.

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, which allows AWS OpsWorks to work with AWS resources on your behalf. You must set this parameter to the Amazon Resource Name (ARN) for an existing IAM role. For more information about IAM ARNs, see Using Identifiers.

You must set this parameter to a valid service role ARN or the action will fail; there is no default value. You can specify the stack's current service role ARN, if you prefer, but you must do so explicitly.

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 UpdateStackRequest 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 UpdateStackRequest 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's new host name theme, with spaces are replaced by underscores. The theme is used to generate host names for the stack's instances. By default, HostnameTheme is set to Layer_Dependent, which creates host names by appending integers to the layer's short name. The other themes are:

To obtain a generated host name, call GetHostNameSuggestion, which returns a host name based on the current theme.

Returns:
The stack's new host name theme, with spaces are replaced by underscores. The theme is used to generate host names for the stack's instances. By default, HostnameTheme is set to Layer_Dependent, which creates host names by appending integers to the layer's short name. The other themes are:
  • Baked_Goods
  • Clouds
  • European_Cities
  • Fruits
  • Greek_Deities
  • Legendary_Creatures_from_Japan
  • Planets_and_Moons
  • Roman_Deities
  • Scottish_Islands
  • US_Cities
  • Wild_Cats

To obtain a generated host name, call GetHostNameSuggestion, which returns a host name based on the current theme.


setHostnameTheme

public void setHostnameTheme(String hostnameTheme)
The stack's new host name theme, with spaces are replaced by underscores. The theme is used to generate host names for the stack's instances. By default, HostnameTheme is set to Layer_Dependent, which creates host names by appending integers to the layer's short name. The other themes are:

To obtain a generated host name, call GetHostNameSuggestion, which returns a host name based on the current theme.

Parameters:
hostnameTheme - The stack's new host name theme, with spaces are replaced by underscores. The theme is used to generate host names for the stack's instances. By default, HostnameTheme is set to Layer_Dependent, which creates host names by appending integers to the layer's short name. The other themes are:
  • Baked_Goods
  • Clouds
  • European_Cities
  • Fruits
  • Greek_Deities
  • Legendary_Creatures_from_Japan
  • Planets_and_Moons
  • Roman_Deities
  • Scottish_Islands
  • US_Cities
  • Wild_Cats

To obtain a generated host name, call GetHostNameSuggestion, which returns a host name based on the current theme.


withHostnameTheme

public UpdateStackRequest withHostnameTheme(String hostnameTheme)
The stack's new host name theme, with spaces are replaced by underscores. The theme is used to generate host names for the stack's instances. By default, HostnameTheme is set to Layer_Dependent, which creates host names by appending integers to the layer's short name. The other themes are:

To obtain a generated host name, call GetHostNameSuggestion, which returns a host name based on the current theme.

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

Parameters:
hostnameTheme - The stack's new host name theme, with spaces are replaced by underscores. The theme is used to generate host names for the stack's instances. By default, HostnameTheme is set to Layer_Dependent, which creates host names by appending integers to the layer's short name. The other themes are:
  • Baked_Goods
  • Clouds
  • European_Cities
  • Fruits
  • Greek_Deities
  • Legendary_Creatures_from_Japan
  • Planets_and_Moons
  • Roman_Deities
  • Scottish_Islands
  • US_Cities
  • Wild_Cats

To obtain a generated host name, call GetHostNameSuggestion, which returns a host name based on the current theme.

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, which must be in the specified region. For more information, see Regions and Endpoints. If you also specify a value for DefaultSubnetId, the subnet must be in the same zone. For more information, see CreateStack.

Returns:
The stack's default Availability Zone, which must be in the specified region. For more information, see Regions and Endpoints. If you also specify a value for DefaultSubnetId, the subnet must be in the same zone. For more information, see CreateStack.

setDefaultAvailabilityZone

public void setDefaultAvailabilityZone(String defaultAvailabilityZone)
The stack's default Availability Zone, which must be in the specified region. For more information, see Regions and Endpoints. If you also specify a value for DefaultSubnetId, the subnet must be in the same zone. For more information, see CreateStack.

Parameters:
defaultAvailabilityZone - The stack's default Availability Zone, which must be in the specified region. For more information, see Regions and Endpoints. If you also specify a value for DefaultSubnetId, the subnet must be in the same zone. For more information, see CreateStack.

withDefaultAvailabilityZone

public UpdateStackRequest withDefaultAvailabilityZone(String defaultAvailabilityZone)
The stack's default Availability Zone, which must be in the specified region. For more information, see Regions and Endpoints. If you also specify a value for DefaultSubnetId, the subnet must be in the same zone. For more information, see CreateStack.

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

Parameters:
defaultAvailabilityZone - The stack's default Availability Zone, which must be in the specified region. For more information, see Regions and Endpoints. If you also specify a value for DefaultSubnetId, the subnet must be in the same zone. For more information, see CreateStack.
Returns:
A reference to this updated object so that method calls can be chained together.

getDefaultSubnetId

public String getDefaultSubnetId()
The stack's default subnet ID. All instances will be launched into this subnet unless you specify otherwise when you create the instance. If you also specify a value for DefaultAvailabilityZone, the subnet must be in that zone. For more information, see CreateStack.

Returns:
The stack's default subnet ID. All instances will be launched into this subnet unless you specify otherwise when you create the instance. If you also specify a value for DefaultAvailabilityZone, the subnet must be in that zone. For more information, see CreateStack.

setDefaultSubnetId

public void setDefaultSubnetId(String defaultSubnetId)
The stack's default subnet ID. All instances will be launched into this subnet unless you specify otherwise when you create the instance. If you also specify a value for DefaultAvailabilityZone, the subnet must be in that zone. For more information, see CreateStack.

Parameters:
defaultSubnetId - The stack's default subnet ID. All instances will be launched into this subnet unless you specify otherwise when you create the instance. If you also specify a value for DefaultAvailabilityZone, the subnet must be in that zone. For more information, see CreateStack.

withDefaultSubnetId

public UpdateStackRequest withDefaultSubnetId(String defaultSubnetId)
The stack's default subnet ID. All instances will be launched into this subnet unless you specify otherwise when you create the instance. If you also specify a value for DefaultAvailabilityZone, the subnet must be in that zone. For more information, see CreateStack.

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

Parameters:
defaultSubnetId - The stack's default subnet ID. All instances will be launched into this subnet unless you specify otherwise when you create the instance. If you also specify a value for DefaultAvailabilityZone, the subnet must be in that zone. For more information, see CreateStack.
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 UpdateStackRequest 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. When you clone a stack we recommend that you use the configuration manager to specify the Chef version, 0.9, 11.4, or 11.10. The default value is currently 11.4.

Returns:
The configuration manager. When you clone a stack we recommend that you use the configuration manager to specify the Chef version, 0.9, 11.4, or 11.10. The default value is currently 11.4.

setConfigurationManager

public void setConfigurationManager(StackConfigurationManager configurationManager)
The configuration manager. When you clone a stack we recommend that you use the configuration manager to specify the Chef version, 0.9, 11.4, or 11.10. The default value is currently 11.4.

Parameters:
configurationManager - The configuration manager. When you clone a stack we recommend that you use the configuration manager to specify the Chef version, 0.9, 11.4, or 11.10. The default value is currently 11.4.

withConfigurationManager

public UpdateStackRequest withConfigurationManager(StackConfigurationManager configurationManager)
The configuration manager. When you clone a stack we recommend that you use the configuration manager to specify the Chef version, 0.9, 11.4, or 11.10. The default value is currently 11.4.

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

Parameters:
configurationManager - The configuration manager. When you clone a stack we recommend that you use the configuration manager to specify the Chef version, 0.9, 11.4, or 11.10. The default value is currently 11.4.
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 on Chef 11.10 stacks. For more information, see Create a New Stack.

Returns:
A ChefConfiguration object that specifies whether to enable Berkshelf and the Berkshelf version on Chef 11.10 stacks. 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 on Chef 11.10 stacks. For more information, see Create a New Stack.

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

withChefConfiguration

public UpdateStackRequest withChefConfiguration(ChefConfiguration chefConfiguration)
A ChefConfiguration object that specifies whether to enable Berkshelf and the Berkshelf version on Chef 11.10 stacks. 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 on Chef 11.10 stacks. 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 UpdateStackRequest 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. 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 UpdateStackRequest 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 instances. You can override this value when you create or update an instance.

Returns:
A default SSH key for the stack 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 instances. You can override this value when you create or update an instance.

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

withDefaultSshKeyName

public UpdateStackRequest withDefaultSshKeyName(String defaultSshKeyName)
A default SSH key for the stack 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 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.

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

isUseOpsworksSecurityGroups

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

AWS OpsWorks provides a standard set of built-in security groups, one for each layer, which are associated with layers by default. UseOpsworksSecurityGroups allows you to instead provide your own custom security groups. UseOpsworksSecurityGroups has the following settings:

For more information, see Create a New Stack.

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

AWS OpsWorks provides a standard set of built-in security groups, one for each layer, which are associated with layers by default. UseOpsworksSecurityGroups allows you to instead provide your own custom security groups. UseOpsworksSecurityGroups has the following settings:

  • True - AWS OpsWorks automatically associates the appropriate built-in security group with each layer (default setting). You can associate additional security groups with a layer after you create it but you cannot delete the built-in security group.
  • False - AWS OpsWorks does not associate built-in security groups with layers. You must create appropriate EC2 security groups and associate a security group with each layer that you create. However, you can still manually associate a built-in security group with a layer on creation; custom security groups are required only for those layers that need custom settings.

For more information, see Create a New Stack.


setUseOpsworksSecurityGroups

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

AWS OpsWorks provides a standard set of built-in security groups, one for each layer, which are associated with layers by default. UseOpsworksSecurityGroups allows you to instead provide your own custom security groups. UseOpsworksSecurityGroups has the following settings:

For more information, see Create a New Stack.

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

AWS OpsWorks provides a standard set of built-in security groups, one for each layer, which are associated with layers by default. UseOpsworksSecurityGroups allows you to instead provide your own custom security groups. UseOpsworksSecurityGroups has the following settings:

  • True - AWS OpsWorks automatically associates the appropriate built-in security group with each layer (default setting). You can associate additional security groups with a layer after you create it but you cannot delete the built-in security group.
  • False - AWS OpsWorks does not associate built-in security groups with layers. You must create appropriate EC2 security groups and associate a security group with each layer that you create. However, you can still manually associate a built-in security group with a layer on creation; custom security groups are required only for those layers that need custom settings.

For more information, see Create a New Stack.


withUseOpsworksSecurityGroups

public UpdateStackRequest withUseOpsworksSecurityGroups(Boolean useOpsworksSecurityGroups)
Whether to associate the AWS OpsWorks built-in security groups with the stack's layers.

AWS OpsWorks provides a standard set of built-in security groups, one for each layer, which are associated with layers by default. UseOpsworksSecurityGroups allows you to instead provide your own custom security groups. UseOpsworksSecurityGroups has the following settings:

For more information, see Create a New Stack.

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

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

AWS OpsWorks provides a standard set of built-in security groups, one for each layer, which are associated with layers by default. UseOpsworksSecurityGroups allows you to instead provide your own custom security groups. UseOpsworksSecurityGroups has the following settings:

  • True - AWS OpsWorks automatically associates the appropriate built-in security group with each layer (default setting). You can associate additional security groups with a layer after you create it but you cannot delete the built-in security group.
  • False - AWS OpsWorks does not associate built-in security groups with layers. You must create appropriate EC2 security groups and associate a security group with each layer that you create. However, you can still manually associate a built-in security group with a layer on creation; custom security groups are required only for those layers that need custom settings.

For more information, see Create a New Stack.

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

getUseOpsworksSecurityGroups

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

AWS OpsWorks provides a standard set of built-in security groups, one for each layer, which are associated with layers by default. UseOpsworksSecurityGroups allows you to instead provide your own custom security groups. UseOpsworksSecurityGroups has the following settings:

For more information, see Create a New Stack.

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

AWS OpsWorks provides a standard set of built-in security groups, one for each layer, which are associated with layers by default. UseOpsworksSecurityGroups allows you to instead provide your own custom security groups. UseOpsworksSecurityGroups has the following settings:

  • True - AWS OpsWorks automatically associates the appropriate built-in security group with each layer (default setting). You can associate additional security groups with a layer after you create it but you cannot delete the built-in security group.
  • False - AWS OpsWorks does not associate built-in security groups with layers. You must create appropriate EC2 security groups and associate a security group with each layer that you create. However, you can still manually associate a built-in security group with a layer on creation; custom security groups are required only for those layers that need custom settings.

For more information, see Create a New Stack.


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.