Class CancelCommandRequest

    • Constructor Detail

      • CancelCommandRequest

        public CancelCommandRequest()
    • Method Detail

      • 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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object