Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   /*
    * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
    * 
    * Licensed under the Apache License, Version 2.0 (the "License").
    * You may not use this file except in compliance with the License.
    * A copy of the License is located at
    * 
    *  http://aws.amazon.com/apache2.0
    * 
   * or in the "license" file accompanying this file. This file is distributed
   * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
   * express or implied. See the License for the specific language governing
   * permissions and limitations under the License.
   */
  package com.amazonaws.services.opsworks.model;
  
  
Container for the parameters to the CloneStack operation.

Creates a clone of a specified stack. For more information, see Clone a Stack .

Required Permissions : To use this action, an IAM user must have an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions .

  
  public class CloneStackRequest extends AmazonWebServiceRequest implements SerializableCloneable {

    
The source stack ID.
  
      private String sourceStackId;

    
The cloned stack name.
  
      private String name;

    
The cloned stack AWS region, such as "us-east-1". For more information about AWS regions, see Regions and Endpoints.
  
      private String region;

    
The ID of the VPC that the cloned stack is to be launched into. It must be in the specified region. All instances are launched into this VPC, and you cannot change the ID later.
  • If your account supports EC2 Classic, the default value is no VPC.
  • If your account does not support EC2 Classic, the default value is the default VPC for the specified region.

If the VPC ID corresponds to a default VPC and you have specified either the DefaultAvailabilityZone or the DefaultSubnetId parameter only, AWS OpsWorks infers the value of the other parameter. If you specify neither parameter, AWS OpsWorks sets these parameters to the first valid Availability Zone for the specified region and the corresponding default VPC subnet ID, respectively.

If you specify a nondefault VPC ID, note the following:

  • It must belong to a VPC in your account that is in the specified region.
  • You must specify a value for DefaultSubnetId.

For more information on how to use AWS OpsWorks with a VPC, see Running a Stack in a VPC. For more information on default VPC and EC2 Classic, see Supported Platforms.

  
      private String vpcId;

    
A list of stack attributes and values as key/value pairs to be added to the cloned stack.
  
      private java.util.Map<String,Stringattributes;

    
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. If you create a stack by using the AWS OpsWorks console, it creates the role for you. You can obtain an existing stack's IAM ARN programmatically by calling DescribePermissions. For more information about IAM ARNs, see Using Identifiers. <note>

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 source stack's service role ARN, if you prefer, but you must do so explicitly. </note>

 
     private String serviceRoleArn;

    
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.
 
     private String defaultInstanceProfileArn;

    
The stack's operating system, which must be set to one of the following.
  • Standard operating systems: an Amazon Linux version such as Amazon Linux 2014.09, Ubuntu 12.04 LTS, or Ubuntu 14.04 LTS.
  • Custom AMIs: Custom. You specify the custom AMI you want to use when you create instances.

The default option is the current Amazon Linux version.

 
     private String defaultOs;

    
The stack's 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
  • Europe_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.

 
     private String hostnameTheme;

    
The cloned 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 the VpcId parameter description.
 
     private String defaultAvailabilityZone;

    
The stack's default VPC subnet ID. This parameter is required if you specify a value for the VpcId parameter. All instances are 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 information on default values and when this parameter is required, see the VpcId parameter description.
 
     private String defaultSubnetId;

    
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

 
     private String customJson;

    
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.
 
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.
 
     private ChefConfiguration chefConfiguration;

    
Whether to use custom cookbooks.
 
     private Boolean useCustomCookbooks;

    
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. With UseOpsworksSecurityGroups you can 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.

 
     private Boolean useOpsworksSecurityGroups;

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

    
A default Amazon EC2 key pair name. The default value is none. If you specify a key pair name, AWS OpsWorks installs the public key on the instance and you can use the private key with an SSH client to log in to the instance. For more information, see Using SSH to Communicate with an Instance and Managing SSH Access. You can override this setting by specifying a different key pair, or no key pair, when you create an instance.
 
     private String defaultSshKeyName;

    
Whether to clone the source stack's permissions.
 
     private Boolean clonePermissions;

    
A list of source stack app IDs to be included in the cloned stack.
 
The default root device type. This value is used by default for all instances in the cloned 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

 
     private String defaultRootDeviceType;

    
The source stack ID.

Returns:
The source stack ID.
 
     public String getSourceStackId() {
         return ;
     }
    
    
The source stack ID.

Parameters:
sourceStackId The source stack ID.
 
     public void setSourceStackId(String sourceStackId) {
         this. = sourceStackId;
     }
    
    
The source stack ID.

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

Parameters:
sourceStackId The source stack ID.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public CloneStackRequest withSourceStackId(String sourceStackId) {
         this. = sourceStackId;
         return this;
     }

    
The cloned stack name.

Returns:
The cloned stack name.
 
     public String getName() {
         return ;
     }
    
    
The cloned stack name.

Parameters:
name The cloned stack name.
 
     public void setName(String name) {
         this. = name;
     }
    
    
The cloned stack name.

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

Parameters:
name The cloned stack name.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public CloneStackRequest withName(String name) {
         this. = name;
         return this;
     }

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

Returns:
The cloned stack AWS region, such as "us-east-1". For more information about AWS regions, see Regions and Endpoints.
 
     public String getRegion() {
         return ;
     }
    
    
The cloned stack AWS region, such as "us-east-1". For more information about AWS regions, see Regions and Endpoints.

Parameters:
region The cloned stack AWS region, such as "us-east-1". For more information about AWS regions, see Regions and Endpoints.
 
     public void setRegion(String region) {
         this. = region;
     }
    
    
The cloned 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 cloned 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.
 
     public CloneStackRequest withRegion(String region) {
         this. = region;
         return this;
     }

    
The ID of the VPC that the cloned stack is to be launched into. It must be in the specified region. All instances are launched into this VPC, and you cannot change the ID later.
  • If your account supports EC2 Classic, the default value is no VPC.
  • If your account does not support EC2 Classic, the default value is the default VPC for the specified region.

If the VPC ID corresponds to a default VPC and you have specified either the DefaultAvailabilityZone or the DefaultSubnetId parameter only, AWS OpsWorks infers the value of the other parameter. If you specify neither parameter, AWS OpsWorks sets these parameters to the first valid Availability Zone for the specified region and the corresponding default VPC subnet ID, respectively.

If you specify a nondefault VPC ID, note the following:

  • It must belong to a VPC in your account that is in the specified region.
  • You must specify a value for DefaultSubnetId.

For more information on how to use AWS OpsWorks with a VPC, see Running a Stack in a VPC. For more information on default VPC and EC2 Classic, see Supported Platforms.

Returns:
The ID of the VPC that the cloned stack is to be launched into. It must be in the specified region. All instances are launched into this VPC, and you cannot change the ID later.
  • If your account supports EC2 Classic, the default value is no VPC.
  • If your account does not support EC2 Classic, the default value is the default VPC for the specified region.

If the VPC ID corresponds to a default VPC and you have specified either the DefaultAvailabilityZone or the DefaultSubnetId parameter only, AWS OpsWorks infers the value of the other parameter. If you specify neither parameter, AWS OpsWorks sets these parameters to the first valid Availability Zone for the specified region and the corresponding default VPC subnet ID, respectively.

If you specify a nondefault VPC ID, note the following:

  • It must belong to a VPC in your account that is in the specified region.
  • You must specify a value for DefaultSubnetId.

For more information on how to use AWS OpsWorks with a VPC, see Running a Stack in a VPC. For more information on default VPC and EC2 Classic, see Supported Platforms.

 
     public String getVpcId() {
         return ;
     }
    
    
The ID of the VPC that the cloned stack is to be launched into. It must be in the specified region. All instances are launched into this VPC, and you cannot change the ID later.
  • If your account supports EC2 Classic, the default value is no VPC.
  • If your account does not support EC2 Classic, the default value is the default VPC for the specified region.

If the VPC ID corresponds to a default VPC and you have specified either the DefaultAvailabilityZone or the DefaultSubnetId parameter only, AWS OpsWorks infers the value of the other parameter. If you specify neither parameter, AWS OpsWorks sets these parameters to the first valid Availability Zone for the specified region and the corresponding default VPC subnet ID, respectively.

If you specify a nondefault VPC ID, note the following:

  • It must belong to a VPC in your account that is in the specified region.
  • You must specify a value for DefaultSubnetId.

For more information on how to use AWS OpsWorks with a VPC, see Running a Stack in a VPC. For more information on default VPC and EC2 Classic, see Supported Platforms.

Parameters:
vpcId The ID of the VPC that the cloned stack is to be launched into. It must be in the specified region. All instances are launched into this VPC, and you cannot change the ID later.
  • If your account supports EC2 Classic, the default value is no VPC.
  • If your account does not support EC2 Classic, the default value is the default VPC for the specified region.

If the VPC ID corresponds to a default VPC and you have specified either the DefaultAvailabilityZone or the DefaultSubnetId parameter only, AWS OpsWorks infers the value of the other parameter. If you specify neither parameter, AWS OpsWorks sets these parameters to the first valid Availability Zone for the specified region and the corresponding default VPC subnet ID, respectively.

If you specify a nondefault VPC ID, note the following:

  • It must belong to a VPC in your account that is in the specified region.
  • You must specify a value for DefaultSubnetId.

For more information on how to use AWS OpsWorks with a VPC, see Running a Stack in a VPC. For more information on default VPC and EC2 Classic, see Supported Platforms.

 
     public void setVpcId(String vpcId) {
         this. = vpcId;
     }
    
    
The ID of the VPC that the cloned stack is to be launched into. It must be in the specified region. All instances are launched into this VPC, and you cannot change the ID later.
  • If your account supports EC2 Classic, the default value is no VPC.
  • If your account does not support EC2 Classic, the default value is the default VPC for the specified region.

If the VPC ID corresponds to a default VPC and you have specified either the DefaultAvailabilityZone or the DefaultSubnetId parameter only, AWS OpsWorks infers the value of the other parameter. If you specify neither parameter, AWS OpsWorks sets these parameters to the first valid Availability Zone for the specified region and the corresponding default VPC subnet ID, respectively.

If you specify a nondefault VPC ID, note the following:

  • It must belong to a VPC in your account that is in the specified region.
  • You must specify a value for DefaultSubnetId.

For more information on how to use AWS OpsWorks with a VPC, see Running a Stack in a VPC. For more information on default VPC and EC2 Classic, see Supported Platforms.

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

Parameters:
vpcId The ID of the VPC that the cloned stack is to be launched into. It must be in the specified region. All instances are launched into this VPC, and you cannot change the ID later.
  • If your account supports EC2 Classic, the default value is no VPC.
  • If your account does not support EC2 Classic, the default value is the default VPC for the specified region.

If the VPC ID corresponds to a default VPC and you have specified either the DefaultAvailabilityZone or the DefaultSubnetId parameter only, AWS OpsWorks infers the value of the other parameter. If you specify neither parameter, AWS OpsWorks sets these parameters to the first valid Availability Zone for the specified region and the corresponding default VPC subnet ID, respectively.

If you specify a nondefault VPC ID, note the following:

  • It must belong to a VPC in your account that is in the specified region.
  • You must specify a value for DefaultSubnetId.

For more information on how to use AWS OpsWorks with a VPC, see Running a Stack in a VPC. For more information on default VPC and EC2 Classic, see Supported Platforms.

Returns:
A reference to this updated object so that method calls can be chained together.
 
     public CloneStackRequest withVpcId(String vpcId) {
         this. = vpcId;
         return this;
     }

    
A list of stack attributes and values as key/value pairs to be added to the cloned stack.

Returns:
A list of stack attributes and values as key/value pairs to be added to the cloned stack.
 
     public java.util.Map<String,StringgetAttributes() {
         
         if ( == null) {
              = new java.util.HashMap<String,String>();
         }
         return ;
     }
    
    
A list of stack attributes and values as key/value pairs to be added to the cloned stack.

Parameters:
attributes A list of stack attributes and values as key/value pairs to be added to the cloned stack.
 
     public void setAttributes(java.util.Map<String,Stringattributes) {
         this. = attributes;
     }
    
    
A list of stack attributes and values as key/value pairs to be added to the cloned stack.

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

Parameters:
attributes A list of stack attributes and values as key/value pairs to be added to the cloned stack.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public CloneStackRequest withAttributes(java.util.Map<String,Stringattributes) {
         setAttributes(attributes);
         return this;
     }

    
A list of stack attributes and values as key/value pairs to be added to the cloned stack.

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.
 
   public CloneStackRequest addAttributesEntry(String keyString value) {
     if (null == this.) {
       this. = new java.util.HashMap<String,String>();
     }
     if (this..containsKey(key))
       throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
     this..put(keyvalue);
     return this;
   }

  
Removes all the entries added into Attributes.

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

 
     this. = null;
     return this;
   }
  
    
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. If you create a stack by using the AWS OpsWorks console, it creates the role for you. You can obtain an existing stack's IAM ARN programmatically by calling DescribePermissions. For more information about IAM ARNs, see Using Identifiers. <note>

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 source stack's service role ARN, if you prefer, but you must do so explicitly. </note>

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. If you create a stack by using the AWS OpsWorks console, it creates the role for you. You can obtain an existing stack's IAM ARN programmatically by calling DescribePermissions. For more information about IAM ARNs, see Using Identifiers. <note>

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 source stack's service role ARN, if you prefer, but you must do so explicitly. </note>

 
     public String getServiceRoleArn() {
         return ;
     }
    
    
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. If you create a stack by using the AWS OpsWorks console, it creates the role for you. You can obtain an existing stack's IAM ARN programmatically by calling DescribePermissions. For more information about IAM ARNs, see Using Identifiers. <note>

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 source stack's service role ARN, if you prefer, but you must do so explicitly. </note>

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. If you create a stack by using the AWS OpsWorks console, it creates the role for you. You can obtain an existing stack's IAM ARN programmatically by calling DescribePermissions. For more information about IAM ARNs, see Using Identifiers. <note>

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 source stack's service role ARN, if you prefer, but you must do so explicitly. </note>

 
     public void setServiceRoleArn(String serviceRoleArn) {
         this. = 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. If you create a stack by using the AWS OpsWorks console, it creates the role for you. You can obtain an existing stack's IAM ARN programmatically by calling DescribePermissions. For more information about IAM ARNs, see Using Identifiers. <note>

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 source stack's service role ARN, if you prefer, but you must do so explicitly. </note>

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. If you create a stack by using the AWS OpsWorks console, it creates the role for you. You can obtain an existing stack's IAM ARN programmatically by calling DescribePermissions. For more information about IAM ARNs, see Using Identifiers. <note>

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 source stack's service role ARN, if you prefer, but you must do so explicitly. </note>

Returns:
A reference to this updated object so that method calls can be chained together.
 
     public CloneStackRequest withServiceRoleArn(String serviceRoleArn) {
         this. = serviceRoleArn;
         return this;
     }

    
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.
 
     public String getDefaultInstanceProfileArn() {
         return ;
     }
    
    
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.
 
     public void setDefaultInstanceProfileArn(String defaultInstanceProfileArn) {
         this. = 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.
 
     public CloneStackRequest withDefaultInstanceProfileArn(String defaultInstanceProfileArn) {
         this. = defaultInstanceProfileArn;
         return this;
     }

    
The stack's operating system, which must be set to one of the following.
  • Standard operating systems: an Amazon Linux version such as Amazon Linux 2014.09, Ubuntu 12.04 LTS, or Ubuntu 14.04 LTS.
  • Custom AMIs: Custom. You specify the custom AMI you want to use when you create instances.

The default option is the current Amazon Linux version.

Returns:
The stack's operating system, which must be set to one of the following.
  • Standard operating systems: an Amazon Linux version such as Amazon Linux 2014.09, Ubuntu 12.04 LTS, or Ubuntu 14.04 LTS.
  • Custom AMIs: Custom. You specify the custom AMI you want to use when you create instances.

The default option is the current Amazon Linux version.

 
     public String getDefaultOs() {
         return ;
     }
    
    
The stack's operating system, which must be set to one of the following.
  • Standard operating systems: an Amazon Linux version such as Amazon Linux 2014.09, Ubuntu 12.04 LTS, or Ubuntu 14.04 LTS.
  • Custom AMIs: Custom. You specify the custom AMI you want to use when you create instances.

The default option is the current Amazon Linux version.

Parameters:
defaultOs The stack's operating system, which must be set to one of the following.
  • Standard operating systems: an Amazon Linux version such as Amazon Linux 2014.09, Ubuntu 12.04 LTS, or Ubuntu 14.04 LTS.
  • Custom AMIs: Custom. You specify the custom AMI you want to use when you create instances.

The default option is the current Amazon Linux version.

 
     public void setDefaultOs(String defaultOs) {
         this. = defaultOs;
     }
    
    
The stack's operating system, which must be set to one of the following.
  • Standard operating systems: an Amazon Linux version such as Amazon Linux 2014.09, Ubuntu 12.04 LTS, or Ubuntu 14.04 LTS.
  • Custom AMIs: Custom. You specify the custom AMI you want to use when you create instances.

The default option is the current Amazon Linux version.

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

Parameters:
defaultOs The stack's operating system, which must be set to one of the following.
  • Standard operating systems: an Amazon Linux version such as Amazon Linux 2014.09, Ubuntu 12.04 LTS, or Ubuntu 14.04 LTS.
  • Custom AMIs: Custom. You specify the custom AMI you want to use when you create instances.

The default option is the current Amazon Linux version.

Returns:
A reference to this updated object so that method calls can be chained together.
 
     public CloneStackRequest withDefaultOs(String defaultOs) {
         this. = defaultOs;
         return this;
     }

    
The stack's 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
  • Europe_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:
The stack's 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
  • Europe_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.

 
     public String getHostnameTheme() {
         return ;
     }
    
    
The stack's 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
  • Europe_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.

Parameters:
hostnameTheme The stack's 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
  • Europe_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.

 
     public void setHostnameTheme(String hostnameTheme) {
         this. = hostnameTheme;
     }
    
    
The stack's 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
  • Europe_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 object so that method calls can be chained together.

Parameters:
hostnameTheme The stack's 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
  • Europe_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.
 
     public CloneStackRequest withHostnameTheme(String hostnameTheme) {
         this. = hostnameTheme;
         return this;
     }

    
The cloned 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 the VpcId parameter description.

Returns:
The cloned 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 the VpcId parameter description.
 
     public String getDefaultAvailabilityZone() {
         return ;
     }
    
    
The cloned 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 the VpcId parameter description.

Parameters:
defaultAvailabilityZone The cloned 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 the VpcId parameter description.
 
     public void setDefaultAvailabilityZone(String defaultAvailabilityZone) {
         this. = defaultAvailabilityZone;
     }
    
    
The cloned 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 the VpcId parameter description.

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

Parameters:
defaultAvailabilityZone The cloned 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 the VpcId parameter description.
Returns:
A reference to this updated object so that method calls can be chained together.
    public CloneStackRequest withDefaultAvailabilityZone(String defaultAvailabilityZone) {
        this. = defaultAvailabilityZone;
        return this;
    }

    
The stack's default VPC subnet ID. This parameter is required if you specify a value for the VpcId parameter. All instances are 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 information on default values and when this parameter is required, see the VpcId parameter description.

Returns:
The stack's default VPC subnet ID. This parameter is required if you specify a value for the VpcId parameter. All instances are 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 information on default values and when this parameter is required, see the VpcId parameter description.
    public String getDefaultSubnetId() {
        return ;
    }
    
    
The stack's default VPC subnet ID. This parameter is required if you specify a value for the VpcId parameter. All instances are 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 information on default values and when this parameter is required, see the VpcId parameter description.

Parameters:
defaultSubnetId The stack's default VPC subnet ID. This parameter is required if you specify a value for the VpcId parameter. All instances are 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 information on default values and when this parameter is required, see the VpcId parameter description.
    public void setDefaultSubnetId(String defaultSubnetId) {
        this. = defaultSubnetId;
    }
    
    
The stack's default VPC subnet ID. This parameter is required if you specify a value for the VpcId parameter. All instances are 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 information on default values and when this parameter is required, see the VpcId parameter description.

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

Parameters:
defaultSubnetId The stack's default VPC subnet ID. This parameter is required if you specify a value for the VpcId parameter. All instances are 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 information on default values and when this parameter is required, see the VpcId parameter description.
Returns:
A reference to this updated object so that method calls can be chained together.
    public CloneStackRequest withDefaultSubnetId(String defaultSubnetId) {
        this. = defaultSubnetId;
        return this;
    }

    
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

    public String getCustomJson() {
        return ;
    }
    
    
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

    public void setCustomJson(String customJson) {
        this. = 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.
    public CloneStackRequest withCustomJson(String customJson) {
        this. = customJson;
        return this;
    }

    
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.
        return ;
    }
    
    
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.
    public void setConfigurationManager(StackConfigurationManager configurationManager) {
        this. = 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.
        this. = configurationManager;
        return this;
    }

    
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.
        return ;
    }
    
    
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.
    public void setChefConfiguration(ChefConfiguration chefConfiguration) {
        this. = 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.
    public CloneStackRequest withChefConfiguration(ChefConfiguration chefConfiguration) {
        this. = chefConfiguration;
        return this;
    }

    
Whether to use custom cookbooks.

Returns:
Whether to use custom cookbooks.
    public Boolean isUseCustomCookbooks() {
        return ;
    }
    
    
Whether to use custom cookbooks.

Parameters:
useCustomCookbooks Whether to use custom cookbooks.
    public void setUseCustomCookbooks(Boolean useCustomCookbooks) {
        this. = useCustomCookbooks;
    }
    
    
Whether to use custom cookbooks.

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

Parameters:
useCustomCookbooks Whether to use custom cookbooks.
Returns:
A reference to this updated object so that method calls can be chained together.
    public CloneStackRequest withUseCustomCookbooks(Boolean useCustomCookbooks) {
        this. = useCustomCookbooks;
        return this;
    }

    
Whether to use custom cookbooks.

Returns:
Whether to use custom cookbooks.
    public Boolean getUseCustomCookbooks() {
        return ;
    }

    
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. With UseOpsworksSecurityGroups you can 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:
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. With UseOpsworksSecurityGroups you can 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.

        return ;
    }
    
    
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. With UseOpsworksSecurityGroups you can 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.

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. With UseOpsworksSecurityGroups you can 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.

    public void setUseOpsworksSecurityGroups(Boolean useOpsworksSecurityGroups) {
        this. = 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. With UseOpsworksSecurityGroups you can 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 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. With UseOpsworksSecurityGroups you can 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.
    public CloneStackRequest withUseOpsworksSecurityGroups(Boolean useOpsworksSecurityGroups) {
        this. = useOpsworksSecurityGroups;
        return this;
    }

    
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. With UseOpsworksSecurityGroups you can 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:
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. With UseOpsworksSecurityGroups you can 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.

        return ;
    }

    
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.
    public Source getCustomCookbooksSource() {
        return ;
    }
    
    
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.
    public void setCustomCookbooksSource(Source customCookbooksSource) {
        this. = 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.
    public CloneStackRequest withCustomCookbooksSource(Source customCookbooksSource) {
        this. = customCookbooksSource;
        return this;
    }

    
A default Amazon EC2 key pair name. The default value is none. If you specify a key pair name, AWS OpsWorks installs the public key on the instance and you can use the private key with an SSH client to log in to the instance. For more information, see Using SSH to Communicate with an Instance and Managing SSH Access. You can override this setting by specifying a different key pair, or no key pair, when you create an instance.

Returns:
A default Amazon EC2 key pair name. The default value is none. If you specify a key pair name, AWS OpsWorks installs the public key on the instance and you can use the private key with an SSH client to log in to the instance. For more information, see Using SSH to Communicate with an Instance and Managing SSH Access. You can override this setting by specifying a different key pair, or no key pair, when you create an instance.
    public String getDefaultSshKeyName() {
        return ;
    }
    
    
A default Amazon EC2 key pair name. The default value is none. If you specify a key pair name, AWS OpsWorks installs the public key on the instance and you can use the private key with an SSH client to log in to the instance. For more information, see Using SSH to Communicate with an Instance and Managing SSH Access. You can override this setting by specifying a different key pair, or no key pair, when you create an instance.

Parameters:
defaultSshKeyName A default Amazon EC2 key pair name. The default value is none. If you specify a key pair name, AWS OpsWorks installs the public key on the instance and you can use the private key with an SSH client to log in to the instance. For more information, see Using SSH to Communicate with an Instance and Managing SSH Access. You can override this setting by specifying a different key pair, or no key pair, when you create an instance.
    public void setDefaultSshKeyName(String defaultSshKeyName) {
        this. = defaultSshKeyName;
    }
    
    
A default Amazon EC2 key pair name. The default value is none. If you specify a key pair name, AWS OpsWorks installs the public key on the instance and you can use the private key with an SSH client to log in to the instance. For more information, see Using SSH to Communicate with an Instance and Managing SSH Access. You can override this setting by specifying a different key pair, or no key pair, when you create an instance.

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

Parameters:
defaultSshKeyName A default Amazon EC2 key pair name. The default value is none. If you specify a key pair name, AWS OpsWorks installs the public key on the instance and you can use the private key with an SSH client to log in to the instance. For more information, see Using SSH to Communicate with an Instance and Managing SSH Access. You can override this setting by specifying a different key pair, or no key pair, when you create an instance.
Returns:
A reference to this updated object so that method calls can be chained together.
    public CloneStackRequest withDefaultSshKeyName(String defaultSshKeyName) {
        this. = defaultSshKeyName;
        return this;
    }

    
Whether to clone the source stack's permissions.

Returns:
Whether to clone the source stack's permissions.
    public Boolean isClonePermissions() {
        return ;
    }
    
    
Whether to clone the source stack's permissions.

Parameters:
clonePermissions Whether to clone the source stack's permissions.
    public void setClonePermissions(Boolean clonePermissions) {
        this. = clonePermissions;
    }
    
    
Whether to clone the source stack's permissions.

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

Parameters:
clonePermissions Whether to clone the source stack's permissions.
Returns:
A reference to this updated object so that method calls can be chained together.
    public CloneStackRequest withClonePermissions(Boolean clonePermissions) {
        this. = clonePermissions;
        return this;
    }

    
Whether to clone the source stack's permissions.

Returns:
Whether to clone the source stack's permissions.
    public Boolean getClonePermissions() {
        return ;
    }

    
A list of source stack app IDs to be included in the cloned stack.

Returns:
A list of source stack app IDs to be included in the cloned stack.
    public java.util.List<StringgetCloneAppIds() {
        if ( == null) {
               = new com.amazonaws.internal.ListWithAutoConstructFlag<String>();
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
A list of source stack app IDs to be included in the cloned stack.

Parameters:
cloneAppIds A list of source stack app IDs to be included in the cloned stack.
    public void setCloneAppIds(java.util.Collection<StringcloneAppIds) {
        if (cloneAppIds == null) {
            this. = null;
            return;
        }
        cloneAppIdsCopy.addAll(cloneAppIds);
        this. = cloneAppIdsCopy;
    }
    
    
A list of source stack app IDs to be included in the cloned stack.

NOTE: This method appends the values to the existing list (if any). Use setCloneAppIds(java.util.Collection) or withCloneAppIds(java.util.Collection) if you want to override the existing values.

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

Parameters:
cloneAppIds A list of source stack app IDs to be included in the cloned stack.
Returns:
A reference to this updated object so that method calls can be chained together.
    public CloneStackRequest withCloneAppIds(String... cloneAppIds) {
        if (getCloneAppIds() == nullsetCloneAppIds(new java.util.ArrayList<String>(cloneAppIds.length));
        for (String value : cloneAppIds) {
            getCloneAppIds().add(value);
        }
        return this;
    }
    
    
A list of source stack app IDs to be included in the cloned stack.

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

Parameters:
cloneAppIds A list of source stack app IDs to be included in the cloned stack.
Returns:
A reference to this updated object so that method calls can be chained together.
    public CloneStackRequest withCloneAppIds(java.util.Collection<StringcloneAppIds) {
        if (cloneAppIds == null) {
            this. = null;
        } else {
            com.amazonaws.internal.ListWithAutoConstructFlag<StringcloneAppIdsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(cloneAppIds.size());
            cloneAppIdsCopy.addAll(cloneAppIds);
            this. = cloneAppIdsCopy;
        }
        return this;
    }

    
The default root device type. This value is used by default for all instances in the cloned 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 cloned stack, but you can override it when you create an instance. For more information, see Storage for the Root Device.
See also:
RootDeviceType
    public String getDefaultRootDeviceType() {
        return ;
    }
    
    
The default root device type. This value is used by default for all instances in the cloned 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 cloned stack, but you can override it when you create an instance. For more information, see Storage for the Root Device.
See also:
RootDeviceType
    public void setDefaultRootDeviceType(String defaultRootDeviceType) {
        this. = defaultRootDeviceType;
    }
    
    
The default root device type. This value is used by default for all instances in the cloned 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 cloned 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
    public CloneStackRequest withDefaultRootDeviceType(String defaultRootDeviceType) {
        this. = defaultRootDeviceType;
        return this;
    }

    
The default root device type. This value is used by default for all instances in the cloned 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 cloned stack, but you can override it when you create an instance. For more information, see Storage for the Root Device.
See also:
RootDeviceType
    public void setDefaultRootDeviceType(RootDeviceType defaultRootDeviceType) {
        this. = defaultRootDeviceType.toString();
    }
    
    
The default root device type. This value is used by default for all instances in the cloned 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 cloned 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
    public CloneStackRequest withDefaultRootDeviceType(RootDeviceType defaultRootDeviceType) {
        this. = defaultRootDeviceType.toString();
        return this;
    }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getSourceStackId() != nullsb.append("SourceStackId: " + getSourceStackId() + ",");
        if (getName() != nullsb.append("Name: " + getName() + ",");
        if (getRegion() != nullsb.append("Region: " + getRegion() + ",");
        if (getVpcId() != nullsb.append("VpcId: " + getVpcId() + ",");
        if (getAttributes() != nullsb.append("Attributes: " + getAttributes() + ",");
        if (getServiceRoleArn() != nullsb.append("ServiceRoleArn: " + getServiceRoleArn() + ",");
        if (getDefaultInstanceProfileArn() != nullsb.append("DefaultInstanceProfileArn: " + getDefaultInstanceProfileArn() + ",");
        if (getDefaultOs() != nullsb.append("DefaultOs: " + getDefaultOs() + ",");
        if (getHostnameTheme() != nullsb.append("HostnameTheme: " + getHostnameTheme() + ",");
        if (getDefaultAvailabilityZone() != nullsb.append("DefaultAvailabilityZone: " + getDefaultAvailabilityZone() + ",");
        if (getDefaultSubnetId() != nullsb.append("DefaultSubnetId: " + getDefaultSubnetId() + ",");
        if (getCustomJson() != nullsb.append("CustomJson: " + getCustomJson() + ",");
        if (getConfigurationManager() != nullsb.append("ConfigurationManager: " + getConfigurationManager() + ",");
        if (getChefConfiguration() != nullsb.append("ChefConfiguration: " + getChefConfiguration() + ",");
        if (isUseCustomCookbooks() != nullsb.append("UseCustomCookbooks: " + isUseCustomCookbooks() + ",");
        if (isUseOpsworksSecurityGroups() != nullsb.append("UseOpsworksSecurityGroups: " + isUseOpsworksSecurityGroups() + ",");
        if (getCustomCookbooksSource() != nullsb.append("CustomCookbooksSource: " + getCustomCookbooksSource() + ",");
        if (getDefaultSshKeyName() != nullsb.append("DefaultSshKeyName: " + getDefaultSshKeyName() + ",");
        if (isClonePermissions() != nullsb.append("ClonePermissions: " + isClonePermissions() + ",");
        if (getCloneAppIds() != nullsb.append("CloneAppIds: " + getCloneAppIds() + ",");
        if (getDefaultRootDeviceType() != nullsb.append("DefaultRootDeviceType: " + getDefaultRootDeviceType() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getSourceStackId() == null) ? 0 : getSourceStackId().hashCode()); 
        hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); 
        hashCode = prime * hashCode + ((getRegion() == null) ? 0 : getRegion().hashCode()); 
        hashCode = prime * hashCode + ((getVpcId() == null) ? 0 : getVpcId().hashCode()); 
        hashCode = prime * hashCode + ((getAttributes() == null) ? 0 : getAttributes().hashCode()); 
        hashCode = prime * hashCode + ((getServiceRoleArn() == null) ? 0 : getServiceRoleArn().hashCode()); 
        hashCode = prime * hashCode + ((getDefaultInstanceProfileArn() == null) ? 0 : getDefaultInstanceProfileArn().hashCode()); 
        hashCode = prime * hashCode + ((getDefaultOs() == null) ? 0 : getDefaultOs().hashCode()); 
        hashCode = prime * hashCode + ((getHostnameTheme() == null) ? 0 : getHostnameTheme().hashCode()); 
        hashCode = prime * hashCode + ((getDefaultAvailabilityZone() == null) ? 0 : getDefaultAvailabilityZone().hashCode()); 
        hashCode = prime * hashCode + ((getDefaultSubnetId() == null) ? 0 : getDefaultSubnetId().hashCode()); 
        hashCode = prime * hashCode + ((getCustomJson() == null) ? 0 : getCustomJson().hashCode()); 
        hashCode = prime * hashCode + ((getConfigurationManager() == null) ? 0 : getConfigurationManager().hashCode()); 
        hashCode = prime * hashCode + ((getChefConfiguration() == null) ? 0 : getChefConfiguration().hashCode()); 
        hashCode = prime * hashCode + ((isUseCustomCookbooks() == null) ? 0 : isUseCustomCookbooks().hashCode()); 
        hashCode = prime * hashCode + ((isUseOpsworksSecurityGroups() == null) ? 0 : isUseOpsworksSecurityGroups().hashCode()); 
        hashCode = prime * hashCode + ((getCustomCookbooksSource() == null) ? 0 : getCustomCookbooksSource().hashCode()); 
        hashCode = prime * hashCode + ((getDefaultSshKeyName() == null) ? 0 : getDefaultSshKeyName().hashCode()); 
        hashCode = prime * hashCode + ((isClonePermissions() == null) ? 0 : isClonePermissions().hashCode()); 
        hashCode = prime * hashCode + ((getCloneAppIds() == null) ? 0 : getCloneAppIds().hashCode()); 
        hashCode = prime * hashCode + ((getDefaultRootDeviceType() == null) ? 0 : getDefaultRootDeviceType().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof CloneStackRequest == falsereturn false;
        CloneStackRequest other = (CloneStackRequest)obj;
        
        if (other.getSourceStackId() == null ^ this.getSourceStackId() == nullreturn false;
        if (other.getSourceStackId() != null && other.getSourceStackId().equals(this.getSourceStackId()) == falsereturn false
        if (other.getName() == null ^ this.getName() == nullreturn false;
        if (other.getName() != null && other.getName().equals(this.getName()) == falsereturn false
        if (other.getRegion() == null ^ this.getRegion() == nullreturn false;
        if (other.getRegion() != null && other.getRegion().equals(this.getRegion()) == falsereturn false
        if (other.getVpcId() == null ^ this.getVpcId() == nullreturn false;
        if (other.getVpcId() != null && other.getVpcId().equals(this.getVpcId()) == falsereturn false
        if (other.getAttributes() == null ^ this.getAttributes() == nullreturn false;
        if (other.getAttributes() != null && other.getAttributes().equals(this.getAttributes()) == falsereturn false
        if (other.getServiceRoleArn() == null ^ this.getServiceRoleArn() == nullreturn false;
        if (other.getServiceRoleArn() != null && other.getServiceRoleArn().equals(this.getServiceRoleArn()) == falsereturn false
        if (other.getDefaultInstanceProfileArn() == null ^ this.getDefaultInstanceProfileArn() == nullreturn false;
        if (other.getDefaultInstanceProfileArn() != null && other.getDefaultInstanceProfileArn().equals(this.getDefaultInstanceProfileArn()) == falsereturn false
        if (other.getDefaultOs() == null ^ this.getDefaultOs() == nullreturn false;
        if (other.getDefaultOs() != null && other.getDefaultOs().equals(this.getDefaultOs()) == falsereturn false
        if (other.getHostnameTheme() == null ^ this.getHostnameTheme() == nullreturn false;
        if (other.getHostnameTheme() != null && other.getHostnameTheme().equals(this.getHostnameTheme()) == falsereturn false
        if (other.getDefaultAvailabilityZone() == null ^ this.getDefaultAvailabilityZone() == nullreturn false;
        if (other.getDefaultAvailabilityZone() != null && other.getDefaultAvailabilityZone().equals(this.getDefaultAvailabilityZone()) == falsereturn false
        if (other.getDefaultSubnetId() == null ^ this.getDefaultSubnetId() == nullreturn false;
        if (other.getDefaultSubnetId() != null && other.getDefaultSubnetId().equals(this.getDefaultSubnetId()) == falsereturn false
        if (other.getCustomJson() == null ^ this.getCustomJson() == nullreturn false;
        if (other.getCustomJson() != null && other.getCustomJson().equals(this.getCustomJson()) == falsereturn false
        if (other.getConfigurationManager() == null ^ this.getConfigurationManager() == nullreturn false;
        if (other.getConfigurationManager() != null && other.getConfigurationManager().equals(this.getConfigurationManager()) == falsereturn false
        if (other.getChefConfiguration() == null ^ this.getChefConfiguration() == nullreturn false;
        if (other.getChefConfiguration() != null && other.getChefConfiguration().equals(this.getChefConfiguration()) == falsereturn false
        if (other.isUseCustomCookbooks() == null ^ this.isUseCustomCookbooks() == nullreturn false;
        if (other.isUseCustomCookbooks() != null && other.isUseCustomCookbooks().equals(this.isUseCustomCookbooks()) == falsereturn false
        if (other.isUseOpsworksSecurityGroups() == null ^ this.isUseOpsworksSecurityGroups() == nullreturn false;
        if (other.isUseOpsworksSecurityGroups() != null && other.isUseOpsworksSecurityGroups().equals(this.isUseOpsworksSecurityGroups()) == falsereturn false
        if (other.getCustomCookbooksSource() == null ^ this.getCustomCookbooksSource() == nullreturn false;
        if (other.getCustomCookbooksSource() != null && other.getCustomCookbooksSource().equals(this.getCustomCookbooksSource()) == falsereturn false
        if (other.getDefaultSshKeyName() == null ^ this.getDefaultSshKeyName() == nullreturn false;
        if (other.getDefaultSshKeyName() != null && other.getDefaultSshKeyName().equals(this.getDefaultSshKeyName()) == falsereturn false
        if (other.isClonePermissions() == null ^ this.isClonePermissions() == nullreturn false;
        if (other.isClonePermissions() != null && other.isClonePermissions().equals(this.isClonePermissions()) == falsereturn false
        if (other.getCloneAppIds() == null ^ this.getCloneAppIds() == nullreturn false;
        if (other.getCloneAppIds() != null && other.getCloneAppIds().equals(this.getCloneAppIds()) == falsereturn false
        if (other.getDefaultRootDeviceType() == null ^ this.getDefaultRootDeviceType() == nullreturn false;
        if (other.getDefaultRootDeviceType() != null && other.getDefaultRootDeviceType().equals(this.getDefaultRootDeviceType()) == falsereturn false
        return true;
    }
    
    @Override
    public CloneStackRequest clone() {
        
            return (CloneStackRequestsuper.clone();
    }
}
    
New to GrepCode? Check out our FAQ X