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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ListTargetsByRuleResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListTargetsByRuleResult
clone()
boolean
equals(Object obj)
String
getNextToken()
Indicates that there are additional results to retrieve.List<Target>
getTargets()
Lists the targets assigned to the rule.int
hashCode()
void
setNextToken(String nextToken)
Indicates that there are additional results to retrieve.void
setTargets(Collection<Target> targets)
Lists the targets assigned to the rule.String
toString()
Returns a string representation of this object; useful for testing and debugging.ListTargetsByRuleResult
withNextToken(String nextToken)
Indicates that there are additional results to retrieve.ListTargetsByRuleResult
withTargets(Target... targets)
Lists the targets assigned to the rule.ListTargetsByRuleResult
withTargets(Collection<Target> targets)
Lists the targets assigned to the rule.
-
-
-
Method Detail
-
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)
orwithTargets(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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ListTargetsByRuleResult clone()
-
-