public class CloneStackRequest extends AmazonWebServiceRequest implements java.io.Serializable
CloneStack operation.
Creates a clone of a specified stack. For more information, see Clone a Stack .
| コンストラクタと説明 |
|---|
CloneStackRequest() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
CloneStackRequest |
addAttributesEntry(java.lang.String key,
java.lang.String value)
A list of stack attributes and values as key/value pairs to be added
to the cloned stack.
|
CloneStackRequest |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
boolean |
equals(java.lang.Object obj) |
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
A list of stack attributes and values as key/value pairs to be added
to the cloned stack.
|
java.util.List<java.lang.String> |
getCloneAppIds()
A list of source stack app IDs to be included in the cloned stack.
|
java.lang.Boolean |
getClonePermissions()
Whether to clone the source stack's permissions.
|
StackConfigurationManager |
getConfigurationManager()
The configuration manager.
|
Source |
getCustomCookbooksSource()
Contains the information required to retrieve an app or cookbook from
a repository.
|
java.lang.String |
getCustomJson()
A string that contains user-defined, custom JSON.
|
java.lang.String |
getDefaultAvailabilityZone()
The cloned stack's Availability Zone.
|
java.lang.String |
getDefaultInstanceProfileArn()
The ARN of an IAM profile that is the default profile for all of the
stack's EC2 instances.
|
java.lang.String |
getDefaultOs()
The cloned stack default operating system, which must be set to one of
the following.
|
java.lang.String |
getDefaultRootDeviceType()
The default root device type.
|
java.lang.String |
getDefaultSshKeyName()
A default SSH key for the stack instances.
|
java.lang.String |
getHostnameTheme()
The stack's host name theme, with spaces are replaced by underscores.
|
java.lang.String |
getName()
The cloned stack name.
|
java.lang.String |
getRegion()
The cloned stack AWS region, such as "us-east-1".
|
java.lang.String |
getServiceRoleArn()
The stack AWS Identity and Access Management (IAM) role, which allows
AWS OpsWorks to work with AWS resources on your behalf.
|
java.lang.String |
getSourceStackId()
The source stack ID.
|
java.lang.Boolean |
getUseCustomCookbooks()
Whether to use custom cookbooks.
|
int |
hashCode() |
java.lang.Boolean |
isClonePermissions()
Whether to clone the source stack's permissions.
|
java.lang.Boolean |
isUseCustomCookbooks()
Whether to use custom cookbooks.
|
void |
setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
A list of stack attributes and values as key/value pairs to be added
to the cloned stack.
|
void |
setCloneAppIds(java.util.Collection<java.lang.String> cloneAppIds)
A list of source stack app IDs to be included in the cloned stack.
|
void |
setClonePermissions(java.lang.Boolean clonePermissions)
Whether to clone the source stack's permissions.
|
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(java.lang.String customJson)
A string that contains user-defined, custom JSON.
|
void |
setDefaultAvailabilityZone(java.lang.String defaultAvailabilityZone)
The cloned stack's Availability Zone.
|
void |
setDefaultInstanceProfileArn(java.lang.String defaultInstanceProfileArn)
The ARN of an IAM profile that is the default profile for all of the
stack's EC2 instances.
|
void |
setDefaultOs(java.lang.String defaultOs)
The cloned stack default operating system, which must be set to one of
the following.
|
void |
setDefaultRootDeviceType(RootDeviceType defaultRootDeviceType)
The default root device type.
|
void |
setDefaultRootDeviceType(java.lang.String defaultRootDeviceType)
The default root device type.
|
void |
setDefaultSshKeyName(java.lang.String defaultSshKeyName)
A default SSH key for the stack instances.
|
void |
setHostnameTheme(java.lang.String hostnameTheme)
The stack's host name theme, with spaces are replaced by underscores.
|
void |
setName(java.lang.String name)
The cloned stack name.
|
void |
setRegion(java.lang.String region)
The cloned stack AWS region, such as "us-east-1".
|
void |
setServiceRoleArn(java.lang.String serviceRoleArn)
The stack AWS Identity and Access Management (IAM) role, which allows
AWS OpsWorks to work with AWS resources on your behalf.
|
void |
setSourceStackId(java.lang.String sourceStackId)
The source stack ID.
|
void |
setUseCustomCookbooks(java.lang.Boolean useCustomCookbooks)
Whether to use custom cookbooks.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CloneStackRequest |
withAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
A list of stack attributes and values as key/value pairs to be added
to the cloned stack.
|
CloneStackRequest |
withCloneAppIds(java.util.Collection<java.lang.String> cloneAppIds)
A list of source stack app IDs to be included in the cloned stack.
|
CloneStackRequest |
withCloneAppIds(java.lang.String... cloneAppIds)
A list of source stack app IDs to be included in the cloned stack.
|
CloneStackRequest |
withClonePermissions(java.lang.Boolean clonePermissions)
Whether to clone the source stack's permissions.
|
CloneStackRequest |
withConfigurationManager(StackConfigurationManager configurationManager)
The configuration manager.
|
CloneStackRequest |
withCustomCookbooksSource(Source customCookbooksSource)
Contains the information required to retrieve an app or cookbook from
a repository.
|
CloneStackRequest |
withCustomJson(java.lang.String customJson)
A string that contains user-defined, custom JSON.
|
CloneStackRequest |
withDefaultAvailabilityZone(java.lang.String defaultAvailabilityZone)
The cloned stack's Availability Zone.
|
CloneStackRequest |
withDefaultInstanceProfileArn(java.lang.String defaultInstanceProfileArn)
The ARN of an IAM profile that is the default profile for all of the
stack's EC2 instances.
|
CloneStackRequest |
withDefaultOs(java.lang.String defaultOs)
The cloned stack default operating system, which must be set to one of
the following.
|
CloneStackRequest |
withDefaultRootDeviceType(RootDeviceType defaultRootDeviceType)
The default root device type.
|
CloneStackRequest |
withDefaultRootDeviceType(java.lang.String defaultRootDeviceType)
The default root device type.
|
CloneStackRequest |
withDefaultSshKeyName(java.lang.String defaultSshKeyName)
A default SSH key for the stack instances.
|
CloneStackRequest |
withHostnameTheme(java.lang.String hostnameTheme)
The stack's host name theme, with spaces are replaced by underscores.
|
CloneStackRequest |
withName(java.lang.String name)
The cloned stack name.
|
CloneStackRequest |
withRegion(java.lang.String region)
The cloned stack AWS region, such as "us-east-1".
|
CloneStackRequest |
withServiceRoleArn(java.lang.String serviceRoleArn)
The stack AWS Identity and Access Management (IAM) role, which allows
AWS OpsWorks to work with AWS resources on your behalf.
|
CloneStackRequest |
withSourceStackId(java.lang.String sourceStackId)
The source stack ID.
|
CloneStackRequest |
withUseCustomCookbooks(java.lang.Boolean useCustomCookbooks)
Whether to use custom cookbooks.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentialspublic java.lang.String getSourceStackId()
public void setSourceStackId(java.lang.String sourceStackId)
sourceStackId - The source stack ID.public CloneStackRequest withSourceStackId(java.lang.String sourceStackId)
Returns a reference to this object so that method calls can be chained together.
sourceStackId - The source stack ID.public java.lang.String getName()
public void setName(java.lang.String name)
name - The cloned stack name.public CloneStackRequest withName(java.lang.String name)
Returns a reference to this object so that method calls can be chained together.
name - The cloned stack name.public java.lang.String getRegion()
public void setRegion(java.lang.String region)
region - The cloned stack AWS region, such as "us-east-1". For more information
about AWS regions, see Regions
and Endpoints.public CloneStackRequest withRegion(java.lang.String region)
Returns a reference to this object so that method calls can be chained together.
region - The cloned stack AWS region, such as "us-east-1". For more information
about AWS regions, see Regions
and Endpoints.public java.util.Map<java.lang.String,java.lang.String> getAttributes()
public void setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
attributes - A list of stack attributes and values as key/value pairs to be added
to the cloned stack.public CloneStackRequest withAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
Returns a reference to this object so that method calls can be chained together.
attributes - A list of stack attributes and values as key/value pairs to be added
to the cloned stack.public CloneStackRequest addAttributesEntry(java.lang.String key, java.lang.String value)
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.
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 clearAttributesEntries()
Returns a reference to this object so that method calls can be chained together.
public java.lang.String getServiceRoleArn()
public void setServiceRoleArn(java.lang.String serviceRoleArn)
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. public CloneStackRequest withServiceRoleArn(java.lang.String serviceRoleArn)
Returns a reference to this object so that method calls can be chained together.
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. public java.lang.String getDefaultInstanceProfileArn()
public void setDefaultInstanceProfileArn(java.lang.String defaultInstanceProfileArn)
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 CloneStackRequest withDefaultInstanceProfileArn(java.lang.String defaultInstanceProfileArn)
Returns a reference to this object so that method calls can be chained together.
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 java.lang.String getDefaultOs()
Amazon
Linux or Ubuntu 12.04 LTSCustomThe default option is Amazon
Linux. If you set this parameter to Custom, you
must use the CreateInstance action's AmiId parameter to specify
the custom AMI that you want to use. For more information on the
standard operating systems, see Operating
SystemsFor more information on how to use custom AMIs with
OpsWorks, see Using
Custom AMIs.
Amazon
Linux or Ubuntu 12.04 LTSCustomThe default option is Amazon
Linux. If you set this parameter to Custom, you
must use the CreateInstance action's AmiId parameter to specify
the custom AMI that you want to use. For more information on the
standard operating systems, see Operating
SystemsFor more information on how to use custom AMIs with
OpsWorks, see Using
Custom AMIs.
public void setDefaultOs(java.lang.String defaultOs)
Amazon
Linux or Ubuntu 12.04 LTSCustomThe default option is Amazon
Linux. If you set this parameter to Custom, you
must use the CreateInstance action's AmiId parameter to specify
the custom AMI that you want to use. For more information on the
standard operating systems, see Operating
SystemsFor more information on how to use custom AMIs with
OpsWorks, see Using
Custom AMIs.
defaultOs - The cloned stack default operating system, which must be set to one of
the following. Amazon
Linux or Ubuntu 12.04 LTSCustomThe default option is Amazon
Linux. If you set this parameter to Custom, you
must use the CreateInstance action's AmiId parameter to specify
the custom AMI that you want to use. For more information on the
standard operating systems, see Operating
SystemsFor more information on how to use custom AMIs with
OpsWorks, see Using
Custom AMIs.
public CloneStackRequest withDefaultOs(java.lang.String defaultOs)
Amazon
Linux or Ubuntu 12.04 LTSCustomThe default option is Amazon
Linux. If you set this parameter to Custom, you
must use the CreateInstance action's AmiId parameter to specify
the custom AMI that you want to use. For more information on the
standard operating systems, see Operating
SystemsFor more information on how to use custom AMIs with
OpsWorks, see Using
Custom AMIs.
Returns a reference to this object so that method calls can be chained together.
defaultOs - The cloned stack default operating system, which must be set to one of
the following. Amazon
Linux or Ubuntu 12.04 LTSCustomThe default option is Amazon
Linux. If you set this parameter to Custom, you
must use the CreateInstance action's AmiId parameter to specify
the custom AMI that you want to use. For more information on the
standard operating systems, see Operating
SystemsFor more information on how to use custom AMIs with
OpsWorks, see Using
Custom AMIs.
public java.lang.String getHostnameTheme()
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.
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.
public void setHostnameTheme(java.lang.String hostnameTheme)
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.
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: To obtain a generated host name, call
GetHostNameSuggestion, which returns a host name based on
the current theme.
public CloneStackRequest withHostnameTheme(java.lang.String hostnameTheme)
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.
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: To obtain a generated host name, call
GetHostNameSuggestion, which returns a host name based on
the current theme.
public java.lang.String getDefaultAvailabilityZone()
public void setDefaultAvailabilityZone(java.lang.String defaultAvailabilityZone)
defaultAvailabilityZone - The cloned stack's Availability Zone. For more information, see Regions
and Endpoints.public CloneStackRequest withDefaultAvailabilityZone(java.lang.String defaultAvailabilityZone)
Returns a reference to this object so that method calls can be chained together.
defaultAvailabilityZone - The cloned stack's Availability Zone. For more information, see Regions
and Endpoints.public java.lang.String getCustomJson()
"{\"key1\": \"value1\", \"key2\":
\"value2\",...}" For more information on custom JSON, see Use Custom JSON to Modify the Stack Configuration JSON
"{\"key1\": \"value1\", \"key2\":
\"value2\",...}" For more information on custom JSON, see Use Custom JSON to Modify the Stack Configuration JSON
public void setCustomJson(java.lang.String customJson)
"{\"key1\": \"value1\", \"key2\":
\"value2\",...}" For more information on custom JSON, see Use Custom JSON to Modify the Stack Configuration JSON
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 CloneStackRequest withCustomJson(java.lang.String customJson)
"{\"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.
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 StackConfigurationManager getConfigurationManager()
public void setConfigurationManager(StackConfigurationManager configurationManager)
configurationManager - The configuration manager. When you clone a stack we recommend that
you use the configuration manager to specify the Chef version, 0.9 or
11.4. The default value is currently 0.9. However, we expect to change
the default value to 11.4 in late August 2013.public CloneStackRequest withConfigurationManager(StackConfigurationManager configurationManager)
Returns a reference to this object so that method calls can be chained together.
configurationManager - The configuration manager. When you clone a stack we recommend that
you use the configuration manager to specify the Chef version, 0.9 or
11.4. The default value is currently 0.9. However, we expect to change
the default value to 11.4 in late August 2013.public java.lang.Boolean isUseCustomCookbooks()
public void setUseCustomCookbooks(java.lang.Boolean useCustomCookbooks)
useCustomCookbooks - Whether to use custom cookbooks.public CloneStackRequest withUseCustomCookbooks(java.lang.Boolean useCustomCookbooks)
Returns a reference to this object so that method calls can be chained together.
useCustomCookbooks - Whether to use custom cookbooks.public java.lang.Boolean getUseCustomCookbooks()
public Source getCustomCookbooksSource()
public void setCustomCookbooksSource(Source customCookbooksSource)
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 CloneStackRequest withCustomCookbooksSource(Source customCookbooksSource)
Returns a reference to this object so that method calls can be chained together.
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 java.lang.String getDefaultSshKeyName()
public void setDefaultSshKeyName(java.lang.String defaultSshKeyName)
defaultSshKeyName - A default SSH key for the stack instances. You can override this value
when you create or update an instance.public CloneStackRequest withDefaultSshKeyName(java.lang.String defaultSshKeyName)
Returns a reference to this object so that method calls can be chained together.
defaultSshKeyName - A default SSH key for the stack instances. You can override this value
when you create or update an instance.public java.lang.Boolean isClonePermissions()
public void setClonePermissions(java.lang.Boolean clonePermissions)
clonePermissions - Whether to clone the source stack's permissions.public CloneStackRequest withClonePermissions(java.lang.Boolean clonePermissions)
Returns a reference to this object so that method calls can be chained together.
clonePermissions - Whether to clone the source stack's permissions.public java.lang.Boolean getClonePermissions()
public java.util.List<java.lang.String> getCloneAppIds()
public void setCloneAppIds(java.util.Collection<java.lang.String> cloneAppIds)
cloneAppIds - A list of source stack app IDs to be included in the cloned stack.public CloneStackRequest withCloneAppIds(java.lang.String... cloneAppIds)
Returns a reference to this object so that method calls can be chained together.
cloneAppIds - A list of source stack app IDs to be included in the cloned stack.public CloneStackRequest withCloneAppIds(java.util.Collection<java.lang.String> cloneAppIds)
Returns a reference to this object so that method calls can be chained together.
cloneAppIds - A list of source stack app IDs to be included in the cloned stack.public java.lang.String getDefaultRootDeviceType()
Constraints:
Allowed Values: ebs, instance-store
RootDeviceTypepublic void setDefaultRootDeviceType(java.lang.String defaultRootDeviceType)
Constraints:
Allowed Values: ebs, instance-store
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.RootDeviceTypepublic CloneStackRequest withDefaultRootDeviceType(java.lang.String defaultRootDeviceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ebs, instance-store
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.RootDeviceTypepublic void setDefaultRootDeviceType(RootDeviceType defaultRootDeviceType)
Constraints:
Allowed Values: ebs, instance-store
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.RootDeviceTypepublic CloneStackRequest withDefaultRootDeviceType(RootDeviceType defaultRootDeviceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ebs, instance-store
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.RootDeviceTypepublic java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object