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 interface
static enum
-
Method Summary
Modifier and TypeMethodDescriptionstatic QueryParameters.Builder
builder()
final CostAndUsageQuery
The parameters for querying cost and usage data, including metrics, time range, granularity, grouping dimensions, and filters.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.static QueryParameters
fromCostAndUsage
(Consumer<CostAndUsageQuery.Builder> costAndUsage) Create an instance of this class withcostAndUsage()
initialized to the given value.static QueryParameters
fromCostAndUsage
(CostAndUsageQuery costAndUsage) Create an instance of this class withcostAndUsage()
initialized to the given value.static QueryParameters
fromReservationCoverage
(Consumer<ReservationCoverageQuery.Builder> reservationCoverage) Create an instance of this class withreservationCoverage()
initialized to the given value.static QueryParameters
fromReservationCoverage
(ReservationCoverageQuery reservationCoverage) Create an instance of this class withreservationCoverage()
initialized to the given value.static QueryParameters
fromReservationUtilization
(Consumer<ReservationUtilizationQuery.Builder> reservationUtilization) Create an instance of this class withreservationUtilization()
initialized to the given value.static QueryParameters
fromReservationUtilization
(ReservationUtilizationQuery reservationUtilization) Create an instance of this class withreservationUtilization()
initialized to the given value.static QueryParameters
fromSavingsPlansCoverage
(Consumer<SavingsPlansCoverageQuery.Builder> savingsPlansCoverage) Create an instance of this class withsavingsPlansCoverage()
initialized to the given value.static QueryParameters
fromSavingsPlansCoverage
(SavingsPlansCoverageQuery savingsPlansCoverage) Create an instance of this class withsavingsPlansCoverage()
initialized to the given value.static QueryParameters
fromSavingsPlansUtilization
(Consumer<SavingsPlansUtilizationQuery.Builder> savingsPlansUtilization) Create an instance of this class withsavingsPlansUtilization()
initialized to the given value.static QueryParameters
fromSavingsPlansUtilization
(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 int
hashCode()
final ReservationCoverageQuery
The 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 String
toString()
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:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<QueryParameters.Builder,
QueryParameters> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in 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_VERSION
if 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_VERSION
if zero members are set, andnull
if more than one member is set. -
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
-