public class ListTargetsByRuleResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
The result of the ListTargetsByRule operation.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
nextToken
Indicates that there are additional results to retrieve.
|
private java.util.List<Target> |
targets
Lists the targets assigned to the rule.
|
Constructor and Description |
---|
ListTargetsByRuleResult() |
Modifier and Type | Method and Description |
---|---|
ListTargetsByRuleResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getNextToken()
Indicates that there are additional results to retrieve.
|
java.util.List<Target> |
getTargets()
Lists the targets assigned to the rule.
|
int |
hashCode() |
void |
setNextToken(java.lang.String nextToken)
Indicates that there are additional results to retrieve.
|
void |
setTargets(java.util.Collection<Target> targets)
Lists the targets assigned to the rule.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ListTargetsByRuleResult |
withNextToken(java.lang.String nextToken)
Indicates that there are additional results to retrieve.
|
ListTargetsByRuleResult |
withTargets(java.util.Collection<Target> targets)
Lists the targets assigned to the rule.
|
ListTargetsByRuleResult |
withTargets(Target... targets)
Lists the targets assigned to the rule.
|
private java.util.List<Target> targets
Lists the targets assigned to the rule.
private java.lang.String nextToken
Indicates that there are additional results to retrieve.
public java.util.List<Target> getTargets()
Lists the targets assigned to the rule.
public void setTargets(java.util.Collection<Target> targets)
Lists the targets assigned to the rule.
targets
- Lists the targets assigned to the rule.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.
targets
- Lists the targets assigned to the rule.public ListTargetsByRuleResult withTargets(java.util.Collection<Target> targets)
Lists the targets assigned to the rule.
targets
- Lists the targets assigned to the rule.public void setNextToken(java.lang.String nextToken)
Indicates that there are additional results to retrieve.
nextToken
- Indicates that there are additional results to retrieve.public java.lang.String getNextToken()
Indicates that there are additional results to retrieve.
public ListTargetsByRuleResult withNextToken(java.lang.String nextToken)
Indicates that there are additional results to retrieve.
nextToken
- Indicates that there are additional results to retrieve.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ListTargetsByRuleResult clone()
clone
in class java.lang.Object