public class DescribeDestinationsResult extends Object implements Serializable, Cloneable
Constructor and Description |
---|
DescribeDestinationsResult() |
Modifier and Type | Method and Description |
---|---|
DescribeDestinationsResult |
clone() |
boolean |
equals(Object obj) |
List<Destination> |
getDestinations()
Returns the value of the Destinations property for this object.
|
String |
getNextToken()
A string token used for pagination that points to the next page of
results.
|
int |
hashCode() |
void |
setDestinations(Collection<Destination> destinations)
Sets the value of the Destinations property for this object.
|
void |
setNextToken(String nextToken)
A string token used for pagination that points to the next page of
results.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeDestinationsResult |
withDestinations(Collection<Destination> destinations)
Sets the value of the Destinations property for this object.
|
DescribeDestinationsResult |
withDestinations(Destination... destinations)
Sets the value of the Destinations property for this object.
|
DescribeDestinationsResult |
withNextToken(String nextToken)
A string token used for pagination that points to the next page of
results.
|
public List<Destination> getDestinations()
public void setDestinations(Collection<Destination> destinations)
destinations
- The new value for the Destinations property for this object.public DescribeDestinationsResult withDestinations(Destination... destinations)
NOTE: This method appends the values to the existing list (if
any). Use setDestinations(java.util.Collection)
or withDestinations(java.util.Collection)
if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
destinations
- The new value for the Destinations property for this object.public DescribeDestinationsResult withDestinations(Collection<Destination> destinations)
Returns a reference to this object so that method calls can be chained together.
destinations
- The new value for the Destinations property for this object.public String getNextToken()
Constraints:
Length: 1 -
public void setNextToken(String nextToken)
Constraints:
Length: 1 -
nextToken
- A string token used for pagination that points to the next page of
results. It must be a value obtained from the response of the previous
request. The token expires after 24 hours.public DescribeDestinationsResult withNextToken(String nextToken)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
nextToken
- A string token used for pagination that points to the next page of
results. It must be a value obtained from the response of the previous
request. The token expires after 24 hours.public String toString()
toString
in class Object
Object.toString()
public DescribeDestinationsResult clone()
Copyright © 2015. All rights reserved.