public class Deployment
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a deployment of a stack or app.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
appId
The app ID.
|
private DeploymentCommand |
command |
private java.lang.String |
comment
A user-defined comment.
|
private java.lang.String |
completedAt
Date when the deployment completed.
|
private java.lang.String |
createdAt
Date when the deployment was created.
|
private java.lang.String |
customJson
A string that contains user-defined custom JSON.
|
private java.lang.String |
deploymentId
The deployment ID.
|
private java.lang.Integer |
duration
The deployment duration.
|
private java.lang.String |
iamUserArn
The user's IAM ARN.
|
private SdkInternalList<java.lang.String> |
instanceIds
The IDs of the target instances.
|
private java.lang.String |
stackId
The stack ID.
|
private java.lang.String |
status
The deployment status:
|
Constructor and Description |
---|
Deployment() |
Modifier and Type | Method and Description |
---|---|
Deployment |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAppId()
The app ID.
|
DeploymentCommand |
getCommand() |
java.lang.String |
getComment()
A user-defined comment.
|
java.lang.String |
getCompletedAt()
Date when the deployment completed.
|
java.lang.String |
getCreatedAt()
Date when the deployment was created.
|
java.lang.String |
getCustomJson()
A string that contains user-defined custom JSON.
|
java.lang.String |
getDeploymentId()
The deployment ID.
|
java.lang.Integer |
getDuration()
The deployment duration.
|
java.lang.String |
getIamUserArn()
The user's IAM ARN.
|
java.util.List<java.lang.String> |
getInstanceIds()
The IDs of the target instances.
|
java.lang.String |
getStackId()
The stack ID.
|
java.lang.String |
getStatus()
The deployment status:
|
int |
hashCode() |
void |
setAppId(java.lang.String appId)
The app ID.
|
void |
setCommand(DeploymentCommand command) |
void |
setComment(java.lang.String comment)
A user-defined comment.
|
void |
setCompletedAt(java.lang.String completedAt)
Date when the deployment completed.
|
void |
setCreatedAt(java.lang.String createdAt)
Date when the deployment was created.
|
void |
setCustomJson(java.lang.String customJson)
A string that contains user-defined custom JSON.
|
void |
setDeploymentId(java.lang.String deploymentId)
The deployment ID.
|
void |
setDuration(java.lang.Integer duration)
The deployment duration.
|
void |
setIamUserArn(java.lang.String iamUserArn)
The user's IAM ARN.
|
void |
setInstanceIds(java.util.Collection<java.lang.String> instanceIds)
The IDs of the target instances.
|
void |
setStackId(java.lang.String stackId)
The stack ID.
|
void |
setStatus(java.lang.String status)
The deployment status:
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Deployment |
withAppId(java.lang.String appId)
The app ID.
|
Deployment |
withCommand(DeploymentCommand command) |
Deployment |
withComment(java.lang.String comment)
A user-defined comment.
|
Deployment |
withCompletedAt(java.lang.String completedAt)
Date when the deployment completed.
|
Deployment |
withCreatedAt(java.lang.String createdAt)
Date when the deployment was created.
|
Deployment |
withCustomJson(java.lang.String customJson)
A string that contains user-defined custom JSON.
|
Deployment |
withDeploymentId(java.lang.String deploymentId)
The deployment ID.
|
Deployment |
withDuration(java.lang.Integer duration)
The deployment duration.
|
Deployment |
withIamUserArn(java.lang.String iamUserArn)
The user's IAM ARN.
|
Deployment |
withInstanceIds(java.util.Collection<java.lang.String> instanceIds)
The IDs of the target instances.
|
Deployment |
withInstanceIds(java.lang.String... instanceIds)
The IDs of the target instances.
|
Deployment |
withStackId(java.lang.String stackId)
The stack ID.
|
Deployment |
withStatus(java.lang.String status)
The deployment status:
|
private java.lang.String deploymentId
The deployment ID.
private java.lang.String stackId
The stack ID.
private java.lang.String appId
The app ID.
private java.lang.String createdAt
Date when the deployment was created.
private java.lang.String completedAt
Date when the deployment completed.
private java.lang.Integer duration
The deployment duration.
private java.lang.String iamUserArn
The user's IAM ARN.
private java.lang.String comment
A user-defined comment.
private DeploymentCommand command
private java.lang.String status
The deployment status:
private java.lang.String 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.
private SdkInternalList<java.lang.String> instanceIds
The IDs of the target instances.
public void setDeploymentId(java.lang.String deploymentId)
The deployment ID.
deploymentId
- The deployment ID.public java.lang.String getDeploymentId()
The deployment ID.
public Deployment withDeploymentId(java.lang.String deploymentId)
The deployment ID.
deploymentId
- The deployment ID.public void setStackId(java.lang.String stackId)
The stack ID.
stackId
- The stack ID.public java.lang.String getStackId()
The stack ID.
public Deployment withStackId(java.lang.String stackId)
The stack ID.
stackId
- The stack ID.public void setAppId(java.lang.String appId)
The app ID.
appId
- The app ID.public java.lang.String getAppId()
The app ID.
public Deployment withAppId(java.lang.String appId)
The app ID.
appId
- The app ID.public void setCreatedAt(java.lang.String createdAt)
Date when the deployment was created.
createdAt
- Date when the deployment was created.public java.lang.String getCreatedAt()
Date when the deployment was created.
public Deployment withCreatedAt(java.lang.String createdAt)
Date when the deployment was created.
createdAt
- Date when the deployment was created.public void setCompletedAt(java.lang.String completedAt)
Date when the deployment completed.
completedAt
- Date when the deployment completed.public java.lang.String getCompletedAt()
Date when the deployment completed.
public Deployment withCompletedAt(java.lang.String completedAt)
Date when the deployment completed.
completedAt
- Date when the deployment completed.public void setDuration(java.lang.Integer duration)
The deployment duration.
duration
- The deployment duration.public java.lang.Integer getDuration()
The deployment duration.
public Deployment withDuration(java.lang.Integer duration)
The deployment duration.
duration
- The deployment duration.public void setIamUserArn(java.lang.String iamUserArn)
The user's IAM ARN.
iamUserArn
- The user's IAM ARN.public java.lang.String getIamUserArn()
The user's IAM ARN.
public Deployment withIamUserArn(java.lang.String iamUserArn)
The user's IAM ARN.
iamUserArn
- The user's IAM ARN.public void setComment(java.lang.String comment)
A user-defined comment.
comment
- A user-defined comment.public java.lang.String getComment()
A user-defined comment.
public Deployment withComment(java.lang.String comment)
A user-defined comment.
comment
- A user-defined comment.public void setCommand(DeploymentCommand command)
command
- public DeploymentCommand getCommand()
public Deployment withCommand(DeploymentCommand command)
command
- public void setStatus(java.lang.String status)
The deployment status:
status
- The deployment status:
public java.lang.String getStatus()
The deployment status:
public Deployment withStatus(java.lang.String status)
The deployment status:
status
- The deployment status:
public void setCustomJson(java.lang.String 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.
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 java.lang.String getCustomJson()
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.
"{\"key1\": \"value1\", \"key2\": \"value2\",...}"
For more information on custom JSON, see Use Custom JSON to Modify the Stack Configuration Attributes.
public Deployment withCustomJson(java.lang.String 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.
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 java.util.List<java.lang.String> getInstanceIds()
The IDs of the target instances.
public void setInstanceIds(java.util.Collection<java.lang.String> instanceIds)
The IDs of the target instances.
instanceIds
- The IDs of the target instances.public Deployment withInstanceIds(java.lang.String... instanceIds)
The IDs of the target instances.
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.
instanceIds
- The IDs of the target instances.public Deployment withInstanceIds(java.util.Collection<java.lang.String> instanceIds)
The IDs of the target instances.
instanceIds
- The IDs of the target instances.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Deployment clone()
clone
in class java.lang.Object