public class Command
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a command.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
acknowledgedAt
Date and time when the command was acknowledged.
|
private java.lang.String |
commandId
The command ID.
|
private java.lang.String |
completedAt
Date when the command completed.
|
private java.lang.String |
createdAt
Date and time when the command was run.
|
private java.lang.String |
deploymentId
The command deployment ID.
|
private java.lang.Integer |
exitCode
The command exit code.
|
private java.lang.String |
instanceId
The ID of the instance where the command was executed.
|
private java.lang.String |
logUrl
The URL of the command log.
|
private java.lang.String |
status
The command status:
|
private java.lang.String |
type
The command type:
|
Constructor and Description |
---|
Command() |
Modifier and Type | Method and Description |
---|---|
Command |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAcknowledgedAt()
Date and time when the command was acknowledged.
|
java.lang.String |
getCommandId()
The command ID.
|
java.lang.String |
getCompletedAt()
Date when the command completed.
|
java.lang.String |
getCreatedAt()
Date and time when the command was run.
|
java.lang.String |
getDeploymentId()
The command deployment ID.
|
java.lang.Integer |
getExitCode()
The command exit code.
|
java.lang.String |
getInstanceId()
The ID of the instance where the command was executed.
|
java.lang.String |
getLogUrl()
The URL of the command log.
|
java.lang.String |
getStatus()
The command status:
|
java.lang.String |
getType()
The command type:
|
int |
hashCode() |
void |
setAcknowledgedAt(java.lang.String acknowledgedAt)
Date and time when the command was acknowledged.
|
void |
setCommandId(java.lang.String commandId)
The command ID.
|
void |
setCompletedAt(java.lang.String completedAt)
Date when the command completed.
|
void |
setCreatedAt(java.lang.String createdAt)
Date and time when the command was run.
|
void |
setDeploymentId(java.lang.String deploymentId)
The command deployment ID.
|
void |
setExitCode(java.lang.Integer exitCode)
The command exit code.
|
void |
setInstanceId(java.lang.String instanceId)
The ID of the instance where the command was executed.
|
void |
setLogUrl(java.lang.String logUrl)
The URL of the command log.
|
void |
setStatus(java.lang.String status)
The command status:
|
void |
setType(java.lang.String type)
The command type:
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Command |
withAcknowledgedAt(java.lang.String acknowledgedAt)
Date and time when the command was acknowledged.
|
Command |
withCommandId(java.lang.String commandId)
The command ID.
|
Command |
withCompletedAt(java.lang.String completedAt)
Date when the command completed.
|
Command |
withCreatedAt(java.lang.String createdAt)
Date and time when the command was run.
|
Command |
withDeploymentId(java.lang.String deploymentId)
The command deployment ID.
|
Command |
withExitCode(java.lang.Integer exitCode)
The command exit code.
|
Command |
withInstanceId(java.lang.String instanceId)
The ID of the instance where the command was executed.
|
Command |
withLogUrl(java.lang.String logUrl)
The URL of the command log.
|
Command |
withStatus(java.lang.String status)
The command status:
|
Command |
withType(java.lang.String type)
The command type:
|
private java.lang.String commandId
The command ID.
private java.lang.String instanceId
The ID of the instance where the command was executed.
private java.lang.String deploymentId
The command deployment ID.
private java.lang.String createdAt
Date and time when the command was run.
private java.lang.String acknowledgedAt
Date and time when the command was acknowledged.
private java.lang.String completedAt
Date when the command completed.
private java.lang.String status
The command status:
private java.lang.Integer exitCode
The command exit code.
private java.lang.String logUrl
The URL of the command log.
private java.lang.String type
The command type:
deploy
rollback
start
stop
restart
undeploy
update_dependencies
install_dependencies
update_custom_cookbooks
execute_recipes
public void setCommandId(java.lang.String commandId)
The command ID.
commandId
- The command ID.public java.lang.String getCommandId()
The command ID.
public Command withCommandId(java.lang.String commandId)
The command ID.
commandId
- The command ID.public void setInstanceId(java.lang.String instanceId)
The ID of the instance where the command was executed.
instanceId
- The ID of the instance where the command was executed.public java.lang.String getInstanceId()
The ID of the instance where the command was executed.
public Command withInstanceId(java.lang.String instanceId)
The ID of the instance where the command was executed.
instanceId
- The ID of the instance where the command was executed.public void setDeploymentId(java.lang.String deploymentId)
The command deployment ID.
deploymentId
- The command deployment ID.public java.lang.String getDeploymentId()
The command deployment ID.
public Command withDeploymentId(java.lang.String deploymentId)
The command deployment ID.
deploymentId
- The command deployment ID.public void setCreatedAt(java.lang.String createdAt)
Date and time when the command was run.
createdAt
- Date and time when the command was run.public java.lang.String getCreatedAt()
Date and time when the command was run.
public Command withCreatedAt(java.lang.String createdAt)
Date and time when the command was run.
createdAt
- Date and time when the command was run.public void setAcknowledgedAt(java.lang.String acknowledgedAt)
Date and time when the command was acknowledged.
acknowledgedAt
- Date and time when the command was acknowledged.public java.lang.String getAcknowledgedAt()
Date and time when the command was acknowledged.
public Command withAcknowledgedAt(java.lang.String acknowledgedAt)
Date and time when the command was acknowledged.
acknowledgedAt
- Date and time when the command was acknowledged.public void setCompletedAt(java.lang.String completedAt)
Date when the command completed.
completedAt
- Date when the command completed.public java.lang.String getCompletedAt()
Date when the command completed.
public Command withCompletedAt(java.lang.String completedAt)
Date when the command completed.
completedAt
- Date when the command completed.public void setStatus(java.lang.String status)
The command status:
status
- The command status:
public java.lang.String getStatus()
The command status:
public Command withStatus(java.lang.String status)
The command status:
status
- The command status:
public void setExitCode(java.lang.Integer exitCode)
The command exit code.
exitCode
- The command exit code.public java.lang.Integer getExitCode()
The command exit code.
public Command withExitCode(java.lang.Integer exitCode)
The command exit code.
exitCode
- The command exit code.public void setLogUrl(java.lang.String logUrl)
The URL of the command log.
logUrl
- The URL of the command log.public java.lang.String getLogUrl()
The URL of the command log.
public Command withLogUrl(java.lang.String logUrl)
The URL of the command log.
logUrl
- The URL of the command log.public void setType(java.lang.String type)
The command type:
deploy
rollback
start
stop
restart
undeploy
update_dependencies
install_dependencies
update_custom_cookbooks
execute_recipes
type
- The command type:
deploy
rollback
start
stop
restart
undeploy
update_dependencies
install_dependencies
update_custom_cookbooks
execute_recipes
public java.lang.String getType()
The command type:
deploy
rollback
start
stop
restart
undeploy
update_dependencies
install_dependencies
update_custom_cookbooks
execute_recipes
deploy
rollback
start
stop
restart
undeploy
update_dependencies
install_dependencies
update_custom_cookbooks
execute_recipes
public Command withType(java.lang.String type)
The command type:
deploy
rollback
start
stop
restart
undeploy
update_dependencies
install_dependencies
update_custom_cookbooks
execute_recipes
type
- The command type:
deploy
rollback
start
stop
restart
undeploy
update_dependencies
install_dependencies
update_custom_cookbooks
execute_recipes
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 Command clone()
clone
in class java.lang.Object