Class ListRulesResult

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

public class ListRulesResult extends Object implements Serializable, Cloneable

The result of the ListRules operation.

See Also:
  • Constructor Details

    • ListRulesResult

      public ListRulesResult()
  • Method Details

    • getRules

      public List<Rule> getRules()

      List of rules matching the specified criteria.

      Returns:
      List of rules matching the specified criteria.
    • setRules

      public void setRules(Collection<Rule> rules)

      List of rules matching the specified criteria.

      Parameters:
      rules - List of rules matching the specified criteria.
    • withRules

      public ListRulesResult withRules(Rule... rules)

      List of rules matching the specified criteria.

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

      Parameters:
      rules - List of rules matching the specified criteria.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withRules

      public ListRulesResult withRules(Collection<Rule> rules)

      List of rules matching the specified criteria.

      Parameters:
      rules - List of rules matching the specified criteria.
      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 ListRulesResult 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 ListRulesResult clone()
      Overrides:
      clone in class Object