Class ListTargetsByRuleResult

java.lang.Object
com.amazonaws.services.cloudwatchevents.model.ListTargetsByRuleResult
All Implemented Interfaces:
Serializable, Cloneable

public class ListTargetsByRuleResult extends Object implements Serializable, Cloneable

The result of the ListTargetsByRule operation.

See Also:
  • Constructor Details

    • ListTargetsByRuleResult

      public ListTargetsByRuleResult()
  • Method Details

    • getTargets

      public List<Target> getTargets()

      Lists the targets assigned to the rule.

      Returns:
      Lists the targets assigned to the rule.
    • setTargets

      public void setTargets(Collection<Target> targets)

      Lists the targets assigned to the rule.

      Parameters:
      targets - Lists the targets assigned to the rule.
    • withTargets

      public ListTargetsByRuleResult withTargets(Target... targets)

      Lists the targets assigned to the rule.

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

      Parameters:
      targets - Lists the targets assigned to the rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withTargets

      public ListTargetsByRuleResult withTargets(Collection<Target> targets)

      Lists the targets assigned to the rule.

      Parameters:
      targets - Lists the targets assigned to the rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setNextToken

      public void setNextToken(String nextToken)

      Indicates that there are additional results to retrieve.

      Parameters:
      nextToken - Indicates that there are additional results to retrieve.
    • getNextToken

      public String getNextToken()

      Indicates that there are additional results to retrieve.

      Returns:
      Indicates that there are additional results to retrieve.
    • withNextToken

      public ListTargetsByRuleResult withNextToken(String nextToken)

      Indicates that there are additional results to retrieve.

      Parameters:
      nextToken - Indicates that there are additional results to retrieve.
      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 ListTargetsByRuleResult clone()
      Overrides:
      clone in class Object