Class Command

    • Constructor Detail

      • Command

        public Command()
    • 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 class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object