QueryRequest Class
- java.
lang. Object - com.
azure. resourcemanager. resourcegraph. models. QueryRequest
- com.
Implements
public final class QueryRequest
implements JsonSerializable<QueryRequest>
Describes a query to be executed.
Constructor Summary
| Constructor | Description |
|---|---|
| QueryRequest() |
Creates an instance of Query |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
List<Facet |
facets()
Get the facets property: An array of facet requests to be computed against the query result. |
|
static
Query |
fromJson(JsonReader jsonReader)
Reads an instance of Query |
| List<String> |
managementGroups()
Get the management |
|
Query |
options()
Get the options property: The query evaluation options. |
| String |
query()
Get the query property: The resources query. |
| List<String> |
subscriptions()
Get the subscriptions property: Azure subscriptions against which to execute the query. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Query |
withFacets(List<FacetRequest> facets)
Set the facets property: An array of facet requests to be computed against the query result. |
|
Query |
withManagementGroups(List<String> managementGroups)
Set the management |
|
Query |
withOptions(QueryRequestOptions options)
Set the options property: The query evaluation options. |
|
Query |
withQuery(String query)
Set the query property: The resources query. |
|
Query |
withSubscriptions(List<String> subscriptions)
Set the subscriptions property: Azure subscriptions against which to execute the query. |
Methods inherited from java.lang.Object
Constructor Details
QueryRequest
public QueryRequest()
Creates an instance of QueryRequest class.
Method Details
facets
public List<FacetRequest> facets()
Get the facets property: An array of facet requests to be computed against the query result.
Returns:
fromJson
public static QueryRequest fromJson(JsonReader jsonReader)
Reads an instance of QueryRequest from the JsonReader.
Parameters:
Returns:
Throws:
managementGroups
public List<String> managementGroups()
Get the managementGroups property: Azure management groups against which to execute the query. Example: [ 'mg1', 'mg2' ].
Returns:
options
public QueryRequestOptions options()
Get the options property: The query evaluation options.
Returns:
query
public String query()
Get the query property: The resources query.
Returns:
subscriptions
public List<String> subscriptions()
Get the subscriptions property: Azure subscriptions against which to execute the query.
Returns:
toJson
validate
public void validate()
Validates the instance.
withFacets
public QueryRequest withFacets(List<FacetRequest> facets)
Set the facets property: An array of facet requests to be computed against the query result.
Parameters:
Returns:
withManagementGroups
public QueryRequest withManagementGroups(List<String> managementGroups)
Set the managementGroups property: Azure management groups against which to execute the query. Example: [ 'mg1', 'mg2' ].
Parameters:
Returns:
withOptions
public QueryRequest withOptions(QueryRequestOptions options)
Set the options property: The query evaluation options.
Parameters:
Returns:
withQuery
public QueryRequest withQuery(String query)
Set the query property: The resources query.
Parameters:
Returns:
withSubscriptions
public QueryRequest withSubscriptions(List<String> subscriptions)
Set the subscriptions property: Azure subscriptions against which to execute the query.
Parameters:
Returns: