@Generated(value="OracleSDKGenerator", comments="API Version: 20200107") public final class QueryProperties extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
The query properties.
Note: Objects should always be created or deserialized using the QueryProperties.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 the QueryProperties.Builder
, which maintain a
set of all explicitly set fields called QueryProperties.Builder.__explicitlySet__
. The hashCode()
and equals(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
).
Modifier and Type | Class and Description |
---|---|
static class |
QueryProperties.Builder |
static class |
QueryProperties.Granularity
The usage granularity.
|
static class |
QueryProperties.QueryType
The query usage type.
|
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
QueryProperties(List<String> groupBy,
List<Tag> groupByTag,
Filter filter,
BigDecimal compartmentDepth,
QueryProperties.Granularity granularity,
QueryProperties.QueryType queryType,
Boolean isAggregateByTime,
DateRange dateRange)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static QueryProperties.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
BigDecimal |
getCompartmentDepth()
The depth level of the compartment.
|
DateRange |
getDateRange() |
Filter |
getFilter() |
QueryProperties.Granularity |
getGranularity()
The usage granularity.
|
List<String> |
getGroupBy()
Aggregate the result by.
|
List<Tag> |
getGroupByTag()
GroupBy a specific tagKey.
|
Boolean |
getIsAggregateByTime()
Specifies whether aggregated by time.
|
QueryProperties.QueryType |
getQueryType()
The query usage type.
|
int |
hashCode() |
QueryProperties.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"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)
public static QueryProperties.Builder builder()
Create a new builder.
public QueryProperties.Builder toBuilder()
public 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” ]
public 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” ]
public Filter getFilter()
public BigDecimal getCompartmentDepth()
The depth level of the compartment.
public QueryProperties.Granularity getGranularity()
The usage granularity. DAILY - Daily data aggregation. MONTHLY - Monthly data aggregation. Allowed values are: DAILY MONTHLY
public 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
public Boolean getIsAggregateByTime()
Specifies whether aggregated by time. If isAggregateByTime is true, all usage or cost over the query time period will be added up.
public DateRange getDateRange()
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.