@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListMonitorsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
| Constructor and Description |
|---|
ListMonitorsResult() |
| Modifier and Type | Method and Description |
|---|---|
ListMonitorsResult |
clone() |
boolean |
equals(Object obj) |
List<Monitor> |
getMonitors()
A list of monitors.
|
String |
getNextToken()
The token for the next set of results.
|
int |
hashCode() |
void |
setMonitors(Collection<Monitor> monitors)
A list of monitors.
|
void |
setNextToken(String nextToken)
The token for the next set of results.
|
String |
toString()
Returns a string representation of this object.
|
ListMonitorsResult |
withMonitors(Collection<Monitor> monitors)
A list of monitors.
|
ListMonitorsResult |
withMonitors(Monitor... monitors)
A list of monitors.
|
ListMonitorsResult |
withNextToken(String nextToken)
The token for the next set of results.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadatapublic void setMonitors(Collection<Monitor> monitors)
A list of monitors.
monitors - A list of monitors.public ListMonitorsResult withMonitors(Monitor... monitors)
A list of monitors.
NOTE: This method appends the values to the existing list (if any). Use
setMonitors(java.util.Collection) or withMonitors(java.util.Collection) if you want to override
the existing values.
monitors - A list of monitors.public ListMonitorsResult withMonitors(Collection<Monitor> monitors)
A list of monitors.
monitors - A list of monitors.public void setNextToken(String nextToken)
The token for the next set of results. You receive this token from a previous call.
nextToken - The token for the next set of results. You receive this token from a previous call.public String getNextToken()
The token for the next set of results. You receive this token from a previous call.
public ListMonitorsResult withNextToken(String nextToken)
The token for the next set of results. You receive this token from a previous call.
nextToken - The token for the next set of results. You receive this token from a previous call.public String toString()
toString in class ObjectObject.toString()public ListMonitorsResult clone()