@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListCustomMetricsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListCustomMetricsResult() |
Modifier and Type | Method and Description |
---|---|
ListCustomMetricsResult |
clone() |
boolean |
equals(Object obj) |
List<String> |
getMetricNames()
The name of the custom metric.
|
String |
getNextToken()
A token that can be used to retrieve the next set of results, or
null if there are no additional
results. |
int |
hashCode() |
void |
setMetricNames(Collection<String> metricNames)
The name of the custom metric.
|
void |
setNextToken(String nextToken)
A token that can be used to retrieve the next set of results, or
null if there are no additional
results. |
String |
toString()
Returns a string representation of this object.
|
ListCustomMetricsResult |
withMetricNames(Collection<String> metricNames)
The name of the custom metric.
|
ListCustomMetricsResult |
withMetricNames(String... metricNames)
The name of the custom metric.
|
ListCustomMetricsResult |
withNextToken(String nextToken)
A token that can be used to retrieve the next set of results, or
null if there are no additional
results. |
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<String> getMetricNames()
The name of the custom metric.
public void setMetricNames(Collection<String> metricNames)
The name of the custom metric.
metricNames
- The name of the custom metric.public ListCustomMetricsResult withMetricNames(String... metricNames)
The name of the custom metric.
NOTE: This method appends the values to the existing list (if any). Use
setMetricNames(java.util.Collection)
or withMetricNames(java.util.Collection)
if you want to
override the existing values.
metricNames
- The name of the custom metric.public ListCustomMetricsResult withMetricNames(Collection<String> metricNames)
The name of the custom metric.
metricNames
- The name of the custom metric.public void setNextToken(String nextToken)
A token that can be used to retrieve the next set of results, or null
if there are no additional
results.
nextToken
- A token that can be used to retrieve the next set of results, or null
if there are no
additional results.public String getNextToken()
A token that can be used to retrieve the next set of results, or null
if there are no additional
results.
null
if there are no
additional results.public ListCustomMetricsResult withNextToken(String nextToken)
A token that can be used to retrieve the next set of results, or null
if there are no additional
results.
nextToken
- A token that can be used to retrieve the next set of results, or null
if there are no
additional results.public String toString()
toString
in class Object
Object.toString()
public ListCustomMetricsResult clone()