@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetResourceMetricsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
GetResourceMetricsRequest() |
Modifier and Type | Method and Description |
---|---|
GetResourceMetricsRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Date |
getEndTime()
The date and time specifiying the end of the requested time series data.
|
String |
getIdentifier()
An immutable, AWS Region-unique identifier for a data source.
|
Integer |
getMaxResults()
The maximum number of items to return in the response.
|
List<MetricQuery> |
getMetricQueries()
An array of one or more queries to perform.
|
String |
getNextToken()
An optional pagination token provided by a previous request.
|
Integer |
getPeriodInSeconds()
The granularity, in seconds, of the data points returned from Performance Insights.
|
String |
getServiceType()
The AWS service for which Performance Insights will return metrics.
|
Date |
getStartTime()
The date and time specifying the beginning of the requested time series data.
|
int |
hashCode() |
void |
setEndTime(Date endTime)
The date and time specifiying the end of the requested time series data.
|
void |
setIdentifier(String identifier)
An immutable, AWS Region-unique identifier for a data source.
|
void |
setMaxResults(Integer maxResults)
The maximum number of items to return in the response.
|
void |
setMetricQueries(Collection<MetricQuery> metricQueries)
An array of one or more queries to perform.
|
void |
setNextToken(String nextToken)
An optional pagination token provided by a previous request.
|
void |
setPeriodInSeconds(Integer periodInSeconds)
The granularity, in seconds, of the data points returned from Performance Insights.
|
void |
setServiceType(String serviceType)
The AWS service for which Performance Insights will return metrics.
|
void |
setStartTime(Date startTime)
The date and time specifying the beginning of the requested time series data.
|
String |
toString()
Returns a string representation of this object.
|
GetResourceMetricsRequest |
withEndTime(Date endTime)
The date and time specifiying the end of the requested time series data.
|
GetResourceMetricsRequest |
withIdentifier(String identifier)
An immutable, AWS Region-unique identifier for a data source.
|
GetResourceMetricsRequest |
withMaxResults(Integer maxResults)
The maximum number of items to return in the response.
|
GetResourceMetricsRequest |
withMetricQueries(Collection<MetricQuery> metricQueries)
An array of one or more queries to perform.
|
GetResourceMetricsRequest |
withMetricQueries(MetricQuery... metricQueries)
An array of one or more queries to perform.
|
GetResourceMetricsRequest |
withNextToken(String nextToken)
An optional pagination token provided by a previous request.
|
GetResourceMetricsRequest |
withPeriodInSeconds(Integer periodInSeconds)
The granularity, in seconds, of the data points returned from Performance Insights.
|
GetResourceMetricsRequest |
withServiceType(ServiceType serviceType)
The AWS service for which Performance Insights will return metrics.
|
GetResourceMetricsRequest |
withServiceType(String serviceType)
The AWS service for which Performance Insights will return metrics.
|
GetResourceMetricsRequest |
withStartTime(Date startTime)
The date and time specifying the beginning of the requested time series data.
|
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 setServiceType(String serviceType)
The AWS service for which Performance Insights will return metrics. The only valid value for ServiceType
is: RDS
serviceType
- The AWS service for which Performance Insights will return metrics. The only valid value for
ServiceType is: RDS
ServiceType
public String getServiceType()
The AWS service for which Performance Insights will return metrics. The only valid value for ServiceType
is: RDS
RDS
ServiceType
public GetResourceMetricsRequest withServiceType(String serviceType)
The AWS service for which Performance Insights will return metrics. The only valid value for ServiceType
is: RDS
serviceType
- The AWS service for which Performance Insights will return metrics. The only valid value for
ServiceType is: RDS
ServiceType
public GetResourceMetricsRequest withServiceType(ServiceType serviceType)
The AWS service for which Performance Insights will return metrics. The only valid value for ServiceType
is: RDS
serviceType
- The AWS service for which Performance Insights will return metrics. The only valid value for
ServiceType is: RDS
ServiceType
public void setIdentifier(String identifier)
An immutable, AWS Region-unique identifier for a data source. Performance Insights gathers metrics from this data source.
To use an Amazon RDS instance as a data source, you specify its DbiResourceId
value - for example:
db-FAIHNTYBKTGAUSUZQYPDS2GW4A
identifier
- An immutable, AWS Region-unique identifier for a data source. Performance Insights gathers metrics from
this data source.
To use an Amazon RDS instance as a data source, you specify its DbiResourceId
value - for
example: db-FAIHNTYBKTGAUSUZQYPDS2GW4A
public String getIdentifier()
An immutable, AWS Region-unique identifier for a data source. Performance Insights gathers metrics from this data source.
To use an Amazon RDS instance as a data source, you specify its DbiResourceId
value - for example:
db-FAIHNTYBKTGAUSUZQYPDS2GW4A
To use an Amazon RDS instance as a data source, you specify its DbiResourceId
value - for
example: db-FAIHNTYBKTGAUSUZQYPDS2GW4A
public GetResourceMetricsRequest withIdentifier(String identifier)
An immutable, AWS Region-unique identifier for a data source. Performance Insights gathers metrics from this data source.
To use an Amazon RDS instance as a data source, you specify its DbiResourceId
value - for example:
db-FAIHNTYBKTGAUSUZQYPDS2GW4A
identifier
- An immutable, AWS Region-unique identifier for a data source. Performance Insights gathers metrics from
this data source.
To use an Amazon RDS instance as a data source, you specify its DbiResourceId
value - for
example: db-FAIHNTYBKTGAUSUZQYPDS2GW4A
public List<MetricQuery> getMetricQueries()
An array of one or more queries to perform. Each query must specify a Performance Insights metric, and can optionally specify aggregation and filtering criteria.
public void setMetricQueries(Collection<MetricQuery> metricQueries)
An array of one or more queries to perform. Each query must specify a Performance Insights metric, and can optionally specify aggregation and filtering criteria.
metricQueries
- An array of one or more queries to perform. Each query must specify a Performance Insights metric, and can
optionally specify aggregation and filtering criteria.public GetResourceMetricsRequest withMetricQueries(MetricQuery... metricQueries)
An array of one or more queries to perform. Each query must specify a Performance Insights metric, and can optionally specify aggregation and filtering criteria.
NOTE: This method appends the values to the existing list (if any). Use
setMetricQueries(java.util.Collection)
or withMetricQueries(java.util.Collection)
if you want
to override the existing values.
metricQueries
- An array of one or more queries to perform. Each query must specify a Performance Insights metric, and can
optionally specify aggregation and filtering criteria.public GetResourceMetricsRequest withMetricQueries(Collection<MetricQuery> metricQueries)
An array of one or more queries to perform. Each query must specify a Performance Insights metric, and can optionally specify aggregation and filtering criteria.
metricQueries
- An array of one or more queries to perform. Each query must specify a Performance Insights metric, and can
optionally specify aggregation and filtering criteria.public void setStartTime(Date startTime)
The date and time specifying the beginning of the requested time series data. You can't specify a
StartTime
that's earlier than 7 days ago. The value specified is inclusive - data points
equal to or greater than StartTime
will be returned.
The value for StartTime
must be earlier than the value for EndTime
.
startTime
- The date and time specifying the beginning of the requested time series data. You can't specify a
StartTime
that's earlier than 7 days ago. The value specified is inclusive - data
points equal to or greater than StartTime
will be returned.
The value for StartTime
must be earlier than the value for EndTime
.
public Date getStartTime()
The date and time specifying the beginning of the requested time series data. You can't specify a
StartTime
that's earlier than 7 days ago. The value specified is inclusive - data points
equal to or greater than StartTime
will be returned.
The value for StartTime
must be earlier than the value for EndTime
.
StartTime
that's earlier than 7 days ago. The value specified is inclusive - data
points equal to or greater than StartTime
will be returned.
The value for StartTime
must be earlier than the value for EndTime
.
public GetResourceMetricsRequest withStartTime(Date startTime)
The date and time specifying the beginning of the requested time series data. You can't specify a
StartTime
that's earlier than 7 days ago. The value specified is inclusive - data points
equal to or greater than StartTime
will be returned.
The value for StartTime
must be earlier than the value for EndTime
.
startTime
- The date and time specifying the beginning of the requested time series data. You can't specify a
StartTime
that's earlier than 7 days ago. The value specified is inclusive - data
points equal to or greater than StartTime
will be returned.
The value for StartTime
must be earlier than the value for EndTime
.
public void setEndTime(Date endTime)
The date and time specifiying the end of the requested time series data. The value specified is exclusive
- data points less than (but not equal to) EndTime
will be returned.
The value for EndTime
must be later than the value for StartTime
.
endTime
- The date and time specifiying the end of the requested time series data. The value specified is
exclusive - data points less than (but not equal to) EndTime
will be returned.
The value for EndTime
must be later than the value for StartTime
.
public Date getEndTime()
The date and time specifiying the end of the requested time series data. The value specified is exclusive
- data points less than (but not equal to) EndTime
will be returned.
The value for EndTime
must be later than the value for StartTime
.
EndTime
will be returned.
The value for EndTime
must be later than the value for StartTime
.
public GetResourceMetricsRequest withEndTime(Date endTime)
The date and time specifiying the end of the requested time series data. The value specified is exclusive
- data points less than (but not equal to) EndTime
will be returned.
The value for EndTime
must be later than the value for StartTime
.
endTime
- The date and time specifiying the end of the requested time series data. The value specified is
exclusive - data points less than (but not equal to) EndTime
will be returned.
The value for EndTime
must be later than the value for StartTime
.
public void setPeriodInSeconds(Integer periodInSeconds)
The granularity, in seconds, of the data points returned from Performance Insights. A period can be as short as one second, or as long as one day (86400 seconds). Valid values are:
1
(one second)
60
(one minute)
300
(five minutes)
3600
(one hour)
86400
(twenty-four hours)
If you don't specify PeriodInSeconds
, then Performance Insights will choose a value for you, with a
goal of returning roughly 100-200 data points in the response.
periodInSeconds
- The granularity, in seconds, of the data points returned from Performance Insights. A period can be as
short as one second, or as long as one day (86400 seconds). Valid values are:
1
(one second)
60
(one minute)
300
(five minutes)
3600
(one hour)
86400
(twenty-four hours)
If you don't specify PeriodInSeconds
, then Performance Insights will choose a value for you,
with a goal of returning roughly 100-200 data points in the response.
public Integer getPeriodInSeconds()
The granularity, in seconds, of the data points returned from Performance Insights. A period can be as short as one second, or as long as one day (86400 seconds). Valid values are:
1
(one second)
60
(one minute)
300
(five minutes)
3600
(one hour)
86400
(twenty-four hours)
If you don't specify PeriodInSeconds
, then Performance Insights will choose a value for you, with a
goal of returning roughly 100-200 data points in the response.
1
(one second)
60
(one minute)
300
(five minutes)
3600
(one hour)
86400
(twenty-four hours)
If you don't specify PeriodInSeconds
, then Performance Insights will choose a value for you,
with a goal of returning roughly 100-200 data points in the response.
public GetResourceMetricsRequest withPeriodInSeconds(Integer periodInSeconds)
The granularity, in seconds, of the data points returned from Performance Insights. A period can be as short as one second, or as long as one day (86400 seconds). Valid values are:
1
(one second)
60
(one minute)
300
(five minutes)
3600
(one hour)
86400
(twenty-four hours)
If you don't specify PeriodInSeconds
, then Performance Insights will choose a value for you, with a
goal of returning roughly 100-200 data points in the response.
periodInSeconds
- The granularity, in seconds, of the data points returned from Performance Insights. A period can be as
short as one second, or as long as one day (86400 seconds). Valid values are:
1
(one second)
60
(one minute)
300
(five minutes)
3600
(one hour)
86400
(twenty-four hours)
If you don't specify PeriodInSeconds
, then Performance Insights will choose a value for you,
with a goal of returning roughly 100-200 data points in the response.
public void setMaxResults(Integer maxResults)
The maximum number of items to return in the response. If more items exist than the specified
MaxRecords
value, a pagination token is included in the response so that the remaining results can
be retrieved.
maxResults
- The maximum number of items to return in the response. If more items exist than the specified
MaxRecords
value, a pagination token is included in the response so that the remaining
results can be retrieved.public Integer getMaxResults()
The maximum number of items to return in the response. If more items exist than the specified
MaxRecords
value, a pagination token is included in the response so that the remaining results can
be retrieved.
MaxRecords
value, a pagination token is included in the response so that the remaining
results can be retrieved.public GetResourceMetricsRequest withMaxResults(Integer maxResults)
The maximum number of items to return in the response. If more items exist than the specified
MaxRecords
value, a pagination token is included in the response so that the remaining results can
be retrieved.
maxResults
- The maximum number of items to return in the response. If more items exist than the specified
MaxRecords
value, a pagination token is included in the response so that the remaining
results can be retrieved.public void setNextToken(String nextToken)
An optional pagination token provided by a previous request. If this parameter is specified, the response
includes only records beyond the token, up to the value specified by MaxRecords
.
nextToken
- An optional pagination token provided by a previous request. If this parameter is specified, the response
includes only records beyond the token, up to the value specified by MaxRecords
.public String getNextToken()
An optional pagination token provided by a previous request. If this parameter is specified, the response
includes only records beyond the token, up to the value specified by MaxRecords
.
MaxRecords
.public GetResourceMetricsRequest withNextToken(String nextToken)
An optional pagination token provided by a previous request. If this parameter is specified, the response
includes only records beyond the token, up to the value specified by MaxRecords
.
nextToken
- An optional pagination token provided by a previous request. If this parameter is specified, the response
includes only records beyond the token, up to the value specified by MaxRecords
.public String toString()
toString
in class Object
Object.toString()
public GetResourceMetricsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.