@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListTargetsByRuleResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListTargetsByRuleResult() |
Modifier and Type | Method and Description |
---|---|
ListTargetsByRuleResult |
clone() |
boolean |
equals(Object obj) |
String |
getNextToken()
Indicates whether there are additional results to retrieve.
|
List<Target> |
getTargets()
The targets assigned to the rule.
|
int |
hashCode() |
void |
setNextToken(String nextToken)
Indicates whether there are additional results to retrieve.
|
void |
setTargets(Collection<Target> targets)
The targets assigned to the rule.
|
String |
toString()
Returns a string representation of this object.
|
ListTargetsByRuleResult |
withNextToken(String nextToken)
Indicates whether there are additional results to retrieve.
|
ListTargetsByRuleResult |
withTargets(Collection<Target> targets)
The targets assigned to the rule.
|
ListTargetsByRuleResult |
withTargets(Target... targets)
The targets assigned to the rule.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<Target> getTargets()
The targets assigned to the rule.
public void setTargets(Collection<Target> targets)
The targets assigned to the rule.
targets
- The targets assigned to the rule.public ListTargetsByRuleResult withTargets(Target... targets)
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
- The targets assigned to the rule.public ListTargetsByRuleResult withTargets(Collection<Target> targets)
The targets assigned to the rule.
targets
- The targets assigned to the rule.public void setNextToken(String nextToken)
Indicates whether there are additional results to retrieve. If there are no more results, the value is null.
nextToken
- Indicates whether there are additional results to retrieve. If there are no more results, the value is
null.public String getNextToken()
Indicates whether there are additional results to retrieve. If there are no more results, the value is null.
public ListTargetsByRuleResult withNextToken(String nextToken)
Indicates whether there are additional results to retrieve. If there are no more results, the value is null.
nextToken
- Indicates whether there are additional results to retrieve. If there are no more results, the value is
null.public String toString()
toString
in class Object
Object.toString()
public ListTargetsByRuleResult clone()