Package com.oracle.bmc.usageapi.model
Class QueryProperties
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.usageapi.model.QueryProperties
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20200107") public final class QueryProperties extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelThe query properties.
 Note: Objects should always be created or deserialized using theQueryProperties.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theQueryProperties.Builder, which maintain a set of all explicitly set fields calledQueryProperties.Builder.__explicitlySet__. ThehashCode()andequals(Object)methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classQueryProperties.Builderstatic classQueryProperties.GranularityThe usage granularity.static classQueryProperties.QueryTypeThe query usage type.
 - 
Constructor SummaryConstructors Constructor Description QueryProperties(List<String> groupBy, List<Tag> groupByTag, Filter filter, BigDecimal compartmentDepth, QueryProperties.Granularity granularity, QueryProperties.QueryType queryType, Boolean isAggregateByTime, DateRange dateRange)Deprecated.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static QueryProperties.Builderbuilder()Create a new builder.booleanequals(Object o)BigDecimalgetCompartmentDepth()The depth level of the compartment.DateRangegetDateRange()FiltergetFilter()QueryProperties.GranularitygetGranularity()The usage granularity.List<String>getGroupBy()Aggregate the result by.List<Tag>getGroupByTag()GroupBy a specific tagKey.BooleangetIsAggregateByTime()Specifies whether aggregated by time.QueryProperties.QueryTypegetQueryType()The query usage type.inthashCode()QueryProperties.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
 
- 
- 
- 
Constructor Detail- 
QueryProperties@Deprecated @ConstructorProperties({"groupBy","groupByTag","filter","compartmentDepth","granularity","queryType","isAggregateByTime","dateRange"}) public QueryProperties(List<String> groupBy, List<Tag> groupByTag, Filter filter, BigDecimal compartmentDepth, QueryProperties.Granularity granularity, QueryProperties.QueryType queryType, Boolean isAggregateByTime, DateRange dateRange) Deprecated.
 
- 
 - 
Method Detail- 
builderpublic static QueryProperties.Builder builder() Create a new builder.
 - 
toBuilderpublic QueryProperties.Builder toBuilder() 
 - 
getGroupBypublic List<String> getGroupBy() Aggregate the result by.For example: [ “tagNamespace”, “tagKey”, “tagValue”, “service”, “skuName”, “skuPartNumber”, “unit”, “compartmentName”, “compartmentPath”, “compartmentId”, “platform”, “region”, “logicalAd”, “resourceId”, “tenantId”, “tenantName” ] - Returns:
- the value
 
 - 
getGroupByTagpublic List<Tag> getGroupByTag() GroupBy a specific tagKey.Provide the tagNamespace and tagKey in the tag object. Only supports one tag in the list. For example: [ { “namespace”: “oracle”, “key”: “createdBy” ] - Returns:
- the value
 
 - 
getFilterpublic Filter getFilter() 
 - 
getCompartmentDepthpublic BigDecimal getCompartmentDepth() The depth level of the compartment.- Returns:
- the value
 
 - 
getGranularitypublic QueryProperties.Granularity getGranularity() The usage granularity.DAILY - Daily data aggregation. MONTHLY - Monthly data aggregation. Allowed values are: DAILY MONTHLY - Returns:
- the value
 
 - 
getQueryTypepublic QueryProperties.QueryType getQueryType() The query usage type.COST by default if it is missing. Usage - Query the usage data. Cost - Query the cost/billing data. Allowed values are: USAGE COST USAGE_AND_COST - Returns:
- the value
 
 - 
getIsAggregateByTimepublic Boolean getIsAggregateByTime() Specifies whether aggregated by time.If isAggregateByTime is true, all usage or cost over the query time period will be added up. - Returns:
- the value
 
 - 
getDateRangepublic DateRange getDateRange() 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
toStringpublic String toString(boolean includeByteArrayContents) Return a string representation of the object.- Parameters:
- includeByteArrayContents- true to include the full contents of byte arrays
- Returns:
- string representation
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 
- 
 
-