Class QueryParameters
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<QueryParameters.Builder,QueryParameters>
Defines the data retrieval parameters for a widget.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enum -
Method Summary
Modifier and TypeMethodDescriptionstatic QueryParameters.Builderbuilder()final CostAndUsageQueryThe parameters for querying cost and usage data, including metrics, time range, granularity, grouping dimensions, and filters.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.static QueryParametersfromCostAndUsage(Consumer<CostAndUsageQuery.Builder> costAndUsage) Create an instance of this class withcostAndUsage()initialized to the given value.static QueryParametersfromCostAndUsage(CostAndUsageQuery costAndUsage) Create an instance of this class withcostAndUsage()initialized to the given value.static QueryParametersfromReservationCoverage(Consumer<ReservationCoverageQuery.Builder> reservationCoverage) Create an instance of this class withreservationCoverage()initialized to the given value.static QueryParametersfromReservationCoverage(ReservationCoverageQuery reservationCoverage) Create an instance of this class withreservationCoverage()initialized to the given value.static QueryParametersfromReservationUtilization(Consumer<ReservationUtilizationQuery.Builder> reservationUtilization) Create an instance of this class withreservationUtilization()initialized to the given value.static QueryParametersfromReservationUtilization(ReservationUtilizationQuery reservationUtilization) Create an instance of this class withreservationUtilization()initialized to the given value.static QueryParametersfromSavingsPlansCoverage(Consumer<SavingsPlansCoverageQuery.Builder> savingsPlansCoverage) Create an instance of this class withsavingsPlansCoverage()initialized to the given value.static QueryParametersfromSavingsPlansCoverage(SavingsPlansCoverageQuery savingsPlansCoverage) Create an instance of this class withsavingsPlansCoverage()initialized to the given value.static QueryParametersfromSavingsPlansUtilization(Consumer<SavingsPlansUtilizationQuery.Builder> savingsPlansUtilization) Create an instance of this class withsavingsPlansUtilization()initialized to the given value.static QueryParametersfromSavingsPlansUtilization(SavingsPlansUtilizationQuery savingsPlansUtilization) Create an instance of this class withsavingsPlansUtilization()initialized to the given value.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final ReservationCoverageQueryThe parameters for querying Reserved Instance coverage data, showing how much of your eligible instance usage is covered by Reserved Instances.The parameters for querying Reserved Instance utilization data, showing how effectively your Reserved Instances are being used.The parameters for querying Savings Plans coverage data, showing how much of your eligible compute usage is covered by Savings Plans.The parameters for querying Savings Plans utilization data, showing how effectively your Savings Plans are being used.static Class<? extends QueryParameters.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.type()Retrieve an enum value representing which member of this object is populated.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
costAndUsage
The parameters for querying cost and usage data, including metrics, time range, granularity, grouping dimensions, and filters.
- Returns:
- The parameters for querying cost and usage data, including metrics, time range, granularity, grouping dimensions, and filters.
-
savingsPlansCoverage
The parameters for querying Savings Plans coverage data, showing how much of your eligible compute usage is covered by Savings Plans.
- Returns:
- The parameters for querying Savings Plans coverage data, showing how much of your eligible compute usage is covered by Savings Plans.
-
savingsPlansUtilization
The parameters for querying Savings Plans utilization data, showing how effectively your Savings Plans are being used.
- Returns:
- The parameters for querying Savings Plans utilization data, showing how effectively your Savings Plans are being used.
-
reservationCoverage
The parameters for querying Reserved Instance coverage data, showing how much of your eligible instance usage is covered by Reserved Instances.
- Returns:
- The parameters for querying Reserved Instance coverage data, showing how much of your eligible instance usage is covered by Reserved Instances.
-
reservationUtilization
The parameters for querying Reserved Instance utilization data, showing how effectively your Reserved Instances are being used.
- Returns:
- The parameters for querying Reserved Instance utilization data, showing how effectively your Reserved Instances are being used.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<QueryParameters.Builder,QueryParameters> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
fromCostAndUsage
Create an instance of this class withcostAndUsage()initialized to the given value.The parameters for querying cost and usage data, including metrics, time range, granularity, grouping dimensions, and filters.
- Parameters:
costAndUsage- The parameters for querying cost and usage data, including metrics, time range, granularity, grouping dimensions, and filters.
-
fromCostAndUsage
Create an instance of this class withcostAndUsage()initialized to the given value.The parameters for querying cost and usage data, including metrics, time range, granularity, grouping dimensions, and filters.
- Parameters:
costAndUsage- The parameters for querying cost and usage data, including metrics, time range, granularity, grouping dimensions, and filters.
-
fromSavingsPlansCoverage
public static QueryParameters fromSavingsPlansCoverage(SavingsPlansCoverageQuery savingsPlansCoverage) Create an instance of this class withsavingsPlansCoverage()initialized to the given value.The parameters for querying Savings Plans coverage data, showing how much of your eligible compute usage is covered by Savings Plans.
- Parameters:
savingsPlansCoverage- The parameters for querying Savings Plans coverage data, showing how much of your eligible compute usage is covered by Savings Plans.
-
fromSavingsPlansCoverage
public static QueryParameters fromSavingsPlansCoverage(Consumer<SavingsPlansCoverageQuery.Builder> savingsPlansCoverage) Create an instance of this class withsavingsPlansCoverage()initialized to the given value.The parameters for querying Savings Plans coverage data, showing how much of your eligible compute usage is covered by Savings Plans.
- Parameters:
savingsPlansCoverage- The parameters for querying Savings Plans coverage data, showing how much of your eligible compute usage is covered by Savings Plans.
-
fromSavingsPlansUtilization
public static QueryParameters fromSavingsPlansUtilization(SavingsPlansUtilizationQuery savingsPlansUtilization) Create an instance of this class withsavingsPlansUtilization()initialized to the given value.The parameters for querying Savings Plans utilization data, showing how effectively your Savings Plans are being used.
- Parameters:
savingsPlansUtilization- The parameters for querying Savings Plans utilization data, showing how effectively your Savings Plans are being used.
-
fromSavingsPlansUtilization
public static QueryParameters fromSavingsPlansUtilization(Consumer<SavingsPlansUtilizationQuery.Builder> savingsPlansUtilization) Create an instance of this class withsavingsPlansUtilization()initialized to the given value.The parameters for querying Savings Plans utilization data, showing how effectively your Savings Plans are being used.
- Parameters:
savingsPlansUtilization- The parameters for querying Savings Plans utilization data, showing how effectively your Savings Plans are being used.
-
fromReservationCoverage
Create an instance of this class withreservationCoverage()initialized to the given value.The parameters for querying Reserved Instance coverage data, showing how much of your eligible instance usage is covered by Reserved Instances.
- Parameters:
reservationCoverage- The parameters for querying Reserved Instance coverage data, showing how much of your eligible instance usage is covered by Reserved Instances.
-
fromReservationCoverage
public static QueryParameters fromReservationCoverage(Consumer<ReservationCoverageQuery.Builder> reservationCoverage) Create an instance of this class withreservationCoverage()initialized to the given value.The parameters for querying Reserved Instance coverage data, showing how much of your eligible instance usage is covered by Reserved Instances.
- Parameters:
reservationCoverage- The parameters for querying Reserved Instance coverage data, showing how much of your eligible instance usage is covered by Reserved Instances.
-
fromReservationUtilization
public static QueryParameters fromReservationUtilization(ReservationUtilizationQuery reservationUtilization) Create an instance of this class withreservationUtilization()initialized to the given value.The parameters for querying Reserved Instance utilization data, showing how effectively your Reserved Instances are being used.
- Parameters:
reservationUtilization- The parameters for querying Reserved Instance utilization data, showing how effectively your Reserved Instances are being used.
-
fromReservationUtilization
public static QueryParameters fromReservationUtilization(Consumer<ReservationUtilizationQuery.Builder> reservationUtilization) Create an instance of this class withreservationUtilization()initialized to the given value.The parameters for querying Reserved Instance utilization data, showing how effectively your Reserved Instances are being used.
- Parameters:
reservationUtilization- The parameters for querying Reserved Instance utilization data, showing how effectively your Reserved Instances are being used.
-
type
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beQueryParameters.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beQueryParameters.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set. -
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-