@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListMetricsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
ListMetricsRequest() |
Modifier and Type | Method and Description |
---|---|
ListMetricsRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
List<DimensionFilter> |
getDimensions()
The dimensions to filter against.
|
Boolean |
getIncludeLinkedAccounts()
If you are using this operation in a monitoring account, specify
true to include metrics from source
accounts in the returned data. |
String |
getMetricName()
The name of the metric to filter against.
|
String |
getNamespace()
The metric namespace to filter against.
|
String |
getNextToken()
The token returned by a previous call to indicate that there is more data available.
|
String |
getOwningAccount()
When you use this operation in a monitoring account, use this field to return metrics only from one source
account.
|
String |
getRecentlyActive()
To filter the results to show only metrics that have had data points published in the past three hours, specify
this parameter with a value of
PT3H . |
int |
hashCode() |
Boolean |
isIncludeLinkedAccounts()
If you are using this operation in a monitoring account, specify
true to include metrics from source
accounts in the returned data. |
void |
setDimensions(Collection<DimensionFilter> dimensions)
The dimensions to filter against.
|
void |
setIncludeLinkedAccounts(Boolean includeLinkedAccounts)
If you are using this operation in a monitoring account, specify
true to include metrics from source
accounts in the returned data. |
void |
setMetricName(String metricName)
The name of the metric to filter against.
|
void |
setNamespace(String namespace)
The metric namespace to filter against.
|
void |
setNextToken(String nextToken)
The token returned by a previous call to indicate that there is more data available.
|
void |
setOwningAccount(String owningAccount)
When you use this operation in a monitoring account, use this field to return metrics only from one source
account.
|
void |
setRecentlyActive(String recentlyActive)
To filter the results to show only metrics that have had data points published in the past three hours, specify
this parameter with a value of
PT3H . |
String |
toString()
Returns a string representation of this object.
|
ListMetricsRequest |
withDimensions(Collection<DimensionFilter> dimensions)
The dimensions to filter against.
|
ListMetricsRequest |
withDimensions(DimensionFilter... dimensions)
The dimensions to filter against.
|
ListMetricsRequest |
withIncludeLinkedAccounts(Boolean includeLinkedAccounts)
If you are using this operation in a monitoring account, specify
true to include metrics from source
accounts in the returned data. |
ListMetricsRequest |
withMetricName(String metricName)
The name of the metric to filter against.
|
ListMetricsRequest |
withNamespace(String namespace)
The metric namespace to filter against.
|
ListMetricsRequest |
withNextToken(String nextToken)
The token returned by a previous call to indicate that there is more data available.
|
ListMetricsRequest |
withOwningAccount(String owningAccount)
When you use this operation in a monitoring account, use this field to return metrics only from one source
account.
|
ListMetricsRequest |
withRecentlyActive(RecentlyActive recentlyActive)
To filter the results to show only metrics that have had data points published in the past three hours, specify
this parameter with a value of
PT3H . |
ListMetricsRequest |
withRecentlyActive(String recentlyActive)
To filter the results to show only metrics that have had data points published in the past three hours, specify
this parameter with a value of
PT3H . |
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setNamespace(String namespace)
The metric namespace to filter against. Only the namespace that matches exactly will be returned.
namespace
- The metric namespace to filter against. Only the namespace that matches exactly will be returned.public String getNamespace()
The metric namespace to filter against. Only the namespace that matches exactly will be returned.
public ListMetricsRequest withNamespace(String namespace)
The metric namespace to filter against. Only the namespace that matches exactly will be returned.
namespace
- The metric namespace to filter against. Only the namespace that matches exactly will be returned.public void setMetricName(String metricName)
The name of the metric to filter against. Only the metrics with names that match exactly will be returned.
metricName
- The name of the metric to filter against. Only the metrics with names that match exactly will be returned.public String getMetricName()
The name of the metric to filter against. Only the metrics with names that match exactly will be returned.
public ListMetricsRequest withMetricName(String metricName)
The name of the metric to filter against. Only the metrics with names that match exactly will be returned.
metricName
- The name of the metric to filter against. Only the metrics with names that match exactly will be returned.public List<DimensionFilter> getDimensions()
The dimensions to filter against. Only the dimensions that match exactly will be returned.
public void setDimensions(Collection<DimensionFilter> dimensions)
The dimensions to filter against. Only the dimensions that match exactly will be returned.
dimensions
- The dimensions to filter against. Only the dimensions that match exactly will be returned.public ListMetricsRequest withDimensions(DimensionFilter... dimensions)
The dimensions to filter against. Only the dimensions that match exactly will be returned.
NOTE: This method appends the values to the existing list (if any). Use
setDimensions(java.util.Collection)
or withDimensions(java.util.Collection)
if you want to
override the existing values.
dimensions
- The dimensions to filter against. Only the dimensions that match exactly will be returned.public ListMetricsRequest withDimensions(Collection<DimensionFilter> dimensions)
The dimensions to filter against. Only the dimensions that match exactly will be returned.
dimensions
- The dimensions to filter against. Only the dimensions that match exactly will be returned.public void setNextToken(String nextToken)
The token returned by a previous call to indicate that there is more data available.
nextToken
- The token returned by a previous call to indicate that there is more data available.public String getNextToken()
The token returned by a previous call to indicate that there is more data available.
public ListMetricsRequest withNextToken(String nextToken)
The token returned by a previous call to indicate that there is more data available.
nextToken
- The token returned by a previous call to indicate that there is more data available.public void setRecentlyActive(String recentlyActive)
To filter the results to show only metrics that have had data points published in the past three hours, specify
this parameter with a value of PT3H
. This is the only valid value for this parameter.
The results that are returned are an approximation of the value you specify. There is a low probability that the returned results include metrics with last published data as much as 40 minutes more than the specified time interval.
recentlyActive
- To filter the results to show only metrics that have had data points published in the past three hours,
specify this parameter with a value of PT3H
. This is the only valid value for this
parameter.
The results that are returned are an approximation of the value you specify. There is a low probability that the returned results include metrics with last published data as much as 40 minutes more than the specified time interval.
RecentlyActive
public String getRecentlyActive()
To filter the results to show only metrics that have had data points published in the past three hours, specify
this parameter with a value of PT3H
. This is the only valid value for this parameter.
The results that are returned are an approximation of the value you specify. There is a low probability that the returned results include metrics with last published data as much as 40 minutes more than the specified time interval.
PT3H
. This is the only valid value for this
parameter.
The results that are returned are an approximation of the value you specify. There is a low probability that the returned results include metrics with last published data as much as 40 minutes more than the specified time interval.
RecentlyActive
public ListMetricsRequest withRecentlyActive(String recentlyActive)
To filter the results to show only metrics that have had data points published in the past three hours, specify
this parameter with a value of PT3H
. This is the only valid value for this parameter.
The results that are returned are an approximation of the value you specify. There is a low probability that the returned results include metrics with last published data as much as 40 minutes more than the specified time interval.
recentlyActive
- To filter the results to show only metrics that have had data points published in the past three hours,
specify this parameter with a value of PT3H
. This is the only valid value for this
parameter.
The results that are returned are an approximation of the value you specify. There is a low probability that the returned results include metrics with last published data as much as 40 minutes more than the specified time interval.
RecentlyActive
public ListMetricsRequest withRecentlyActive(RecentlyActive recentlyActive)
To filter the results to show only metrics that have had data points published in the past three hours, specify
this parameter with a value of PT3H
. This is the only valid value for this parameter.
The results that are returned are an approximation of the value you specify. There is a low probability that the returned results include metrics with last published data as much as 40 minutes more than the specified time interval.
recentlyActive
- To filter the results to show only metrics that have had data points published in the past three hours,
specify this parameter with a value of PT3H
. This is the only valid value for this
parameter.
The results that are returned are an approximation of the value you specify. There is a low probability that the returned results include metrics with last published data as much as 40 minutes more than the specified time interval.
RecentlyActive
public void setIncludeLinkedAccounts(Boolean includeLinkedAccounts)
If you are using this operation in a monitoring account, specify true
to include metrics from source
accounts in the returned data.
The default is false
.
includeLinkedAccounts
- If you are using this operation in a monitoring account, specify true
to include metrics from
source accounts in the returned data.
The default is false
.
public Boolean getIncludeLinkedAccounts()
If you are using this operation in a monitoring account, specify true
to include metrics from source
accounts in the returned data.
The default is false
.
true
to include metrics
from source accounts in the returned data.
The default is false
.
public ListMetricsRequest withIncludeLinkedAccounts(Boolean includeLinkedAccounts)
If you are using this operation in a monitoring account, specify true
to include metrics from source
accounts in the returned data.
The default is false
.
includeLinkedAccounts
- If you are using this operation in a monitoring account, specify true
to include metrics from
source accounts in the returned data.
The default is false
.
public Boolean isIncludeLinkedAccounts()
If you are using this operation in a monitoring account, specify true
to include metrics from source
accounts in the returned data.
The default is false
.
true
to include metrics
from source accounts in the returned data.
The default is false
.
public void setOwningAccount(String owningAccount)
When you use this operation in a monitoring account, use this field to return metrics only from one source
account. To do so, specify that source account ID in this field, and also specify true
for
IncludeLinkedAccounts
.
owningAccount
- When you use this operation in a monitoring account, use this field to return metrics only from one source
account. To do so, specify that source account ID in this field, and also specify true
for
IncludeLinkedAccounts
.public String getOwningAccount()
When you use this operation in a monitoring account, use this field to return metrics only from one source
account. To do so, specify that source account ID in this field, and also specify true
for
IncludeLinkedAccounts
.
true
for IncludeLinkedAccounts
.public ListMetricsRequest withOwningAccount(String owningAccount)
When you use this operation in a monitoring account, use this field to return metrics only from one source
account. To do so, specify that source account ID in this field, and also specify true
for
IncludeLinkedAccounts
.
owningAccount
- When you use this operation in a monitoring account, use this field to return metrics only from one source
account. To do so, specify that source account ID in this field, and also specify true
for
IncludeLinkedAccounts
.public String toString()
toString
in class Object
Object.toString()
public ListMetricsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()