@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListRelaysResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListRelaysResult() |
Modifier and Type | Method and Description |
---|---|
ListRelaysResult |
clone() |
boolean |
equals(Object obj) |
String |
getNextToken()
If NextToken is returned, there are more results available.
|
List<Relay> |
getRelays()
The list of returned relays.
|
int |
hashCode() |
void |
setNextToken(String nextToken)
If NextToken is returned, there are more results available.
|
void |
setRelays(Collection<Relay> relays)
The list of returned relays.
|
String |
toString()
Returns a string representation of this object.
|
ListRelaysResult |
withNextToken(String nextToken)
If NextToken is returned, there are more results available.
|
ListRelaysResult |
withRelays(Collection<Relay> relays)
The list of returned relays.
|
ListRelaysResult |
withRelays(Relay... relays)
The list of returned relays.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setNextToken(String nextToken)
If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.
nextToken
- If NextToken is returned, there are more results available. The value of NextToken is a unique pagination
token for each page. Make the call again using the returned token to retrieve the next page.public String getNextToken()
If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.
public ListRelaysResult withNextToken(String nextToken)
If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.
nextToken
- If NextToken is returned, there are more results available. The value of NextToken is a unique pagination
token for each page. Make the call again using the returned token to retrieve the next page.public List<Relay> getRelays()
The list of returned relays.
public void setRelays(Collection<Relay> relays)
The list of returned relays.
relays
- The list of returned relays.public ListRelaysResult withRelays(Relay... relays)
The list of returned relays.
NOTE: This method appends the values to the existing list (if any). Use
setRelays(java.util.Collection)
or withRelays(java.util.Collection)
if you want to override the
existing values.
relays
- The list of returned relays.public ListRelaysResult withRelays(Collection<Relay> relays)
The list of returned relays.
relays
- The list of returned relays.public String toString()
toString
in class Object
Object.toString()
public ListRelaysResult clone()