Class Command
- java.lang.Object
-
- com.amazonaws.services.opsworks.model.Command
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class Command extends Object implements Serializable, Cloneable
Describes a command.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Command()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Command
clone()
boolean
equals(Object obj)
String
getAcknowledgedAt()
Date and time when the command was acknowledged.String
getCommandId()
The command ID.String
getCompletedAt()
Date when the command completed.String
getCreatedAt()
Date and time when the command was run.String
getDeploymentId()
The command deployment ID.Integer
getExitCode()
The command exit code.String
getInstanceId()
The ID of the instance where the command was executed.String
getLogUrl()
The URL of the command log.String
getStatus()
The command status:String
getType()
The command type:int
hashCode()
void
setAcknowledgedAt(String acknowledgedAt)
Date and time when the command was acknowledged.void
setCommandId(String commandId)
The command ID.void
setCompletedAt(String completedAt)
Date when the command completed.void
setCreatedAt(String createdAt)
Date and time when the command was run.void
setDeploymentId(String deploymentId)
The command deployment ID.void
setExitCode(Integer exitCode)
The command exit code.void
setInstanceId(String instanceId)
The ID of the instance where the command was executed.void
setLogUrl(String logUrl)
The URL of the command log.void
setStatus(String status)
The command status:void
setType(String type)
The command type:String
toString()
Returns a string representation of this object; useful for testing and debugging.Command
withAcknowledgedAt(String acknowledgedAt)
Date and time when the command was acknowledged.Command
withCommandId(String commandId)
The command ID.Command
withCompletedAt(String completedAt)
Date when the command completed.Command
withCreatedAt(String createdAt)
Date and time when the command was run.Command
withDeploymentId(String deploymentId)
The command deployment ID.Command
withExitCode(Integer exitCode)
The command exit code.Command
withInstanceId(String instanceId)
The ID of the instance where the command was executed.Command
withLogUrl(String logUrl)
The URL of the command log.Command
withStatus(String status)
The command status:Command
withType(String type)
The command type:
-
-
-
Method Detail
-
setCommandId
public void setCommandId(String commandId)
The command ID.
- Parameters:
commandId
- The command ID.
-
getCommandId
public String getCommandId()
The command ID.
- Returns:
- The command ID.
-
withCommandId
public Command withCommandId(String commandId)
The command ID.
- Parameters:
commandId
- The command ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceId
public void setInstanceId(String instanceId)
The ID of the instance where the command was executed.
- Parameters:
instanceId
- The ID of the instance where the command was executed.
-
getInstanceId
public String getInstanceId()
The ID of the instance where the command was executed.
- Returns:
- The ID of the instance where the command was executed.
-
withInstanceId
public Command withInstanceId(String instanceId)
The ID of the instance where the command was executed.
- Parameters:
instanceId
- The ID of the instance where the command was executed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDeploymentId
public void setDeploymentId(String deploymentId)
The command deployment ID.
- Parameters:
deploymentId
- The command deployment ID.
-
getDeploymentId
public String getDeploymentId()
The command deployment ID.
- Returns:
- The command deployment ID.
-
withDeploymentId
public Command withDeploymentId(String deploymentId)
The command deployment ID.
- Parameters:
deploymentId
- The command deployment ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCreatedAt
public void setCreatedAt(String createdAt)
Date and time when the command was run.
- Parameters:
createdAt
- Date and time when the command was run.
-
getCreatedAt
public String getCreatedAt()
Date and time when the command was run.
- Returns:
- Date and time when the command was run.
-
withCreatedAt
public Command withCreatedAt(String createdAt)
Date and time when the command was run.
- Parameters:
createdAt
- Date and time when the command was run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAcknowledgedAt
public void setAcknowledgedAt(String acknowledgedAt)
Date and time when the command was acknowledged.
- Parameters:
acknowledgedAt
- Date and time when the command was acknowledged.
-
getAcknowledgedAt
public String getAcknowledgedAt()
Date and time when the command was acknowledged.
- Returns:
- Date and time when the command was acknowledged.
-
withAcknowledgedAt
public Command withAcknowledgedAt(String acknowledgedAt)
Date and time when the command was acknowledged.
- Parameters:
acknowledgedAt
- Date and time when the command was acknowledged.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCompletedAt
public void setCompletedAt(String completedAt)
Date when the command completed.
- Parameters:
completedAt
- Date when the command completed.
-
getCompletedAt
public String getCompletedAt()
Date when the command completed.
- Returns:
- Date when the command completed.
-
withCompletedAt
public Command withCompletedAt(String completedAt)
Date when the command completed.
- Parameters:
completedAt
- Date when the command completed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatus
public void setStatus(String status)
The command status:
- failed
- successful
- skipped
- pending
- Parameters:
status
- The command status:- failed
- successful
- skipped
- pending
-
getStatus
public String getStatus()
The command status:
- failed
- successful
- skipped
- pending
- Returns:
- The command status:
- failed
- successful
- skipped
- pending
-
withStatus
public Command withStatus(String status)
The command status:
- failed
- successful
- skipped
- pending
- Parameters:
status
- The command status:- failed
- successful
- skipped
- pending
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setExitCode
public void setExitCode(Integer exitCode)
The command exit code.
- Parameters:
exitCode
- The command exit code.
-
getExitCode
public Integer getExitCode()
The command exit code.
- Returns:
- The command exit code.
-
withExitCode
public Command withExitCode(Integer exitCode)
The command exit code.
- Parameters:
exitCode
- The command exit code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLogUrl
public void setLogUrl(String logUrl)
The URL of the command log.
- Parameters:
logUrl
- The URL of the command log.
-
getLogUrl
public String getLogUrl()
The URL of the command log.
- Returns:
- The URL of the command log.
-
withLogUrl
public Command withLogUrl(String logUrl)
The URL of the command log.
- Parameters:
logUrl
- The URL of the command log.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setType
public void setType(String type)
The command type:
-
deploy
-
rollback
-
start
-
stop
-
restart
-
undeploy
-
update_dependencies
-
install_dependencies
-
update_custom_cookbooks
-
execute_recipes
- Parameters:
type
- The command type:-
deploy
-
rollback
-
start
-
stop
-
restart
-
undeploy
-
update_dependencies
-
install_dependencies
-
update_custom_cookbooks
-
execute_recipes
-
-
-
getType
public String getType()
The command type:
-
deploy
-
rollback
-
start
-
stop
-
restart
-
undeploy
-
update_dependencies
-
install_dependencies
-
update_custom_cookbooks
-
execute_recipes
- Returns:
- The command type:
-
deploy
-
rollback
-
start
-
stop
-
restart
-
undeploy
-
update_dependencies
-
install_dependencies
-
update_custom_cookbooks
-
execute_recipes
-
-
-
withType
public Command withType(String type)
The command type:
-
deploy
-
rollback
-
start
-
stop
-
restart
-
undeploy
-
update_dependencies
-
install_dependencies
-
update_custom_cookbooks
-
execute_recipes
- Parameters:
type
- The command type:-
deploy
-
rollback
-
start
-
stop
-
restart
-
undeploy
-
update_dependencies
-
install_dependencies
-
update_custom_cookbooks
-
execute_recipes
-
- Returns:
- Returns a reference to this 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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-