Class Command
java.lang.Object
com.amazonaws.services.opsworks.model.Command
- All Implemented Interfaces:
Serializable, Cloneable
Describes a command.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanDate and time when the command was acknowledged.The command ID.Date when the command completed.Date and time when the command was run.The command deployment ID.The command exit code.The ID of the instance where the command was executed.The URL of the command log.The command status:getType()The command type:inthashCode()voidsetAcknowledgedAt(String acknowledgedAt) Date and time when the command was acknowledged.voidsetCommandId(String commandId) The command ID.voidsetCompletedAt(String completedAt) Date when the command completed.voidsetCreatedAt(String createdAt) Date and time when the command was run.voidsetDeploymentId(String deploymentId) The command deployment ID.voidsetExitCode(Integer exitCode) The command exit code.voidsetInstanceId(String instanceId) The ID of the instance where the command was executed.voidThe URL of the command log.voidThe command status:voidThe command type:toString()Returns a string representation of this object; useful for testing and debugging.withAcknowledgedAt(String acknowledgedAt) Date and time when the command was acknowledged.withCommandId(String commandId) The command ID.withCompletedAt(String completedAt) Date when the command completed.withCreatedAt(String createdAt) Date and time when the command was run.withDeploymentId(String deploymentId) The command deployment ID.withExitCode(Integer exitCode) The command exit code.withInstanceId(String instanceId) The ID of the instance where the command was executed.withLogUrl(String logUrl) The URL of the command log.withStatus(String status) The command status:The command type:
-
Constructor Details
-
Command
public Command()
-
-
Method Details
-
setCommandId
-
getCommandId
-
withCommandId
-
setInstanceId
The ID of the instance where the command was executed.
- Parameters:
instanceId- The ID of the instance where the command was executed.
-
getInstanceId
The ID of the instance where the command was executed.
- Returns:
- The ID of the instance where the command was executed.
-
withInstanceId
-
setDeploymentId
The command deployment ID.
- Parameters:
deploymentId- The command deployment ID.
-
getDeploymentId
-
withDeploymentId
-
setCreatedAt
Date and time when the command was run.
- Parameters:
createdAt- Date and time when the command was run.
-
getCreatedAt
Date and time when the command was run.
- Returns:
- Date and time when the command was run.
-
withCreatedAt
-
setAcknowledgedAt
Date and time when the command was acknowledged.
- Parameters:
acknowledgedAt- Date and time when the command was acknowledged.
-
getAcknowledgedAt
Date and time when the command was acknowledged.
- Returns:
- Date and time when the command was acknowledged.
-
withAcknowledgedAt
-
setCompletedAt
Date when the command completed.
- Parameters:
completedAt- Date when the command completed.
-
getCompletedAt
Date when the command completed.
- Returns:
- Date when the command completed.
-
withCompletedAt
-
setStatus
The command status:
- failed
- successful
- skipped
- pending
- Parameters:
status- The command status:- failed
- successful
- skipped
- pending
-
getStatus
The command status:
- failed
- successful
- skipped
- pending
- Returns:
- The command status:
- failed
- successful
- skipped
- pending
-
withStatus
-
setExitCode
The command exit code.
- Parameters:
exitCode- The command exit code.
-
getExitCode
-
withExitCode
-
setLogUrl
The URL of the command log.
- Parameters:
logUrl- The URL of the command log.
-
getLogUrl
-
withLogUrl
-
setType
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
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
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
-
equals
-
hashCode
-
clone
-