Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.opsworks.model
Class CreateDeploymentRequest

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

public class CreateDeploymentRequest
extends AmazonWebServiceRequest
implements java.io.Serializable

Container for the parameters to the CreateDeployment operation.

Deploys a stack or app.

See Also:
AWSOpsWorks.createDeployment(CreateDeploymentRequest), Serialized Form

Constructor Summary
CreateDeploymentRequest()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getAppId()
          The app ID, for app deployments.
 DeploymentCommand getCommand()
          A DeploymentCommand object that describes details of the operation.
 java.lang.String getComment()
          A user-defined comment.
 java.lang.String getCustomJson()
          A string that contains user-defined, custom JSON.
 java.util.List<java.lang.String> getInstanceIds()
          The instance IDs for the deployment targets.
 java.lang.String getStackId()
          The stack ID.
 int hashCode()
           
 void setAppId(java.lang.String appId)
          The app ID, for app deployments.
 void setCommand(DeploymentCommand command)
          A DeploymentCommand object that describes details of the operation.
 void setComment(java.lang.String comment)
          A user-defined comment.
 void setCustomJson(java.lang.String customJson)
          A string that contains user-defined, custom JSON.
 void setInstanceIds(java.util.Collection<java.lang.String> instanceIds)
          The instance IDs for the deployment targets.
 void setStackId(java.lang.String stackId)
          The stack ID.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CreateDeploymentRequest withAppId(java.lang.String appId)
          The app ID, for app deployments.
 CreateDeploymentRequest withCommand(DeploymentCommand command)
          A DeploymentCommand object that describes details of the operation.
 CreateDeploymentRequest withComment(java.lang.String comment)
          A user-defined comment.
 CreateDeploymentRequest withCustomJson(java.lang.String customJson)
          A string that contains user-defined, custom JSON.
 CreateDeploymentRequest withInstanceIds(java.util.Collection<java.lang.String> instanceIds)
          The instance IDs for the deployment targets.
 CreateDeploymentRequest withInstanceIds(java.lang.String... instanceIds)
          The instance IDs for the deployment targets.
 CreateDeploymentRequest withStackId(java.lang.String stackId)
          The stack ID.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateDeploymentRequest

public CreateDeploymentRequest()
Method Detail

getStackId

public java.lang.String getStackId()
The stack ID.

Returns:
The stack ID.

setStackId

public void setStackId(java.lang.String stackId)
The stack ID.

Parameters:
stackId - The stack ID.

withStackId

public CreateDeploymentRequest withStackId(java.lang.String stackId)
The stack ID.

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

Parameters:
stackId - The stack ID.
Returns:
A reference to this updated object so that method calls can be chained together.

getAppId

public java.lang.String getAppId()
The app ID, for app deployments.

Returns:
The app ID, for app deployments.

setAppId

public void setAppId(java.lang.String appId)
The app ID, for app deployments.

Parameters:
appId - The app ID, for app deployments.

withAppId

public CreateDeploymentRequest withAppId(java.lang.String appId)
The app ID, for app deployments.

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

Parameters:
appId - The app ID, for app deployments.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceIds

public java.util.List<java.lang.String> getInstanceIds()
The instance IDs for the deployment targets.

Returns:
The instance IDs for the deployment targets.

setInstanceIds

public void setInstanceIds(java.util.Collection<java.lang.String> instanceIds)
The instance IDs for the deployment targets.

Parameters:
instanceIds - The instance IDs for the deployment targets.

withInstanceIds

public CreateDeploymentRequest withInstanceIds(java.lang.String... instanceIds)
The instance IDs for the deployment targets.

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

Parameters:
instanceIds - The instance IDs for the deployment targets.
Returns:
A reference to this updated object so that method calls can be chained together.

withInstanceIds

public CreateDeploymentRequest withInstanceIds(java.util.Collection<java.lang.String> instanceIds)
The instance IDs for the deployment targets.

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

Parameters:
instanceIds - The instance IDs for the deployment targets.
Returns:
A reference to this updated object so that method calls can be chained together.

getCommand

public DeploymentCommand getCommand()
A DeploymentCommand object that describes details of the operation.

Returns:
A DeploymentCommand object that describes details of the operation.

setCommand

public void setCommand(DeploymentCommand command)
A DeploymentCommand object that describes details of the operation.

Parameters:
command - A DeploymentCommand object that describes details of the operation.

withCommand

public CreateDeploymentRequest withCommand(DeploymentCommand command)
A DeploymentCommand object that describes details of the operation.

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

Parameters:
command - A DeploymentCommand object that describes details of the operation.
Returns:
A reference to this updated object so that method calls can be chained together.

getComment

public java.lang.String getComment()
A user-defined comment.

Returns:
A user-defined comment.

setComment

public void setComment(java.lang.String comment)
A user-defined comment.

Parameters:
comment - A user-defined comment.

withComment

public CreateDeploymentRequest withComment(java.lang.String comment)
A user-defined comment.

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

Parameters:
comment - A user-defined comment.
Returns:
A reference to this updated object so that method calls can be chained together.

getCustomJson

public java.lang.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\",...}"

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\",...}"

setCustomJson

public void setCustomJson(java.lang.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\",...}"

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\",...}"

withCustomJson

public CreateDeploymentRequest withCustomJson(java.lang.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\",...}"

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\",...}"
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.