@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListAvailableResourceMetricsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListAvailableResourceMetricsResult() |
Modifier and Type | Method and Description |
---|---|
ListAvailableResourceMetricsResult |
clone() |
boolean |
equals(Object obj) |
List<ResponseResourceMetric> |
getMetrics()
An array of metrics available to query.
|
String |
getNextToken()
A pagination token that indicates the response didn’t return all available records because
MaxRecords was specified in the previous request. |
int |
hashCode() |
void |
setMetrics(Collection<ResponseResourceMetric> metrics)
An array of metrics available to query.
|
void |
setNextToken(String nextToken)
A pagination token that indicates the response didn’t return all available records because
MaxRecords was specified in the previous request. |
String |
toString()
Returns a string representation of this object.
|
ListAvailableResourceMetricsResult |
withMetrics(Collection<ResponseResourceMetric> metrics)
An array of metrics available to query.
|
ListAvailableResourceMetricsResult |
withMetrics(ResponseResourceMetric... metrics)
An array of metrics available to query.
|
ListAvailableResourceMetricsResult |
withNextToken(String nextToken)
A pagination token that indicates the response didn’t return all available records because
MaxRecords was specified in the previous request. |
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<ResponseResourceMetric> getMetrics()
An array of metrics available to query. Each array element contains the full name, description, and unit of the metric.
public void setMetrics(Collection<ResponseResourceMetric> metrics)
An array of metrics available to query. Each array element contains the full name, description, and unit of the metric.
metrics
- An array of metrics available to query. Each array element contains the full name, description, and unit
of the metric.public ListAvailableResourceMetricsResult withMetrics(ResponseResourceMetric... metrics)
An array of metrics available to query. Each array element contains the full name, description, and unit of the metric.
NOTE: This method appends the values to the existing list (if any). Use
setMetrics(java.util.Collection)
or withMetrics(java.util.Collection)
if you want to override
the existing values.
metrics
- An array of metrics available to query. Each array element contains the full name, description, and unit
of the metric.public ListAvailableResourceMetricsResult withMetrics(Collection<ResponseResourceMetric> metrics)
An array of metrics available to query. Each array element contains the full name, description, and unit of the metric.
metrics
- An array of metrics available to query. Each array element contains the full name, description, and unit
of the metric.public void setNextToken(String nextToken)
A pagination token that indicates the response didn’t return all available records because
MaxRecords
was specified in the previous request. To get the remaining records, specify
NextToken
in a separate request with this value.
nextToken
- A pagination token that indicates the response didn’t return all available records because
MaxRecords
was specified in the previous request. To get the remaining records, specify
NextToken
in a separate request with this value.public String getNextToken()
A pagination token that indicates the response didn’t return all available records because
MaxRecords
was specified in the previous request. To get the remaining records, specify
NextToken
in a separate request with this value.
MaxRecords
was specified in the previous request. To get the remaining records, specify
NextToken
in a separate request with this value.public ListAvailableResourceMetricsResult withNextToken(String nextToken)
A pagination token that indicates the response didn’t return all available records because
MaxRecords
was specified in the previous request. To get the remaining records, specify
NextToken
in a separate request with this value.
nextToken
- A pagination token that indicates the response didn’t return all available records because
MaxRecords
was specified in the previous request. To get the remaining records, specify
NextToken
in a separate request with this value.public String toString()
toString
in class Object
Object.toString()
public ListAvailableResourceMetricsResult clone()