@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()
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()
If
GroupBy is set, Granularity can't be set. |
List<GroupDefinition> |
getGroupBy()
Groups only by
SUBSCRIPTION_ID . |
Integer |
getMaxResults()
The maximum number of objects that you returned for this request.
|
String |
getNextPageToken()
The token to retrieve the next set of results.
|
SortDefinition |
getSortBy()
The value that you want to sort the data by.
|
DateInterval |
getTimePeriod()
Sets the start and end dates for retrieving Reserved Instance (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 |
setMaxResults(Integer maxResults)
The maximum number of objects that you returned for this request.
|
void |
setNextPageToken(String nextPageToken)
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)
Sets the start and end dates for retrieving Reserved Instance (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 |
withMaxResults(Integer maxResults)
The maximum number of objects that you returned for this request.
|
GetReservationUtilizationRequest |
withNextPageToken(String nextPageToken)
The token to retrieve the next set of results.
|
GetReservationUtilizationRequest |
withSortBy(SortDefinition sortBy)
The value that you want to sort the data by.
|
GetReservationUtilizationRequest |
withTimePeriod(DateInterval timePeriod)
Sets the start and end dates for retrieving Reserved Instance (RI) utilization.
|
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)
Sets the start and end dates for retrieving Reserved Instance (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 Reserved Instance (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 Reserved Instance (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 Reserved Instance (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 Reserved Instance (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
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
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
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
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
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
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 setSortBy(SortDefinition sortBy)
The value that you want to sort the data by.
The following values are supported for Key
:
UtilizationPercentage
UtilizationPercentageInUnits
PurchasedHours
PurchasedUnits
TotalActualHours
TotalActualUnits
UnusedHours
UnusedUnits
OnDemandCostOfRIHoursUsed
NetRISavings
TotalPotentialRISavings
AmortizedUpfrontFee
AmortizedRecurringFee
TotalAmortizedFee
RICostForUnusedHours
RealizedSavings
UnrealizedSavings
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
:
UtilizationPercentage
UtilizationPercentageInUnits
PurchasedHours
PurchasedUnits
TotalActualHours
TotalActualUnits
UnusedHours
UnusedUnits
OnDemandCostOfRIHoursUsed
NetRISavings
TotalPotentialRISavings
AmortizedUpfrontFee
AmortizedRecurringFee
TotalAmortizedFee
RICostForUnusedHours
RealizedSavings
UnrealizedSavings
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
:
UtilizationPercentage
UtilizationPercentageInUnits
PurchasedHours
PurchasedUnits
TotalActualHours
TotalActualUnits
UnusedHours
UnusedUnits
OnDemandCostOfRIHoursUsed
NetRISavings
TotalPotentialRISavings
AmortizedUpfrontFee
AmortizedRecurringFee
TotalAmortizedFee
RICostForUnusedHours
RealizedSavings
UnrealizedSavings
The supported values for SortOrder
are ASCENDING
and DESCENDING
.
The following values are supported for Key
:
UtilizationPercentage
UtilizationPercentageInUnits
PurchasedHours
PurchasedUnits
TotalActualHours
TotalActualUnits
UnusedHours
UnusedUnits
OnDemandCostOfRIHoursUsed
NetRISavings
TotalPotentialRISavings
AmortizedUpfrontFee
AmortizedRecurringFee
TotalAmortizedFee
RICostForUnusedHours
RealizedSavings
UnrealizedSavings
The supported values for SortOrder
are ASCENDING
and DESCENDING
.
public GetReservationUtilizationRequest withSortBy(SortDefinition sortBy)
The value that you want to sort the data by.
The following values are supported for Key
:
UtilizationPercentage
UtilizationPercentageInUnits
PurchasedHours
PurchasedUnits
TotalActualHours
TotalActualUnits
UnusedHours
UnusedUnits
OnDemandCostOfRIHoursUsed
NetRISavings
TotalPotentialRISavings
AmortizedUpfrontFee
AmortizedRecurringFee
TotalAmortizedFee
RICostForUnusedHours
RealizedSavings
UnrealizedSavings
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
:
UtilizationPercentage
UtilizationPercentageInUnits
PurchasedHours
PurchasedUnits
TotalActualHours
TotalActualUnits
UnusedHours
UnusedUnits
OnDemandCostOfRIHoursUsed
NetRISavings
TotalPotentialRISavings
AmortizedUpfrontFee
AmortizedRecurringFee
TotalAmortizedFee
RICostForUnusedHours
RealizedSavings
UnrealizedSavings
The supported values for SortOrder
are ASCENDING
and DESCENDING
.
public void setNextPageToken(String nextPageToken)
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.
nextPageToken
- 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 getNextPageToken()
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 GetReservationUtilizationRequest withNextPageToken(String nextPageToken)
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.
nextPageToken
- 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 maximum number of objects that you returned for this request. If more objects are available, in the response, Amazon Web Services provides a NextPageToken value that you can use in a subsequent call to get the next batch of objects.
maxResults
- The maximum number of objects that you returned for this request. If more objects are available, in the
response, Amazon Web Services provides a NextPageToken value that you can use in a subsequent call to get
the next batch of objects.public Integer getMaxResults()
The maximum number of objects that you returned for this request. If more objects are available, in the response, Amazon Web Services provides a NextPageToken value that you can use in a subsequent call to get the next batch of objects.
public GetReservationUtilizationRequest withMaxResults(Integer maxResults)
The maximum number of objects that you returned for this request. If more objects are available, in the response, Amazon Web Services provides a NextPageToken value that you can use in a subsequent call to get the next batch of objects.
maxResults
- The maximum number of objects that you returned for this request. If more objects are available, in the
response, Amazon Web Services provides a NextPageToken value that you can use in a subsequent call to get
the next batch of objects.public String toString()
toString
in class Object
Object.toString()
public GetReservationUtilizationRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()