@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetReservationCoverageRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
You can use the following request parameters to query for how much of your instance usage a reservation covered.
NOOP
Constructor and Description |
---|
GetReservationCoverageRequest() |
Modifier and Type | Method and Description |
---|---|
GetReservationCoverageRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Expression |
getFilter()
Filters utilization data by dimensions.
|
String |
getGranularity()
The granularity of the AWS cost data for the reservation.
|
List<GroupDefinition> |
getGroupBy()
You can group the data by the following attributes:
|
List<String> |
getMetrics()
The measurement that you want your reservation coverage reported in.
|
String |
getNextPageToken()
The token to retrieve the next set of results.
|
DateInterval |
getTimePeriod()
The start and end dates of the period that you want to retrieve data about reservation coverage for.
|
int |
hashCode() |
void |
setFilter(Expression filter)
Filters utilization data by dimensions.
|
void |
setGranularity(String granularity)
The granularity of the AWS cost data for the reservation.
|
void |
setGroupBy(Collection<GroupDefinition> groupBy)
You can group the data by the following attributes:
|
void |
setMetrics(Collection<String> metrics)
The measurement that you want your reservation coverage reported in.
|
void |
setNextPageToken(String nextPageToken)
The token to retrieve the next set of results.
|
void |
setTimePeriod(DateInterval timePeriod)
The start and end dates of the period that you want to retrieve data about reservation coverage for.
|
String |
toString()
Returns a string representation of this object.
|
GetReservationCoverageRequest |
withFilter(Expression filter)
Filters utilization data by dimensions.
|
GetReservationCoverageRequest |
withGranularity(Granularity granularity)
The granularity of the AWS cost data for the reservation.
|
GetReservationCoverageRequest |
withGranularity(String granularity)
The granularity of the AWS cost data for the reservation.
|
GetReservationCoverageRequest |
withGroupBy(Collection<GroupDefinition> groupBy)
You can group the data by the following attributes:
|
GetReservationCoverageRequest |
withGroupBy(GroupDefinition... groupBy)
You can group the data by the following attributes:
|
GetReservationCoverageRequest |
withMetrics(Collection<String> metrics)
The measurement that you want your reservation coverage reported in.
|
GetReservationCoverageRequest |
withMetrics(String... metrics)
The measurement that you want your reservation coverage reported in.
|
GetReservationCoverageRequest |
withNextPageToken(String nextPageToken)
The token to retrieve the next set of results.
|
GetReservationCoverageRequest |
withTimePeriod(DateInterval timePeriod)
The start and end dates of the period that you want to retrieve data about reservation coverage for.
|
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 setTimePeriod(DateInterval timePeriod)
The start and end dates of the period that you want to retrieve data about reservation coverage for. You can
retrieve data for a maximum of 13 months: the last 12 months and the current month. The start date is inclusive,
but the end date is exclusive. For example, if start
is 2017-01-01
and end
is 2017-05-01
, then the cost and usage data is retrieved from 2017-01-01
up to and
including 2017-04-30
but not including 2017-05-01
.
timePeriod
- The start and end dates of the period that you want to retrieve data about reservation coverage for. You
can retrieve data for a maximum of 13 months: the last 12 months and the current month. The start date is
inclusive, but the end date is exclusive. For example, if start
is 2017-01-01
and end
is 2017-05-01
, then the cost and usage data is retrieved from
2017-01-01
up to and including 2017-04-30
but not including
2017-05-01
.public DateInterval getTimePeriod()
The start and end dates of the period that you want to retrieve data about reservation coverage for. You can
retrieve data for a maximum of 13 months: the last 12 months and the current month. The start date is inclusive,
but the end date is exclusive. For example, if start
is 2017-01-01
and end
is 2017-05-01
, then the cost and usage data is retrieved from 2017-01-01
up to and
including 2017-04-30
but not including 2017-05-01
.
start
is 2017-01-01
and end
is 2017-05-01
, then the cost and usage data is retrieved from
2017-01-01
up to and including 2017-04-30
but not including
2017-05-01
.public GetReservationCoverageRequest withTimePeriod(DateInterval timePeriod)
The start and end dates of the period that you want to retrieve data about reservation coverage for. You can
retrieve data for a maximum of 13 months: the last 12 months and the current month. The start date is inclusive,
but the end date is exclusive. For example, if start
is 2017-01-01
and end
is 2017-05-01
, then the cost and usage data is retrieved from 2017-01-01
up to and
including 2017-04-30
but not including 2017-05-01
.
timePeriod
- The start and end dates of the period that you want to retrieve data about reservation coverage for. You
can retrieve data for a maximum of 13 months: the last 12 months and the current month. The start date is
inclusive, but the end date is exclusive. For example, if start
is 2017-01-01
and end
is 2017-05-01
, then the cost and usage data is retrieved from
2017-01-01
up to and including 2017-04-30
but not including
2017-05-01
.public List<GroupDefinition> getGroupBy()
You can group the data by the following attributes:
AZ
CACHE_ENGINE
DATABASE_ENGINE
DEPLOYMENT_OPTION
INSTANCE_TYPE
LINKED_ACCOUNT
OPERATING_SYSTEM
PLATFORM
REGION
TENANCY
AZ
CACHE_ENGINE
DATABASE_ENGINE
DEPLOYMENT_OPTION
INSTANCE_TYPE
LINKED_ACCOUNT
OPERATING_SYSTEM
PLATFORM
REGION
TENANCY
public void setGroupBy(Collection<GroupDefinition> groupBy)
You can group the data by the following attributes:
AZ
CACHE_ENGINE
DATABASE_ENGINE
DEPLOYMENT_OPTION
INSTANCE_TYPE
LINKED_ACCOUNT
OPERATING_SYSTEM
PLATFORM
REGION
TENANCY
groupBy
- You can group the data by the following attributes:
AZ
CACHE_ENGINE
DATABASE_ENGINE
DEPLOYMENT_OPTION
INSTANCE_TYPE
LINKED_ACCOUNT
OPERATING_SYSTEM
PLATFORM
REGION
TENANCY
public GetReservationCoverageRequest withGroupBy(GroupDefinition... groupBy)
You can group the data by the following attributes:
AZ
CACHE_ENGINE
DATABASE_ENGINE
DEPLOYMENT_OPTION
INSTANCE_TYPE
LINKED_ACCOUNT
OPERATING_SYSTEM
PLATFORM
REGION
TENANCY
NOTE: This method appends the values to the existing list (if any). Use
setGroupBy(java.util.Collection)
or withGroupBy(java.util.Collection)
if you want to override
the existing values.
groupBy
- You can group the data by the following attributes:
AZ
CACHE_ENGINE
DATABASE_ENGINE
DEPLOYMENT_OPTION
INSTANCE_TYPE
LINKED_ACCOUNT
OPERATING_SYSTEM
PLATFORM
REGION
TENANCY
public GetReservationCoverageRequest withGroupBy(Collection<GroupDefinition> groupBy)
You can group the data by the following attributes:
AZ
CACHE_ENGINE
DATABASE_ENGINE
DEPLOYMENT_OPTION
INSTANCE_TYPE
LINKED_ACCOUNT
OPERATING_SYSTEM
PLATFORM
REGION
TENANCY
groupBy
- You can group the data by the following attributes:
AZ
CACHE_ENGINE
DATABASE_ENGINE
DEPLOYMENT_OPTION
INSTANCE_TYPE
LINKED_ACCOUNT
OPERATING_SYSTEM
PLATFORM
REGION
TENANCY
public void setGranularity(String granularity)
The granularity of the AWS cost data for the reservation. Valid values are MONTHLY
and
DAILY
.
If GroupBy
is set, Granularity
can't be set. If Granularity
isn't set, the
response object doesn't include Granularity
, either MONTHLY
or DAILY
.
The GetReservationCoverage
operation supports only DAILY
and MONTHLY
granularities.
granularity
- The granularity of the AWS cost data for the reservation. Valid values are MONTHLY
and
DAILY
.
If GroupBy
is set, Granularity
can't be set. If Granularity
isn't
set, the response object doesn't include Granularity
, either MONTHLY
or
DAILY
.
The GetReservationCoverage
operation supports only DAILY
and
MONTHLY
granularities.
Granularity
public String getGranularity()
The granularity of the AWS cost data for the reservation. Valid values are MONTHLY
and
DAILY
.
If GroupBy
is set, Granularity
can't be set. If Granularity
isn't set, the
response object doesn't include Granularity
, either MONTHLY
or DAILY
.
The GetReservationCoverage
operation supports only DAILY
and MONTHLY
granularities.
MONTHLY
and
DAILY
.
If GroupBy
is set, Granularity
can't be set. If Granularity
isn't
set, the response object doesn't include Granularity
, either MONTHLY
or
DAILY
.
The GetReservationCoverage
operation supports only DAILY
and
MONTHLY
granularities.
Granularity
public GetReservationCoverageRequest withGranularity(String granularity)
The granularity of the AWS cost data for the reservation. Valid values are MONTHLY
and
DAILY
.
If GroupBy
is set, Granularity
can't be set. If Granularity
isn't set, the
response object doesn't include Granularity
, either MONTHLY
or DAILY
.
The GetReservationCoverage
operation supports only DAILY
and MONTHLY
granularities.
granularity
- The granularity of the AWS cost data for the reservation. Valid values are MONTHLY
and
DAILY
.
If GroupBy
is set, Granularity
can't be set. If Granularity
isn't
set, the response object doesn't include Granularity
, either MONTHLY
or
DAILY
.
The GetReservationCoverage
operation supports only DAILY
and
MONTHLY
granularities.
Granularity
public GetReservationCoverageRequest withGranularity(Granularity granularity)
The granularity of the AWS cost data for the reservation. Valid values are MONTHLY
and
DAILY
.
If GroupBy
is set, Granularity
can't be set. If Granularity
isn't set, the
response object doesn't include Granularity
, either MONTHLY
or DAILY
.
The GetReservationCoverage
operation supports only DAILY
and MONTHLY
granularities.
granularity
- The granularity of the AWS cost data for the reservation. Valid values are MONTHLY
and
DAILY
.
If GroupBy
is set, Granularity
can't be set. If Granularity
isn't
set, the response object doesn't include Granularity
, either MONTHLY
or
DAILY
.
The GetReservationCoverage
operation supports only DAILY
and
MONTHLY
granularities.
Granularity
public void setFilter(Expression filter)
Filters utilization data by dimensions. You can filter by the following dimensions:
AZ
CACHE_ENGINE
DATABASE_ENGINE
DEPLOYMENT_OPTION
INSTANCE_TYPE
LINKED_ACCOUNT
OPERATING_SYSTEM
PLATFORM
REGION
SERVICE
TAG
TENANCY
GetReservationCoverage
uses the same Expression
object as the other operations, but only AND
is supported among each dimension. You can nest only
one level deep. If there are multiple values for a dimension, they are OR'd together.
If you don't provide a SERVICE
filter, Cost Explorer defaults to EC2.
Cost category is also supported.
filter
- Filters utilization data by dimensions. You can filter by the following dimensions:
AZ
CACHE_ENGINE
DATABASE_ENGINE
DEPLOYMENT_OPTION
INSTANCE_TYPE
LINKED_ACCOUNT
OPERATING_SYSTEM
PLATFORM
REGION
SERVICE
TAG
TENANCY
GetReservationCoverage
uses the same Expression object as the other operations, but only AND
is supported among each
dimension. You can nest only one level deep. If there are multiple values for a dimension, they are OR'd
together.
If you don't provide a SERVICE
filter, Cost Explorer defaults to EC2.
Cost category is also supported.
public Expression getFilter()
Filters utilization data by dimensions. You can filter by the following dimensions:
AZ
CACHE_ENGINE
DATABASE_ENGINE
DEPLOYMENT_OPTION
INSTANCE_TYPE
LINKED_ACCOUNT
OPERATING_SYSTEM
PLATFORM
REGION
SERVICE
TAG
TENANCY
GetReservationCoverage
uses the same Expression
object as the other operations, but only AND
is supported among each dimension. You can nest only
one level deep. If there are multiple values for a dimension, they are OR'd together.
If you don't provide a SERVICE
filter, Cost Explorer defaults to EC2.
Cost category is also supported.
AZ
CACHE_ENGINE
DATABASE_ENGINE
DEPLOYMENT_OPTION
INSTANCE_TYPE
LINKED_ACCOUNT
OPERATING_SYSTEM
PLATFORM
REGION
SERVICE
TAG
TENANCY
GetReservationCoverage
uses the same Expression object as the other operations, but only AND
is supported among each
dimension. You can nest only one level deep. If there are multiple values for a dimension, they are OR'd
together.
If you don't provide a SERVICE
filter, Cost Explorer defaults to EC2.
Cost category is also supported.
public GetReservationCoverageRequest withFilter(Expression filter)
Filters utilization data by dimensions. You can filter by the following dimensions:
AZ
CACHE_ENGINE
DATABASE_ENGINE
DEPLOYMENT_OPTION
INSTANCE_TYPE
LINKED_ACCOUNT
OPERATING_SYSTEM
PLATFORM
REGION
SERVICE
TAG
TENANCY
GetReservationCoverage
uses the same Expression
object as the other operations, but only AND
is supported among each dimension. You can nest only
one level deep. If there are multiple values for a dimension, they are OR'd together.
If you don't provide a SERVICE
filter, Cost Explorer defaults to EC2.
Cost category is also supported.
filter
- Filters utilization data by dimensions. You can filter by the following dimensions:
AZ
CACHE_ENGINE
DATABASE_ENGINE
DEPLOYMENT_OPTION
INSTANCE_TYPE
LINKED_ACCOUNT
OPERATING_SYSTEM
PLATFORM
REGION
SERVICE
TAG
TENANCY
GetReservationCoverage
uses the same Expression object as the other operations, but only AND
is supported among each
dimension. You can nest only one level deep. If there are multiple values for a dimension, they are OR'd
together.
If you don't provide a SERVICE
filter, Cost Explorer defaults to EC2.
Cost category is also supported.
public List<String> getMetrics()
The measurement that you want your reservation coverage reported in.
Valid values are Hour
, Unit
, and Cost
. You can use multiple values in a
request.
Valid values are Hour
, Unit
, and Cost
. You can use multiple values
in a request.
public void setMetrics(Collection<String> metrics)
The measurement that you want your reservation coverage reported in.
Valid values are Hour
, Unit
, and Cost
. You can use multiple values in a
request.
metrics
- The measurement that you want your reservation coverage reported in.
Valid values are Hour
, Unit
, and Cost
. You can use multiple values
in a request.
public GetReservationCoverageRequest withMetrics(String... metrics)
The measurement that you want your reservation coverage reported in.
Valid values are Hour
, Unit
, and Cost
. You can use multiple values in a
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 measurement that you want your reservation coverage reported in.
Valid values are Hour
, Unit
, and Cost
. You can use multiple values
in a request.
public GetReservationCoverageRequest withMetrics(Collection<String> metrics)
The measurement that you want your reservation coverage reported in.
Valid values are Hour
, Unit
, and Cost
. You can use multiple values in a
request.
metrics
- The measurement that you want your reservation coverage reported in.
Valid values are Hour
, Unit
, and Cost
. You can use multiple values
in a request.
public void setNextPageToken(String nextPageToken)
The token to retrieve the next set of results. AWS provides the token when the response from a previous call has more results than the maximum page size.
nextPageToken
- The token to retrieve the next set of results. AWS provides the token when the response from a previous
call has more results than the maximum page size.public String getNextPageToken()
The token to retrieve the next set of results. AWS provides the token when the response from a previous call has more results than the maximum page size.
public GetReservationCoverageRequest withNextPageToken(String nextPageToken)
The token to retrieve the next set of results. AWS provides the token when the response from a previous call has more results than the maximum page size.
nextPageToken
- The token to retrieve the next set of results. AWS provides the token when the response from a previous
call has more results than the maximum page size.public String toString()
toString
in class Object
Object.toString()
public GetReservationCoverageRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()