Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.opsworks.model
Class Command

java.lang.Object
  extended by com.amazonaws.services.opsworks.model.Command
All Implemented Interfaces:
Serializable

public class Command
extends Object
implements Serializable

Describes a command.

See Also:
Serialized Form

Constructor Summary
Command()
           
 
Method Summary
 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: failed successful skipped pending
 String getType()
          The command type: deploy rollback start stop restart undeploy update_dependencies install_dependencies update_custom_cookbooks execute_recipes
 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: failed successful skipped pending
 void setType(String type)
          The command type: deploy rollback start stop restart undeploy update_dependencies install_dependencies update_custom_cookbooks execute_recipes
 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: failed successful skipped pending
 Command withType(String type)
          The command type: deploy rollback start stop restart undeploy update_dependencies install_dependencies update_custom_cookbooks execute_recipes
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Command

public Command()
Method Detail

getCommandId

public String getCommandId()
The command ID.

Returns:
The command ID.

setCommandId

public void setCommandId(String commandId)
The command ID.

Parameters:
commandId - The command ID.

withCommandId

public Command withCommandId(String commandId)
The command ID.

Returns a reference to this object so that method calls can be chained together.

Parameters:
commandId - The command ID.
Returns:
A reference to this updated object so that method calls can be chained together.

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.

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.

withInstanceId

public Command withInstanceId(String instanceId)
The ID of the instance where the command was executed.

Returns a reference to this object so that method calls can be chained together.

Parameters:
instanceId - The ID of the instance where the command was executed.
Returns:
A reference to this updated object so that method calls can be chained together.

getDeploymentId

public String getDeploymentId()
The command deployment ID.

Returns:
The command deployment ID.

setDeploymentId

public void setDeploymentId(String deploymentId)
The command deployment ID.

Parameters:
deploymentId - The command deployment ID.

withDeploymentId

public Command withDeploymentId(String deploymentId)
The command deployment ID.

Returns a reference to this object so that method calls can be chained together.

Parameters:
deploymentId - The command deployment ID.
Returns:
A reference to this updated object so that method calls can be chained together.

getCreatedAt

public String getCreatedAt()
Date and time when the command was run.

Returns:
Date and time when the command was run.

setCreatedAt

public void setCreatedAt(String createdAt)
Date and time when the command was run.

Parameters:
createdAt - Date and time when the command was run.

withCreatedAt

public Command withCreatedAt(String createdAt)
Date and time when the command was run.

Returns a reference to this object so that method calls can be chained together.

Parameters:
createdAt - Date and time when the command was run.
Returns:
A reference to this updated object so that method calls can be chained together.

getAcknowledgedAt

public String getAcknowledgedAt()
Date and time when the command was acknowledged.

Returns:
Date and time when the command was acknowledged.

setAcknowledgedAt

public void setAcknowledgedAt(String acknowledgedAt)
Date and time when the command was acknowledged.

Parameters:
acknowledgedAt - Date and time when the command was acknowledged.

withAcknowledgedAt

public Command withAcknowledgedAt(String acknowledgedAt)
Date and time when the command was acknowledged.

Returns a reference to this object so that method calls can be chained together.

Parameters:
acknowledgedAt - Date and time when the command was acknowledged.
Returns:
A reference to this updated object so that method calls can be chained together.

getCompletedAt

public String getCompletedAt()
Date when the command completed.

Returns:
Date when the command completed.

setCompletedAt

public void setCompletedAt(String completedAt)
Date when the command completed.

Parameters:
completedAt - Date when the command completed.

withCompletedAt

public Command withCompletedAt(String completedAt)
Date when the command completed.

Returns a reference to this object so that method calls can be chained together.

Parameters:
completedAt - Date when the command completed.
Returns:
A reference to this updated object so that method calls can be chained together.

getStatus

public String getStatus()
The command status:

Returns:
The command status:
  • failed
  • successful
  • skipped
  • pending

setStatus

public void setStatus(String status)
The command status:

Parameters:
status - The command status:
  • failed
  • successful
  • skipped
  • pending

withStatus

public Command withStatus(String status)
The command status:

Returns a reference to this object so that method calls can be chained together.

Parameters:
status - The command status:
  • failed
  • successful
  • skipped
  • pending
Returns:
A reference to this updated object so that method calls can be chained together.

getExitCode

public Integer getExitCode()
The command exit code.

Returns:
The command exit code.

setExitCode

public void setExitCode(Integer exitCode)
The command exit code.

Parameters:
exitCode - The command exit code.

withExitCode

public Command withExitCode(Integer exitCode)
The command exit code.

Returns a reference to this object so that method calls can be chained together.

Parameters:
exitCode - The command exit code.
Returns:
A reference to this updated object so that method calls can be chained together.

getLogUrl

public String getLogUrl()
The URL of the command log.

Returns:
The URL of the command log.

setLogUrl

public void setLogUrl(String logUrl)
The URL of the command log.

Parameters:
logUrl - The URL of the command log.

withLogUrl

public Command withLogUrl(String logUrl)
The URL of the command log.

Returns a reference to this object so that method calls can be chained together.

Parameters:
logUrl - The URL of the command log.
Returns:
A reference to this updated object so that method calls can be chained together.

getType

public String getType()
The command type:

Returns:
The command type:
  • deploy
  • rollback
  • start
  • stop
  • restart
  • undeploy
  • update_dependencies
  • install_dependencies
  • update_custom_cookbooks
  • execute_recipes

setType

public void setType(String type)
The command type:

Parameters:
type - 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:

Returns a reference to this object so that method calls can be chained together.

Parameters:
type - The command type:
  • deploy
  • rollback
  • start
  • stop
  • restart
  • undeploy
  • update_dependencies
  • install_dependencies
  • update_custom_cookbooks
  • execute_recipes
Returns:
A reference to this updated 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 class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.