@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListMetricsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListMetricsResult() |
Modifier and Type | Method and Description |
---|---|
ListMetricsResult |
clone() |
boolean |
equals(Object obj) |
List<Metric> |
getMetrics()
The metrics that match your request.
|
String |
getNextToken()
The token that marks the start of the next batch of returned results.
|
List<String> |
getOwningAccounts()
If you are using this operation in a monitoring account, this array contains the account IDs of the source
accounts where the metrics in the returned data are from.
|
int |
hashCode() |
void |
setMetrics(Collection<Metric> metrics)
The metrics that match your request.
|
void |
setNextToken(String nextToken)
The token that marks the start of the next batch of returned results.
|
void |
setOwningAccounts(Collection<String> owningAccounts)
If you are using this operation in a monitoring account, this array contains the account IDs of the source
accounts where the metrics in the returned data are from.
|
String |
toString()
Returns a string representation of this object.
|
ListMetricsResult |
withMetrics(Collection<Metric> metrics)
The metrics that match your request.
|
ListMetricsResult |
withMetrics(Metric... metrics)
The metrics that match your request.
|
ListMetricsResult |
withNextToken(String nextToken)
The token that marks the start of the next batch of returned results.
|
ListMetricsResult |
withOwningAccounts(Collection<String> owningAccounts)
If you are using this operation in a monitoring account, this array contains the account IDs of the source
accounts where the metrics in the returned data are from.
|
ListMetricsResult |
withOwningAccounts(String... owningAccounts)
If you are using this operation in a monitoring account, this array contains the account IDs of the source
accounts where the metrics in the returned data are from.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<Metric> getMetrics()
The metrics that match your request.
public void setMetrics(Collection<Metric> metrics)
The metrics that match your request.
metrics
- The metrics that match your request.public ListMetricsResult withMetrics(Metric... metrics)
The metrics that match your request.
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
- The metrics that match your request.public ListMetricsResult withMetrics(Collection<Metric> metrics)
The metrics that match your request.
metrics
- The metrics that match your request.public void setNextToken(String nextToken)
The token that marks the start of the next batch of returned results.
nextToken
- The token that marks the start of the next batch of returned results.public String getNextToken()
The token that marks the start of the next batch of returned results.
public ListMetricsResult withNextToken(String nextToken)
The token that marks the start of the next batch of returned results.
nextToken
- The token that marks the start of the next batch of returned results.public List<String> getOwningAccounts()
If you are using this operation in a monitoring account, this array contains the account IDs of the source accounts where the metrics in the returned data are from.
This field is a 1:1 mapping between each metric that is returned and the ID of the owning account.
This field is a 1:1 mapping between each metric that is returned and the ID of the owning account.
public void setOwningAccounts(Collection<String> owningAccounts)
If you are using this operation in a monitoring account, this array contains the account IDs of the source accounts where the metrics in the returned data are from.
This field is a 1:1 mapping between each metric that is returned and the ID of the owning account.
owningAccounts
- If you are using this operation in a monitoring account, this array contains the account IDs of the source
accounts where the metrics in the returned data are from.
This field is a 1:1 mapping between each metric that is returned and the ID of the owning account.
public ListMetricsResult withOwningAccounts(String... owningAccounts)
If you are using this operation in a monitoring account, this array contains the account IDs of the source accounts where the metrics in the returned data are from.
This field is a 1:1 mapping between each metric that is returned and the ID of the owning account.
NOTE: This method appends the values to the existing list (if any). Use
setOwningAccounts(java.util.Collection)
or withOwningAccounts(java.util.Collection)
if you want
to override the existing values.
owningAccounts
- If you are using this operation in a monitoring account, this array contains the account IDs of the source
accounts where the metrics in the returned data are from.
This field is a 1:1 mapping between each metric that is returned and the ID of the owning account.
public ListMetricsResult withOwningAccounts(Collection<String> owningAccounts)
If you are using this operation in a monitoring account, this array contains the account IDs of the source accounts where the metrics in the returned data are from.
This field is a 1:1 mapping between each metric that is returned and the ID of the owning account.
owningAccounts
- If you are using this operation in a monitoring account, this array contains the account IDs of the source
accounts where the metrics in the returned data are from.
This field is a 1:1 mapping between each metric that is returned and the ID of the owning account.
public String toString()
toString
in class Object
Object.toString()
public ListMetricsResult clone()