Class CancelCommandRequest

java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.simplesystemsmanagement.model.CancelCommandRequest
All Implemented Interfaces:
ReadLimitInfo, Serializable, Cloneable

public class CancelCommandRequest extends AmazonWebServiceRequest implements Serializable, Cloneable

See Also:
  • Constructor Details

    • CancelCommandRequest

      public CancelCommandRequest()
  • Method Details

    • setCommandId

      public void setCommandId(String commandId)

      The ID of the command you want to cancel.

      Parameters:
      commandId - The ID of the command you want to cancel.
    • getCommandId

      public String getCommandId()

      The ID of the command you want to cancel.

      Returns:
      The ID of the command you want to cancel.
    • withCommandId

      public CancelCommandRequest withCommandId(String commandId)

      The ID of the command you want to cancel.

      Parameters:
      commandId - The ID of the command you want to cancel.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getInstanceIds

      public List<String> getInstanceIds()

      (Optional) A list of instance IDs on which you want to cancel the command. If not provided, the command is canceled on every instance on which it was requested.

      Returns:
      (Optional) A list of instance IDs on which you want to cancel the command. If not provided, the command is canceled on every instance on which it was requested.
    • setInstanceIds

      public void setInstanceIds(Collection<String> instanceIds)

      (Optional) A list of instance IDs on which you want to cancel the command. If not provided, the command is canceled on every instance on which it was requested.

      Parameters:
      instanceIds - (Optional) A list of instance IDs on which you want to cancel the command. If not provided, the command is canceled on every instance on which it was requested.
    • withInstanceIds

      public CancelCommandRequest withInstanceIds(String... instanceIds)

      (Optional) A list of instance IDs on which you want to cancel the command. If not provided, the command is canceled on every instance on which it was requested.

      NOTE: This method appends the values to the existing list (if any). Use setInstanceIds(java.util.Collection) or withInstanceIds(java.util.Collection) if you want to override the existing values.

      Parameters:
      instanceIds - (Optional) A list of instance IDs on which you want to cancel the command. If not provided, the command is canceled on every instance on which it was requested.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withInstanceIds

      public CancelCommandRequest withInstanceIds(Collection<String> instanceIds)

      (Optional) A list of instance IDs on which you want to cancel the command. If not provided, the command is canceled on every instance on which it was requested.

      Parameters:
      instanceIds - (Optional) A list of instance IDs on which you want to cancel the command. If not provided, the command is canceled on every instance on which it was requested.
      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:
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public CancelCommandRequest clone()
      Description copied from class: AmazonWebServiceRequest
      Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.
      Overrides:
      clone in class AmazonWebServiceRequest
      See Also: