Class CreateDeploymentRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.opsworks.model.CreateDeploymentRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class CreateDeploymentRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CreateDeploymentRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateDeploymentRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetAppId()The app ID.DeploymentCommandgetCommand()ADeploymentCommandobject that specifies the deployment command and any associated arguments.StringgetComment()A user-defined comment.StringgetCustomJson()A string that contains user-defined, custom JSON.List<String>getInstanceIds()The instance IDs for the deployment targets.List<String>getLayerIds()The layer IDs for the deployment targets.StringgetStackId()The stack ID.inthashCode()voidsetAppId(String appId)The app ID.voidsetCommand(DeploymentCommand command)ADeploymentCommandobject that specifies the deployment command and any associated arguments.voidsetComment(String comment)A user-defined comment.voidsetCustomJson(String customJson)A string that contains user-defined, custom JSON.voidsetInstanceIds(Collection<String> instanceIds)The instance IDs for the deployment targets.voidsetLayerIds(Collection<String> layerIds)The layer IDs for the deployment targets.voidsetStackId(String stackId)The stack ID.StringtoString()Returns a string representation of this object; useful for testing and debugging.CreateDeploymentRequestwithAppId(String appId)The app ID.CreateDeploymentRequestwithCommand(DeploymentCommand command)ADeploymentCommandobject that specifies the deployment command and any associated arguments.CreateDeploymentRequestwithComment(String comment)A user-defined comment.CreateDeploymentRequestwithCustomJson(String customJson)A string that contains user-defined, custom JSON.CreateDeploymentRequestwithInstanceIds(String... instanceIds)The instance IDs for the deployment targets.CreateDeploymentRequestwithInstanceIds(Collection<String> instanceIds)The instance IDs for the deployment targets.CreateDeploymentRequestwithLayerIds(String... layerIds)The layer IDs for the deployment targets.CreateDeploymentRequestwithLayerIds(Collection<String> layerIds)The layer IDs for the deployment targets.CreateDeploymentRequestwithStackId(String stackId)The stack ID.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setStackId
public void setStackId(String stackId)
The stack ID.
- Parameters:
stackId- The stack ID.
-
getStackId
public String getStackId()
The stack ID.
- Returns:
- The stack ID.
-
withStackId
public CreateDeploymentRequest withStackId(String stackId)
The stack ID.
- Parameters:
stackId- The stack ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAppId
public void setAppId(String appId)
The app ID. This parameter is required for app deployments, but not for other deployment commands.
- Parameters:
appId- The app ID. This parameter is required for app deployments, but not for other deployment commands.
-
getAppId
public String getAppId()
The app ID. This parameter is required for app deployments, but not for other deployment commands.
- Returns:
- The app ID. This parameter is required for app deployments, but not for other deployment commands.
-
withAppId
public CreateDeploymentRequest withAppId(String appId)
The app ID. This parameter is required for app deployments, but not for other deployment commands.
- Parameters:
appId- The app ID. This parameter is required for app deployments, but not for other deployment commands.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getInstanceIds
public List<String> getInstanceIds()
The instance IDs for the deployment targets.
- Returns:
- The instance IDs for the deployment targets.
-
setInstanceIds
public void setInstanceIds(Collection<String> instanceIds)
The instance IDs for the deployment targets.
- Parameters:
instanceIds- The instance IDs for the deployment targets.
-
withInstanceIds
public CreateDeploymentRequest withInstanceIds(String... instanceIds)
The instance IDs for the deployment targets.
NOTE: This method appends the values to the existing list (if any). Use
setInstanceIds(java.util.Collection)orwithInstanceIds(java.util.Collection)if you want to override the existing values.- Parameters:
instanceIds- The instance IDs for the deployment targets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withInstanceIds
public CreateDeploymentRequest withInstanceIds(Collection<String> instanceIds)
The instance IDs for the deployment targets.
- Parameters:
instanceIds- The instance IDs for the deployment targets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getLayerIds
public List<String> getLayerIds()
The layer IDs for the deployment targets.
- Returns:
- The layer IDs for the deployment targets.
-
setLayerIds
public void setLayerIds(Collection<String> layerIds)
The layer IDs for the deployment targets.
- Parameters:
layerIds- The layer IDs for the deployment targets.
-
withLayerIds
public CreateDeploymentRequest withLayerIds(String... layerIds)
The layer IDs for the deployment targets.
NOTE: This method appends the values to the existing list (if any). Use
setLayerIds(java.util.Collection)orwithLayerIds(java.util.Collection)if you want to override the existing values.- Parameters:
layerIds- The layer IDs for the deployment targets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withLayerIds
public CreateDeploymentRequest withLayerIds(Collection<String> layerIds)
The layer IDs for the deployment targets.
- Parameters:
layerIds- The layer IDs for the deployment targets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCommand
public void setCommand(DeploymentCommand command)
A
DeploymentCommandobject that specifies the deployment command and any associated arguments.- Parameters:
command- ADeploymentCommandobject that specifies the deployment command and any associated arguments.
-
getCommand
public DeploymentCommand getCommand()
A
DeploymentCommandobject that specifies the deployment command and any associated arguments.- Returns:
- A
DeploymentCommandobject that specifies the deployment command and any associated arguments.
-
withCommand
public CreateDeploymentRequest withCommand(DeploymentCommand command)
A
DeploymentCommandobject that specifies the deployment command and any associated arguments.- Parameters:
command- ADeploymentCommandobject that specifies the deployment command and any associated arguments.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setComment
public void setComment(String comment)
A user-defined comment.
- Parameters:
comment- A user-defined comment.
-
getComment
public String getComment()
A user-defined comment.
- Returns:
- A user-defined comment.
-
withComment
public CreateDeploymentRequest withComment(String comment)
A user-defined comment.
- Parameters:
comment- A user-defined comment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCustomJson
public void setCustomJson(String customJson)
A string that contains user-defined, custom JSON. It is used to override the corresponding default stack configuration JSON values. The string should be in the following format and must escape characters such as '"':
"{\"key1\": \"value1\", \"key2\": \"value2\",...}"For more information on custom JSON, see Use Custom JSON to Modify the Stack Configuration Attributes.
- 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 Attributes.
-
getCustomJson
public String getCustomJson()
A string that contains user-defined, custom JSON. It is used to override the corresponding default stack configuration JSON values. The string should be in the following format and must escape characters such as '"':
"{\"key1\": \"value1\", \"key2\": \"value2\",...}"For more information on custom JSON, see Use Custom JSON to Modify the Stack Configuration Attributes.
- 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 Attributes.
-
withCustomJson
public CreateDeploymentRequest withCustomJson(String customJson)
A string that contains user-defined, custom JSON. It is used to override the corresponding default stack configuration JSON values. The string should be in the following format and must escape characters such as '"':
"{\"key1\": \"value1\", \"key2\": \"value2\",...}"For more information on custom JSON, see Use Custom JSON to Modify the Stack Configuration Attributes.
- 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 Attributes.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreateDeploymentRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-