QueryDefinition Class
- java.
lang. Object - com.
azure. resourcemanager. costmanagement. models. QueryDefinition
- com.
Implements
public final class QueryDefinition
implements JsonSerializable<QueryDefinition>
The definition of a query.
Constructor Summary
| Constructor | Description |
|---|---|
| QueryDefinition() |
Creates an instance of Query |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Query |
dataset()
Get the dataset property: Has definition for data in this query. |
|
static
Query |
fromJson(JsonReader jsonReader)
Reads an instance of Query |
|
Timeframe |
timeframe()
Get the timeframe property: The time frame for pulling data for the query. |
|
Query |
timePeriod()
Get the time |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Export |
type()
Get the type property: The type of the query. |
| void |
validate()
Validates the instance. |
|
Query |
withDataset(QueryDataset dataset)
Set the dataset property: Has definition for data in this query. |
|
Query |
withTimeframe(TimeframeType timeframe)
Set the timeframe property: The time frame for pulling data for the query. |
|
Query |
withTimePeriod(QueryTimePeriod timePeriod)
Set the time |
|
Query |
withType(ExportType type)
Set the type property: The type of the query. |
Methods inherited from java.lang.Object
Constructor Details
QueryDefinition
public QueryDefinition()
Creates an instance of QueryDefinition class.
Method Details
dataset
public QueryDataset dataset()
Get the dataset property: Has definition for data in this query.
Returns:
fromJson
public static QueryDefinition fromJson(JsonReader jsonReader)
Reads an instance of QueryDefinition from the JsonReader.
Parameters:
Returns:
Throws:
timeframe
public TimeframeType timeframe()
Get the timeframe property: The time frame for pulling data for the query. If custom, then a specific time period must be provided.
Returns:
timePeriod
public QueryTimePeriod timePeriod()
Get the timePeriod property: Has time period for pulling data for the query.
Returns:
toJson
type
public ExportType type()
Get the type property: The type of the query.
Returns:
validate
public void validate()
Validates the instance.
withDataset
public QueryDefinition withDataset(QueryDataset dataset)
Set the dataset property: Has definition for data in this query.
Parameters:
Returns:
withTimeframe
public QueryDefinition withTimeframe(TimeframeType timeframe)
Set the timeframe property: The time frame for pulling data for the query. If custom, then a specific time period must be provided.
Parameters:
Returns:
withTimePeriod
public QueryDefinition withTimePeriod(QueryTimePeriod timePeriod)
Set the timePeriod property: Has time period for pulling data for the query.
Parameters:
Returns:
withType
public QueryDefinition withType(ExportType type)
Set the type property: The type of the query.
Parameters:
Returns: