@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetReservationUtilizationRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
GetReservationUtilizationRequest() |
Modifier and Type | Method and Description |
---|---|
GetReservationUtilizationRequest |
clone() |
boolean |
equals(Object obj) |
Expression |
getFilter()
Filters utilization data by dimensions.
|
String |
getGranularity()
If
GroupBy is set, Granularity can't be set. |
List<GroupDefinition> |
getGroupBy()
Groups only by
SUBSCRIPTION_ID . |
String |
getNextPageToken()
The token to retrieve the next set of results.
|
DateInterval |
getTimePeriod()
Sets the start and end dates for retrieving RI utilization.
|
int |
hashCode() |
void |
setFilter(Expression filter)
Filters utilization data by dimensions.
|
void |
setGranularity(String granularity)
If
GroupBy is set, Granularity can't be set. |
void |
setGroupBy(Collection<GroupDefinition> groupBy)
Groups only by
SUBSCRIPTION_ID . |
void |
setNextPageToken(String nextPageToken)
The token to retrieve the next set of results.
|
void |
setTimePeriod(DateInterval timePeriod)
Sets the start and end dates for retrieving RI utilization.
|
String |
toString()
Returns a string representation of this object.
|
GetReservationUtilizationRequest |
withFilter(Expression filter)
Filters utilization data by dimensions.
|
GetReservationUtilizationRequest |
withGranularity(Granularity granularity)
If
GroupBy is set, Granularity can't be set. |
GetReservationUtilizationRequest |
withGranularity(String granularity)
If
GroupBy is set, Granularity can't be set. |
GetReservationUtilizationRequest |
withGroupBy(Collection<GroupDefinition> groupBy)
Groups only by
SUBSCRIPTION_ID . |
GetReservationUtilizationRequest |
withGroupBy(GroupDefinition... groupBy)
Groups only by
SUBSCRIPTION_ID . |
GetReservationUtilizationRequest |
withNextPageToken(String nextPageToken)
The token to retrieve the next set of results.
|
GetReservationUtilizationRequest |
withTimePeriod(DateInterval timePeriod)
Sets the start and end dates for retrieving RI utilization.
|
addHandlerContext, copyBaseTo, 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)
Sets the start and end dates for retrieving RI utilization. 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
- Sets the start and end dates for retrieving RI utilization. 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()
Sets the start and end dates for retrieving RI utilization. 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 GetReservationUtilizationRequest withTimePeriod(DateInterval timePeriod)
Sets the start and end dates for retrieving RI utilization. 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
- Sets the start and end dates for retrieving RI utilization. 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()
Groups only by SUBSCRIPTION_ID
. Metadata is included.
SUBSCRIPTION_ID
. Metadata is included.public void setGroupBy(Collection<GroupDefinition> groupBy)
Groups only by SUBSCRIPTION_ID
. Metadata is included.
groupBy
- Groups only by SUBSCRIPTION_ID
. Metadata is included.public GetReservationUtilizationRequest withGroupBy(GroupDefinition... groupBy)
Groups only by SUBSCRIPTION_ID
. Metadata is included.
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
- Groups only by SUBSCRIPTION_ID
. Metadata is included.public GetReservationUtilizationRequest withGroupBy(Collection<GroupDefinition> groupBy)
Groups only by SUBSCRIPTION_ID
. Metadata is included.
groupBy
- Groups only by SUBSCRIPTION_ID
. Metadata is included.public void setGranularity(String granularity)
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
. If
both GroupBy
and Granularity
aren't set, GetReservationUtilization
defaults to DAILY
.
The GetReservationUtilization
operation supports only DAILY
and MONTHLY
granularities.
granularity
- 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
. If both GroupBy
and Granularity
aren't set,
GetReservationUtilization
defaults to DAILY
.
The GetReservationUtilization
operation supports only DAILY
and
MONTHLY
granularities.
Granularity
public String getGranularity()
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
. If
both GroupBy
and Granularity
aren't set, GetReservationUtilization
defaults to DAILY
.
The GetReservationUtilization
operation supports only DAILY
and MONTHLY
granularities.
GroupBy
is set, Granularity
can't be set. If Granularity
isn't
set, the response object doesn't include Granularity
, either MONTHLY
or
DAILY
. If both GroupBy
and Granularity
aren't set,
GetReservationUtilization
defaults to DAILY
.
The GetReservationUtilization
operation supports only DAILY
and
MONTHLY
granularities.
Granularity
public GetReservationUtilizationRequest withGranularity(String granularity)
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
. If
both GroupBy
and Granularity
aren't set, GetReservationUtilization
defaults to DAILY
.
The GetReservationUtilization
operation supports only DAILY
and MONTHLY
granularities.
granularity
- 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
. If both GroupBy
and Granularity
aren't set,
GetReservationUtilization
defaults to DAILY
.
The GetReservationUtilization
operation supports only DAILY
and
MONTHLY
granularities.
Granularity
public GetReservationUtilizationRequest withGranularity(Granularity granularity)
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
. If
both GroupBy
and Granularity
aren't set, GetReservationUtilization
defaults to DAILY
.
The GetReservationUtilization
operation supports only DAILY
and MONTHLY
granularities.
granularity
- 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
. If both GroupBy
and Granularity
aren't set,
GetReservationUtilization
defaults to DAILY
.
The GetReservationUtilization
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
SCOPE
TENANCY
GetReservationUtilization
uses the same Expression
object as the other operations, but only AND
is supported among each dimension, and nesting is
supported up to only one level deep. If there are multiple values for a dimension, they are OR'd together.
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
SCOPE
TENANCY
GetReservationUtilization
uses the same Expression object as the other operations, but only AND
is supported among each
dimension, and nesting is supported up to only one level deep. If there are multiple values for a
dimension, they are OR'd together.
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
SCOPE
TENANCY
GetReservationUtilization
uses the same Expression
object as the other operations, but only AND
is supported among each dimension, and nesting is
supported up to only one level deep. If there are multiple values for a dimension, they are OR'd together.
AZ
CACHE_ENGINE
DATABASE_ENGINE
DEPLOYMENT_OPTION
INSTANCE_TYPE
LINKED_ACCOUNT
OPERATING_SYSTEM
PLATFORM
REGION
SERVICE
SCOPE
TENANCY
GetReservationUtilization
uses the same Expression object as the other operations, but only AND
is supported among each
dimension, and nesting is supported up to only one level deep. If there are multiple values for a
dimension, they are OR'd together.
public GetReservationUtilizationRequest 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
SCOPE
TENANCY
GetReservationUtilization
uses the same Expression
object as the other operations, but only AND
is supported among each dimension, and nesting is
supported up to only one level deep. If there are multiple values for a dimension, they are OR'd together.
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
SCOPE
TENANCY
GetReservationUtilization
uses the same Expression object as the other operations, but only AND
is supported among each
dimension, and nesting is supported up to only one level deep. If there are multiple values for a
dimension, they are OR'd together.
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 GetReservationUtilizationRequest 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 GetReservationUtilizationRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2018. All rights reserved.