@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Deployment extends Object implements Serializable, Cloneable, StructuredPojo
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() |
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:
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAppId(String appId)
The app ID.
|
void |
setCommand(DeploymentCommand 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:
|
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) |
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:
|
public void setDeploymentId(String deploymentId)
The deployment ID.
deploymentId
- The deployment ID.public String getDeploymentId()
The deployment ID.
public Deployment withDeploymentId(String deploymentId)
The deployment ID.
deploymentId
- The deployment ID.public void setStackId(String stackId)
The stack ID.
stackId
- The stack ID.public String getStackId()
The stack ID.
public Deployment withStackId(String stackId)
The stack ID.
stackId
- The stack ID.public void setAppId(String appId)
The app ID.
appId
- The app ID.public String getAppId()
The app ID.
public Deployment withAppId(String appId)
The app ID.
appId
- The app ID.public void setCreatedAt(String createdAt)
Date when the deployment was created.
createdAt
- Date when the deployment was created.public String getCreatedAt()
Date when the deployment was created.
public Deployment withCreatedAt(String createdAt)
Date when the deployment was created.
createdAt
- Date when the deployment was created.public void setCompletedAt(String completedAt)
Date when the deployment completed.
completedAt
- Date when the deployment completed.public String getCompletedAt()
Date when the deployment completed.
public Deployment withCompletedAt(String completedAt)
Date when the deployment completed.
completedAt
- Date when the deployment completed.public void setDuration(Integer duration)
The deployment duration.
duration
- The deployment duration.public Integer getDuration()
The deployment duration.
public Deployment withDuration(Integer duration)
The deployment duration.
duration
- The deployment duration.public void setIamUserArn(String iamUserArn)
The user's IAM ARN.
iamUserArn
- The user's IAM ARN.public String getIamUserArn()
The user's IAM ARN.
public Deployment withIamUserArn(String iamUserArn)
The user's IAM ARN.
iamUserArn
- The user's IAM ARN.public void setComment(String comment)
A user-defined comment.
comment
- A user-defined comment.public String getComment()
A user-defined comment.
public Deployment withComment(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(String status)
The deployment status:
running
successful
failed
status
- The deployment status:
running
successful
failed
public String getStatus()
The deployment status:
running
successful
failed
running
successful
failed
public Deployment withStatus(String status)
The deployment status:
running
successful
failed
status
- The deployment status:
running
successful
failed
public void setCustomJson(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:
"{\"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:
"{\"key1\": \"value1\", \"key2\": \"value2\",...}"
For more information on custom JSON, see Use Custom JSON to Modify the Stack Configuration Attributes.
public 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:
"{\"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(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:
"{\"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:
"{\"key1\": \"value1\", \"key2\": \"value2\",...}"
For more information on custom JSON, see Use Custom JSON to Modify the Stack Configuration Attributes.
public List<String> getInstanceIds()
The IDs of the target instances.
public void setInstanceIds(Collection<String> instanceIds)
The IDs of the target instances.
instanceIds
- The IDs of the target instances.public Deployment withInstanceIds(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(Collection<String> instanceIds)
The IDs of the target instances.
instanceIds
- The IDs of the target instances.public String toString()
toString
in class Object
Object.toString()
public Deployment clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.