@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetSavingsPlansCoverageRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
GetSavingsPlansCoverageRequest() |
Modifier and Type | Method and Description |
---|---|
GetSavingsPlansCoverageRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Expression |
getFilter()
Filters Savings Plans coverage data by dimensions.
|
String |
getGranularity()
The granularity of the Amazon Web Services cost data for your Savings Plans.
|
List<GroupDefinition> |
getGroupBy()
You can group the data using the attributes
INSTANCE_FAMILY , REGION , or
SERVICE . |
Integer |
getMaxResults()
The number of items to be returned in a response.
|
List<String> |
getMetrics()
The measurement that you want your Savings Plans coverage reported in.
|
String |
getNextToken()
The token to retrieve the next set of results.
|
SortDefinition |
getSortBy()
The value that you want to sort the data by.
|
DateInterval |
getTimePeriod()
The time period that you want the usage and costs for.
|
int |
hashCode() |
void |
setFilter(Expression filter)
Filters Savings Plans coverage data by dimensions.
|
void |
setGranularity(String granularity)
The granularity of the Amazon Web Services cost data for your Savings Plans.
|
void |
setGroupBy(Collection<GroupDefinition> groupBy)
You can group the data using the attributes
INSTANCE_FAMILY , REGION , or
SERVICE . |
void |
setMaxResults(Integer maxResults)
The number of items to be returned in a response.
|
void |
setMetrics(Collection<String> metrics)
The measurement that you want your Savings Plans coverage reported in.
|
void |
setNextToken(String nextToken)
The token to retrieve the next set of results.
|
void |
setSortBy(SortDefinition sortBy)
The value that you want to sort the data by.
|
void |
setTimePeriod(DateInterval timePeriod)
The time period that you want the usage and costs for.
|
String |
toString()
Returns a string representation of this object.
|
GetSavingsPlansCoverageRequest |
withFilter(Expression filter)
Filters Savings Plans coverage data by dimensions.
|
GetSavingsPlansCoverageRequest |
withGranularity(Granularity granularity)
The granularity of the Amazon Web Services cost data for your Savings Plans.
|
GetSavingsPlansCoverageRequest |
withGranularity(String granularity)
The granularity of the Amazon Web Services cost data for your Savings Plans.
|
GetSavingsPlansCoverageRequest |
withGroupBy(Collection<GroupDefinition> groupBy)
You can group the data using the attributes
INSTANCE_FAMILY , REGION , or
SERVICE . |
GetSavingsPlansCoverageRequest |
withGroupBy(GroupDefinition... groupBy)
You can group the data using the attributes
INSTANCE_FAMILY , REGION , or
SERVICE . |
GetSavingsPlansCoverageRequest |
withMaxResults(Integer maxResults)
The number of items to be returned in a response.
|
GetSavingsPlansCoverageRequest |
withMetrics(Collection<String> metrics)
The measurement that you want your Savings Plans coverage reported in.
|
GetSavingsPlansCoverageRequest |
withMetrics(String... metrics)
The measurement that you want your Savings Plans coverage reported in.
|
GetSavingsPlansCoverageRequest |
withNextToken(String nextToken)
The token to retrieve the next set of results.
|
GetSavingsPlansCoverageRequest |
withSortBy(SortDefinition sortBy)
The value that you want to sort the data by.
|
GetSavingsPlansCoverageRequest |
withTimePeriod(DateInterval timePeriod)
The time period that you want the usage and costs 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 time period that you want the usage and costs for. The Start
date must be within 13 months. The
End
date must be after the Start
date, and before the current date. Future dates can't
be used as an End
date.
timePeriod
- The time period that you want the usage and costs for. The Start
date must be within 13
months. The End
date must be after the Start
date, and before the current date.
Future dates can't be used as an End
date.public DateInterval getTimePeriod()
The time period that you want the usage and costs for. The Start
date must be within 13 months. The
End
date must be after the Start
date, and before the current date. Future dates can't
be used as an End
date.
Start
date must be within 13
months. The End
date must be after the Start
date, and before the current date.
Future dates can't be used as an End
date.public GetSavingsPlansCoverageRequest withTimePeriod(DateInterval timePeriod)
The time period that you want the usage and costs for. The Start
date must be within 13 months. The
End
date must be after the Start
date, and before the current date. Future dates can't
be used as an End
date.
timePeriod
- The time period that you want the usage and costs for. The Start
date must be within 13
months. The End
date must be after the Start
date, and before the current date.
Future dates can't be used as an End
date.public List<GroupDefinition> getGroupBy()
You can group the data using the attributes INSTANCE_FAMILY
, REGION
, or
SERVICE
.
INSTANCE_FAMILY
, REGION
, or
SERVICE
.public void setGroupBy(Collection<GroupDefinition> groupBy)
You can group the data using the attributes INSTANCE_FAMILY
, REGION
, or
SERVICE
.
groupBy
- You can group the data using the attributes INSTANCE_FAMILY
, REGION
, or
SERVICE
.public GetSavingsPlansCoverageRequest withGroupBy(GroupDefinition... groupBy)
You can group the data using the attributes INSTANCE_FAMILY
, REGION
, or
SERVICE
.
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 using the attributes INSTANCE_FAMILY
, REGION
, or
SERVICE
.public GetSavingsPlansCoverageRequest withGroupBy(Collection<GroupDefinition> groupBy)
You can group the data using the attributes INSTANCE_FAMILY
, REGION
, or
SERVICE
.
groupBy
- You can group the data using the attributes INSTANCE_FAMILY
, REGION
, or
SERVICE
.public void setGranularity(String granularity)
The granularity of the Amazon Web Services cost data for your Savings Plans. Granularity
can't be
set if GroupBy
is set.
The GetSavingsPlansCoverage
operation supports only DAILY
and MONTHLY
granularities.
granularity
- The granularity of the Amazon Web Services cost data for your Savings Plans. Granularity
can't be set if GroupBy
is set.
The GetSavingsPlansCoverage
operation supports only DAILY
and
MONTHLY
granularities.
Granularity
public String getGranularity()
The granularity of the Amazon Web Services cost data for your Savings Plans. Granularity
can't be
set if GroupBy
is set.
The GetSavingsPlansCoverage
operation supports only DAILY
and MONTHLY
granularities.
Granularity
can't be set if GroupBy
is set.
The GetSavingsPlansCoverage
operation supports only DAILY
and
MONTHLY
granularities.
Granularity
public GetSavingsPlansCoverageRequest withGranularity(String granularity)
The granularity of the Amazon Web Services cost data for your Savings Plans. Granularity
can't be
set if GroupBy
is set.
The GetSavingsPlansCoverage
operation supports only DAILY
and MONTHLY
granularities.
granularity
- The granularity of the Amazon Web Services cost data for your Savings Plans. Granularity
can't be set if GroupBy
is set.
The GetSavingsPlansCoverage
operation supports only DAILY
and
MONTHLY
granularities.
Granularity
public GetSavingsPlansCoverageRequest withGranularity(Granularity granularity)
The granularity of the Amazon Web Services cost data for your Savings Plans. Granularity
can't be
set if GroupBy
is set.
The GetSavingsPlansCoverage
operation supports only DAILY
and MONTHLY
granularities.
granularity
- The granularity of the Amazon Web Services cost data for your Savings Plans. Granularity
can't be set if GroupBy
is set.
The GetSavingsPlansCoverage
operation supports only DAILY
and
MONTHLY
granularities.
Granularity
public void setFilter(Expression filter)
Filters Savings Plans coverage data by dimensions. You can filter data for Savings Plans usage with the following dimensions:
LINKED_ACCOUNT
REGION
SERVICE
INSTANCE_FAMILY
GetSavingsPlansCoverage
uses the same Expression
object as the other operations, but only AND
is supported among each dimension. If there are
multiple values for a dimension, they are OR'd together.
Cost category is also supported.
filter
- Filters Savings Plans coverage data by dimensions. You can filter data for Savings Plans usage with the
following dimensions:
LINKED_ACCOUNT
REGION
SERVICE
INSTANCE_FAMILY
GetSavingsPlansCoverage
uses the same Expression object as the other operations, but only AND
is supported among each
dimension. If there are multiple values for a dimension, they are OR'd together.
Cost category is also supported.
public Expression getFilter()
Filters Savings Plans coverage data by dimensions. You can filter data for Savings Plans usage with the following dimensions:
LINKED_ACCOUNT
REGION
SERVICE
INSTANCE_FAMILY
GetSavingsPlansCoverage
uses the same Expression
object as the other operations, but only AND
is supported among each dimension. If there are
multiple values for a dimension, they are OR'd together.
Cost category is also supported.
LINKED_ACCOUNT
REGION
SERVICE
INSTANCE_FAMILY
GetSavingsPlansCoverage
uses the same Expression object as the other operations, but only AND
is supported among each
dimension. If there are multiple values for a dimension, they are OR'd together.
Cost category is also supported.
public GetSavingsPlansCoverageRequest withFilter(Expression filter)
Filters Savings Plans coverage data by dimensions. You can filter data for Savings Plans usage with the following dimensions:
LINKED_ACCOUNT
REGION
SERVICE
INSTANCE_FAMILY
GetSavingsPlansCoverage
uses the same Expression
object as the other operations, but only AND
is supported among each dimension. If there are
multiple values for a dimension, they are OR'd together.
Cost category is also supported.
filter
- Filters Savings Plans coverage data by dimensions. You can filter data for Savings Plans usage with the
following dimensions:
LINKED_ACCOUNT
REGION
SERVICE
INSTANCE_FAMILY
GetSavingsPlansCoverage
uses the same Expression object as the other operations, but only AND
is supported among each
dimension. If there are multiple values for a dimension, they are OR'd together.
Cost category is also supported.
public List<String> getMetrics()
The measurement that you want your Savings Plans coverage reported in. The only valid value is
SpendCoveredBySavingsPlans
.
SpendCoveredBySavingsPlans
.public void setMetrics(Collection<String> metrics)
The measurement that you want your Savings Plans coverage reported in. The only valid value is
SpendCoveredBySavingsPlans
.
metrics
- The measurement that you want your Savings Plans coverage reported in. The only valid value is
SpendCoveredBySavingsPlans
.public GetSavingsPlansCoverageRequest withMetrics(String... metrics)
The measurement that you want your Savings Plans coverage reported in. The only valid value is
SpendCoveredBySavingsPlans
.
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 Savings Plans coverage reported in. The only valid value is
SpendCoveredBySavingsPlans
.public GetSavingsPlansCoverageRequest withMetrics(Collection<String> metrics)
The measurement that you want your Savings Plans coverage reported in. The only valid value is
SpendCoveredBySavingsPlans
.
metrics
- The measurement that you want your Savings Plans coverage reported in. The only valid value is
SpendCoveredBySavingsPlans
.public void setNextToken(String nextToken)
The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.
nextToken
- The token to retrieve the next set of results. Amazon Web Services provides the token when the response
from a previous call has more results than the maximum page size.public String getNextToken()
The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.
public GetSavingsPlansCoverageRequest withNextToken(String nextToken)
The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.
nextToken
- The token to retrieve the next set of results. Amazon Web Services provides the token when the response
from a previous call has more results than the maximum page size.public void setMaxResults(Integer maxResults)
The number of items to be returned in a response. The default is 20
, with a minimum value of
1
.
maxResults
- The number of items to be returned in a response. The default is 20
, with a minimum value of
1
.public Integer getMaxResults()
The number of items to be returned in a response. The default is 20
, with a minimum value of
1
.
20
, with a minimum value of
1
.public GetSavingsPlansCoverageRequest withMaxResults(Integer maxResults)
The number of items to be returned in a response. The default is 20
, with a minimum value of
1
.
maxResults
- The number of items to be returned in a response. The default is 20
, with a minimum value of
1
.public void setSortBy(SortDefinition sortBy)
The value that you want to sort the data by.
The following values are supported for Key
:
SpendCoveredBySavingsPlan
OnDemandCost
CoveragePercentage
TotalCost
InstanceFamily
Region
Service
The supported values for SortOrder
are ASCENDING
and DESCENDING
.
sortBy
- The value that you want to sort the data by.
The following values are supported for Key
:
SpendCoveredBySavingsPlan
OnDemandCost
CoveragePercentage
TotalCost
InstanceFamily
Region
Service
The supported values for SortOrder
are ASCENDING
and DESCENDING
.
public SortDefinition getSortBy()
The value that you want to sort the data by.
The following values are supported for Key
:
SpendCoveredBySavingsPlan
OnDemandCost
CoveragePercentage
TotalCost
InstanceFamily
Region
Service
The supported values for SortOrder
are ASCENDING
and DESCENDING
.
The following values are supported for Key
:
SpendCoveredBySavingsPlan
OnDemandCost
CoveragePercentage
TotalCost
InstanceFamily
Region
Service
The supported values for SortOrder
are ASCENDING
and DESCENDING
.
public GetSavingsPlansCoverageRequest withSortBy(SortDefinition sortBy)
The value that you want to sort the data by.
The following values are supported for Key
:
SpendCoveredBySavingsPlan
OnDemandCost
CoveragePercentage
TotalCost
InstanceFamily
Region
Service
The supported values for SortOrder
are ASCENDING
and DESCENDING
.
sortBy
- The value that you want to sort the data by.
The following values are supported for Key
:
SpendCoveredBySavingsPlan
OnDemandCost
CoveragePercentage
TotalCost
InstanceFamily
Region
Service
The supported values for SortOrder
are ASCENDING
and DESCENDING
.
public String toString()
toString
in class Object
Object.toString()
public GetSavingsPlansCoverageRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()