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 CreateDeploymentRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
String
getAppId()
The app ID.DeploymentCommand
getCommand()
ADeploymentCommand
object that specifies the deployment command and any associated arguments.String
getComment()
A user-defined comment.String
getCustomJson()
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.String
getStackId()
The stack ID.int
hashCode()
void
setAppId(String appId)
The app ID.void
setCommand(DeploymentCommand command)
ADeploymentCommand
object that specifies the deployment command and any associated arguments.void
setComment(String comment)
A user-defined comment.void
setCustomJson(String customJson)
A string that contains user-defined, custom JSON.void
setInstanceIds(Collection<String> instanceIds)
The instance IDs for the deployment targets.void
setLayerIds(Collection<String> layerIds)
The layer IDs for the deployment targets.void
setStackId(String stackId)
The stack ID.String
toString()
Returns a string representation of this object; useful for testing and debugging.CreateDeploymentRequest
withAppId(String appId)
The app ID.CreateDeploymentRequest
withCommand(DeploymentCommand command)
ADeploymentCommand
object that specifies the deployment command and any associated arguments.CreateDeploymentRequest
withComment(String comment)
A user-defined comment.CreateDeploymentRequest
withCustomJson(String customJson)
A string that contains user-defined, custom JSON.CreateDeploymentRequest
withInstanceIds(String... instanceIds)
The instance IDs for the deployment targets.CreateDeploymentRequest
withInstanceIds(Collection<String> instanceIds)
The instance IDs for the deployment targets.CreateDeploymentRequest
withLayerIds(String... layerIds)
The layer IDs for the deployment targets.CreateDeploymentRequest
withLayerIds(Collection<String> layerIds)
The layer IDs for the deployment targets.CreateDeploymentRequest
withStackId(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
DeploymentCommand
object that specifies the deployment command and any associated arguments.- Parameters:
command
- ADeploymentCommand
object that specifies the deployment command and any associated arguments.
-
getCommand
public DeploymentCommand getCommand()
A
DeploymentCommand
object that specifies the deployment command and any associated arguments.- Returns:
- A
DeploymentCommand
object that specifies the deployment command and any associated arguments.
-
withCommand
public CreateDeploymentRequest withCommand(DeploymentCommand command)
A
DeploymentCommand
object that specifies the deployment command and any associated arguments.- Parameters:
command
- ADeploymentCommand
object 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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreateDeploymentRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-