Class GetSavingsPlansUtilizationRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.costexplorer.model.CostExplorerRequest
-
- software.amazon.awssdk.services.costexplorer.model.GetSavingsPlansUtilizationRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<GetSavingsPlansUtilizationRequest.Builder,GetSavingsPlansUtilizationRequest>
@Generated("software.amazon.awssdk:codegen") public final class GetSavingsPlansUtilizationRequest extends CostExplorerRequest implements ToCopyableBuilder<GetSavingsPlansUtilizationRequest.Builder,GetSavingsPlansUtilizationRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGetSavingsPlansUtilizationRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GetSavingsPlansUtilizationRequest.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)Expressionfilter()Filters Savings Plans utilization coverage data for active Savings Plans dimensions.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)Granularitygranularity()The granularity of the Amazon Web Services utillization data for your Savings Plans.StringgranularityAsString()The granularity of the Amazon Web Services utillization data for your Savings Plans.inthashCode()List<SdkField<?>>sdkFields()static Class<? extends GetSavingsPlansUtilizationRequest.Builder>serializableBuilderClass()SortDefinitionsortBy()The value that you want to sort the data by.DateIntervaltimePeriod()The time period that you want the usage and costs for.GetSavingsPlansUtilizationRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
timePeriod
public final DateInterval timePeriod()
The time period that you want the usage and costs for. The
Startdate must be within 13 months. TheEnddate must be after theStartdate, and before the current date. Future dates can't be used as anEnddate.- Returns:
- The time period that you want the usage and costs for. The
Startdate must be within 13 months. TheEnddate must be after theStartdate, and before the current date. Future dates can't be used as anEnddate.
-
granularity
public final Granularity granularity()
The granularity of the Amazon Web Services utillization data for your Savings Plans.
The
GetSavingsPlansUtilizationoperation supports onlyDAILYandMONTHLYgranularities.If the service returns an enum value that is not available in the current SDK version,
granularitywill returnGranularity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromgranularityAsString().- Returns:
- The granularity of the Amazon Web Services utillization data for your Savings Plans.
The
GetSavingsPlansUtilizationoperation supports onlyDAILYandMONTHLYgranularities. - See Also:
Granularity
-
granularityAsString
public final String granularityAsString()
The granularity of the Amazon Web Services utillization data for your Savings Plans.
The
GetSavingsPlansUtilizationoperation supports onlyDAILYandMONTHLYgranularities.If the service returns an enum value that is not available in the current SDK version,
granularitywill returnGranularity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromgranularityAsString().- Returns:
- The granularity of the Amazon Web Services utillization data for your Savings Plans.
The
GetSavingsPlansUtilizationoperation supports onlyDAILYandMONTHLYgranularities. - See Also:
Granularity
-
filter
public final Expression filter()
Filters Savings Plans utilization coverage data for active Savings Plans dimensions. You can filter data with the following dimensions:
-
LINKED_ACCOUNT -
SAVINGS_PLAN_ARN -
SAVINGS_PLANS_TYPE -
REGION -
PAYMENT_OPTION -
INSTANCE_TYPE_FAMILY
GetSavingsPlansUtilizationuses the same Expression object as the other operations, but onlyANDis supported among each dimension.- Returns:
- Filters Savings Plans utilization coverage data for active Savings Plans dimensions. You can filter data
with the following dimensions:
-
LINKED_ACCOUNT -
SAVINGS_PLAN_ARN -
SAVINGS_PLANS_TYPE -
REGION -
PAYMENT_OPTION -
INSTANCE_TYPE_FAMILY
GetSavingsPlansUtilizationuses the same Expression object as the other operations, but onlyANDis supported among each dimension. -
-
-
sortBy
public final SortDefinition sortBy()
The value that you want to sort the data by.
The following values are supported for
Key:-
UtilizationPercentage -
TotalCommitment -
UsedCommitment -
UnusedCommitment -
NetSavings
The supported values for
SortOrderareASCENDINGandDESCENDING.- Returns:
- The value that you want to sort the data by.
The following values are supported for
Key:-
UtilizationPercentage -
TotalCommitment -
UsedCommitment -
UnusedCommitment -
NetSavings
The supported values for
SortOrderareASCENDINGandDESCENDING. -
-
-
toBuilder
public GetSavingsPlansUtilizationRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<GetSavingsPlansUtilizationRequest.Builder,GetSavingsPlansUtilizationRequest>- Specified by:
toBuilderin classCostExplorerRequest
-
builder
public static GetSavingsPlansUtilizationRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends GetSavingsPlansUtilizationRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-