@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListSegmentsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListSegmentsResult() |
Modifier and Type | Method and Description |
---|---|
ListSegmentsResult |
clone() |
boolean |
equals(Object obj) |
String |
getNextToken()
The token to use in a subsequent
ListSegments operation to return the next set of results. |
List<Segment> |
getSegments()
An array of structures that contain information about the segments in this Region.
|
int |
hashCode() |
void |
setNextToken(String nextToken)
The token to use in a subsequent
ListSegments operation to return the next set of results. |
void |
setSegments(Collection<Segment> segments)
An array of structures that contain information about the segments in this Region.
|
String |
toString()
Returns a string representation of this object.
|
ListSegmentsResult |
withNextToken(String nextToken)
The token to use in a subsequent
ListSegments operation to return the next set of results. |
ListSegmentsResult |
withSegments(Collection<Segment> segments)
An array of structures that contain information about the segments in this Region.
|
ListSegmentsResult |
withSegments(Segment... segments)
An array of structures that contain information about the segments in this Region.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setNextToken(String nextToken)
The token to use in a subsequent ListSegments
operation to return the next set of results.
nextToken
- The token to use in a subsequent ListSegments
operation to return the next set of results.public String getNextToken()
The token to use in a subsequent ListSegments
operation to return the next set of results.
ListSegments
operation to return the next set of results.public ListSegmentsResult withNextToken(String nextToken)
The token to use in a subsequent ListSegments
operation to return the next set of results.
nextToken
- The token to use in a subsequent ListSegments
operation to return the next set of results.public List<Segment> getSegments()
An array of structures that contain information about the segments in this Region.
public void setSegments(Collection<Segment> segments)
An array of structures that contain information about the segments in this Region.
segments
- An array of structures that contain information about the segments in this Region.public ListSegmentsResult withSegments(Segment... segments)
An array of structures that contain information about the segments in this Region.
NOTE: This method appends the values to the existing list (if any). Use
setSegments(java.util.Collection)
or withSegments(java.util.Collection)
if you want to override
the existing values.
segments
- An array of structures that contain information about the segments in this Region.public ListSegmentsResult withSegments(Collection<Segment> segments)
An array of structures that contain information about the segments in this Region.
segments
- An array of structures that contain information about the segments in this Region.public String toString()
toString
in class Object
Object.toString()
public ListSegmentsResult clone()