Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.opsworks.model
Class Deployment

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

public class Deployment
extends Object
implements Serializable

Describes a deployment of a stack or app.

See Also:
Serialized Form

Constructor Summary
Deployment()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getAppId()
          The app ID.
 DeploymentCommand getCommand()
          Used to specify a deployment operation.
 String getComment()
          A user-defined comment.
 String getCompletedAt()
          Date when the deployment completed.
 String getCreatedAt()
          Date when the deployment was created.
 String getCustomJson()
          A string that contains user-defined custom JSON.
 String getDeploymentId()
          The deployment ID.
 Integer getDuration()
          The deployment duration.
 String getIamUserArn()
          The user's IAM ARN.
 List<String> getInstanceIds()
          The IDs of the target instances.
 String getStackId()
          The stack ID.
 String getStatus()
          The deployment status: running successful failed
 int hashCode()
           
 void setAppId(String appId)
          The app ID.
 void setCommand(DeploymentCommand command)
          Used to specify a deployment operation.
 void setComment(String comment)
          A user-defined comment.
 void setCompletedAt(String completedAt)
          Date when the deployment completed.
 void setCreatedAt(String createdAt)
          Date when the deployment was created.
 void setCustomJson(String customJson)
          A string that contains user-defined custom JSON.
 void setDeploymentId(String deploymentId)
          The deployment ID.
 void setDuration(Integer duration)
          The deployment duration.
 void setIamUserArn(String iamUserArn)
          The user's IAM ARN.
 void setInstanceIds(Collection<String> instanceIds)
          The IDs of the target instances.
 void setStackId(String stackId)
          The stack ID.
 void setStatus(String status)
          The deployment status: running successful failed
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 Deployment withAppId(String appId)
          The app ID.
 Deployment withCommand(DeploymentCommand command)
          Used to specify a deployment operation.
 Deployment withComment(String comment)
          A user-defined comment.
 Deployment withCompletedAt(String completedAt)
          Date when the deployment completed.
 Deployment withCreatedAt(String createdAt)
          Date when the deployment was created.
 Deployment withCustomJson(String customJson)
          A string that contains user-defined custom JSON.
 Deployment withDeploymentId(String deploymentId)
          The deployment ID.
 Deployment withDuration(Integer duration)
          The deployment duration.
 Deployment withIamUserArn(String iamUserArn)
          The user's IAM ARN.
 Deployment withInstanceIds(Collection<String> instanceIds)
          The IDs of the target instances.
 Deployment withInstanceIds(String... instanceIds)
          The IDs of the target instances.
 Deployment withStackId(String stackId)
          The stack ID.
 Deployment withStatus(String status)
          The deployment status: running successful failed
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Deployment

public Deployment()
Method Detail

getDeploymentId

public String getDeploymentId()
The deployment ID.

Returns:
The deployment ID.

setDeploymentId

public void setDeploymentId(String deploymentId)
The deployment ID.

Parameters:
deploymentId - The deployment ID.

withDeploymentId

public Deployment withDeploymentId(String deploymentId)
The deployment ID.

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

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

getStackId

public String getStackId()
The stack ID.

Returns:
The stack ID.

setStackId

public void setStackId(String stackId)
The stack ID.

Parameters:
stackId - The stack ID.

withStackId

public Deployment withStackId(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 String getAppId()
The app ID.

Returns:
The app ID.

setAppId

public void setAppId(String appId)
The app ID.

Parameters:
appId - The app ID.

withAppId

public Deployment withAppId(String appId)
The app ID.

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

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

getCreatedAt

public String getCreatedAt()
Date when the deployment was created.

Returns:
Date when the deployment was created.

setCreatedAt

public void setCreatedAt(String createdAt)
Date when the deployment was created.

Parameters:
createdAt - Date when the deployment was created.

withCreatedAt

public Deployment withCreatedAt(String createdAt)
Date when the deployment was created.

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

Parameters:
createdAt - Date when the deployment was created.
Returns:
A reference to this updated object so that method calls can be chained together.

getCompletedAt

public String getCompletedAt()
Date when the deployment completed.

Returns:
Date when the deployment completed.

setCompletedAt

public void setCompletedAt(String completedAt)
Date when the deployment completed.

Parameters:
completedAt - Date when the deployment completed.

withCompletedAt

public Deployment withCompletedAt(String completedAt)
Date when the deployment completed.

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

Parameters:
completedAt - Date when the deployment completed.
Returns:
A reference to this updated object so that method calls can be chained together.

getDuration

public Integer getDuration()
The deployment duration.

Returns:
The deployment duration.

setDuration

public void setDuration(Integer duration)
The deployment duration.

Parameters:
duration - The deployment duration.

withDuration

public Deployment withDuration(Integer duration)
The deployment duration.

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

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

getIamUserArn

public String getIamUserArn()
The user's IAM ARN.

Returns:
The user's IAM ARN.

setIamUserArn

public void setIamUserArn(String iamUserArn)
The user's IAM ARN.

Parameters:
iamUserArn - The user's IAM ARN.

withIamUserArn

public Deployment withIamUserArn(String iamUserArn)
The user's IAM ARN.

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

Parameters:
iamUserArn - The user's IAM ARN.
Returns:
A reference to this updated object so that method calls can be chained together.

getComment

public String getComment()
A user-defined comment.

Returns:
A user-defined comment.

setComment

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

Parameters:
comment - A user-defined comment.

withComment

public Deployment withComment(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.

getCommand

public DeploymentCommand getCommand()
Used to specify a deployment operation.

Returns:
Used to specify a deployment operation.

setCommand

public void setCommand(DeploymentCommand command)
Used to specify a deployment operation.

Parameters:
command - Used to specify a deployment operation.

withCommand

public Deployment withCommand(DeploymentCommand command)
Used to specify a deployment operation.

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

Parameters:
command - Used to specify a deployment operation.
Returns:
A reference to this updated object so that method calls can be chained together.

getStatus

public String getStatus()
The deployment status:

Returns:
The deployment status:
  • running
  • successful
  • failed

setStatus

public void setStatus(String status)
The deployment status:

Parameters:
status - The deployment status:
  • running
  • successful
  • failed

withStatus

public Deployment withStatus(String status)
The deployment status:

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

Parameters:
status - The deployment status:
  • running
  • successful
  • failed
Returns:
A reference to this updated object so that method calls can be chained together.

getCustomJson

public String getCustomJson()
A string that contains user-defined custom JSON. It is used to override the corresponding default stack configuration JSON values for stack. 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 for stack. 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.


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 for stack. 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 for stack. 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.


withCustomJson

public Deployment withCustomJson(String customJson)
A string that contains user-defined custom JSON. It is used to override the corresponding default stack configuration JSON values for stack. 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 for stack. 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.

getInstanceIds

public List<String> getInstanceIds()
The IDs of the target instances.

Returns:
The IDs of the target instances.

setInstanceIds

public void setInstanceIds(Collection<String> instanceIds)
The IDs of the target instances.

Parameters:
instanceIds - The IDs of the target instances.

withInstanceIds

public Deployment withInstanceIds(String... instanceIds)
The IDs of the target instances.

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

Parameters:
instanceIds - The IDs of the target instances.
Returns:
A reference to this updated object so that method calls can be chained together.

withInstanceIds

public Deployment withInstanceIds(Collection<String> instanceIds)
The IDs of the target instances.

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

Parameters:
instanceIds - The IDs of the target instances.
Returns:
A reference to this updated 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 class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


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