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 Commandclone()booleanequals(Object obj)StringgetAcknowledgedAt()Date and time when the command was acknowledged.StringgetCommandId()The command ID.StringgetCompletedAt()Date when the command completed.StringgetCreatedAt()Date and time when the command was run.StringgetDeploymentId()The command deployment ID.IntegergetExitCode()The command exit code.StringgetInstanceId()The ID of the instance where the command was executed.StringgetLogUrl()The URL of the command log.StringgetStatus()The command status:StringgetType()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.voidsetLogUrl(String logUrl)The URL of the command log.voidsetStatus(String status)The command status:voidsetType(String type)The command type:StringtoString()Returns a string representation of this object; useful for testing and debugging.CommandwithAcknowledgedAt(String acknowledgedAt)Date and time when the command was acknowledged.CommandwithCommandId(String commandId)The command ID.CommandwithCompletedAt(String completedAt)Date when the command completed.CommandwithCreatedAt(String createdAt)Date and time when the command was run.CommandwithDeploymentId(String deploymentId)The command deployment ID.CommandwithExitCode(Integer exitCode)The command exit code.CommandwithInstanceId(String instanceId)The ID of the instance where the command was executed.CommandwithLogUrl(String logUrl)The URL of the command log.CommandwithStatus(String status)The command status:CommandwithType(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-