public class Deployment extends Object implements Serializable, Cloneable
Describes a deployment of a stack or app.
Constructor and Description |
---|
Deployment() |
Modifier and Type | Method and Description |
---|---|
Deployment |
clone() |
boolean |
equals(Object obj) |
String |
getAppId()
The app ID.
|
DeploymentCommand |
getCommand()
Used to specify a stack or deployment command.
|
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 stack or deployment command.
|
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 stack or deployment command.
|
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
|
public String getDeploymentId()
public void setDeploymentId(String deploymentId)
deploymentId
- The deployment ID.public Deployment withDeploymentId(String deploymentId)
Returns a reference to this object so that method calls can be chained together.
deploymentId
- The deployment ID.public String getStackId()
public void setStackId(String stackId)
stackId
- The stack ID.public Deployment withStackId(String stackId)
Returns a reference to this object so that method calls can be chained together.
stackId
- The stack ID.public String getAppId()
public void setAppId(String appId)
appId
- The app ID.public Deployment withAppId(String appId)
Returns a reference to this object so that method calls can be chained together.
appId
- The app ID.public String getCreatedAt()
public void setCreatedAt(String createdAt)
createdAt
- Date when the deployment was created.public Deployment withCreatedAt(String createdAt)
Returns a reference to this object so that method calls can be chained together.
createdAt
- Date when the deployment was created.public String getCompletedAt()
public void setCompletedAt(String completedAt)
completedAt
- Date when the deployment completed.public Deployment withCompletedAt(String completedAt)
Returns a reference to this object so that method calls can be chained together.
completedAt
- Date when the deployment completed.public Integer getDuration()
public void setDuration(Integer duration)
duration
- The deployment duration.public Deployment withDuration(Integer duration)
Returns a reference to this object so that method calls can be chained together.
duration
- The deployment duration.public String getIamUserArn()
public void setIamUserArn(String iamUserArn)
iamUserArn
- The user's IAM ARN.public Deployment withIamUserArn(String iamUserArn)
Returns a reference to this object so that method calls can be chained together.
iamUserArn
- The user's IAM ARN.public String getComment()
public void setComment(String comment)
comment
- A user-defined comment.public Deployment withComment(String comment)
Returns a reference to this object so that method calls can be chained together.
comment
- A user-defined comment.public DeploymentCommand getCommand()
public void setCommand(DeploymentCommand command)
command
- Used to specify a stack or deployment command.public Deployment withCommand(DeploymentCommand command)
Returns a reference to this object so that method calls can be chained together.
command
- Used to specify a stack or deployment command.public String getStatus()
public void setStatus(String status)
status
- The deployment status: public Deployment withStatus(String status)
Returns a reference to this object so that method calls can be chained together.
status
- The deployment status: public String getCustomJson()
"{\"key1\": \"value1\", \"key2\": \"value2\",...}"
For more information on custom JSON, see Use Custom JSON to Modify the Stack Configuration Attributes.
"{\"key1\": \"value1\", \"key2\": \"value2\",...}"
For more information on custom JSON, see Use Custom JSON to Modify the Stack Configuration Attributes.
public void setCustomJson(String customJson)
"{\"key1\": \"value1\", \"key2\": \"value2\",...}"
For more information on custom JSON, see Use Custom JSON to Modify the Stack Configuration Attributes.
customJson
- A string that contains user-defined custom JSON. It can be used to
override the corresponding default stack configuration attribute
values for stack or to pass data to recipes. 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.
public Deployment withCustomJson(String customJson)
"{\"key1\": \"value1\", \"key2\": \"value2\",...}"
For more information on custom JSON, see Use Custom JSON to Modify the Stack Configuration Attributes.
Returns a reference to this object so that method calls can be chained together.
customJson
- A string that contains user-defined custom JSON. It can be used to
override the corresponding default stack configuration attribute
values for stack or to pass data to recipes. 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.
public List<String> getInstanceIds()
public void setInstanceIds(Collection<String> instanceIds)
instanceIds
- The IDs of the target instances.public Deployment withInstanceIds(String... instanceIds)
NOTE: This method appends the values to the existing list (if
any). Use setInstanceIds(java.util.Collection)
or withInstanceIds(java.util.Collection)
if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
instanceIds
- The IDs of the target instances.public Deployment withInstanceIds(Collection<String> instanceIds)
Returns a reference to this object so that method calls can be chained together.
instanceIds
- The IDs of the target instances.public String toString()
toString
in class Object
Object.toString()
public Deployment clone()
Copyright © 2015. All rights reserved.