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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ListRulesResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListRulesResult
clone()
boolean
equals(Object obj)
String
getNextToken()
Indicates that there are additional results to retrieve.List<Rule>
getRules()
List of rules matching the specified criteria.int
hashCode()
void
setNextToken(String nextToken)
Indicates that there are additional results to retrieve.void
setRules(Collection<Rule> rules)
List of rules matching the specified criteria.String
toString()
Returns a string representation of this object; useful for testing and debugging.ListRulesResult
withNextToken(String nextToken)
Indicates that there are additional results to retrieve.ListRulesResult
withRules(Rule... rules)
List of rules matching the specified criteria.ListRulesResult
withRules(Collection<Rule> rules)
List of rules matching the specified criteria.
-
-
-
Method Detail
-
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)
orwithRules(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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ListRulesResult clone()
-
-