QueryRequest Class

  • java.lang.Object
    • com.microsoft.azure.management.resourcegraph.v2019_04_01.QueryRequest

public class QueryRequest

Describes a query to be executed.

Constructor Summary

Constructor Description
QueryRequest()

Method Summary

Modifier and Type Method and Description
java.util.List<FacetRequest> facets()

Get an array of facet requests to be computed against the query result.

QueryRequestOptions options()

Get the query evaluation options.

java.lang.String query()

Get the resources query.

java.util.List<java.lang.String> subscriptions()

Get azure subscriptions against which to execute the query.

QueryRequest withFacets(List<FacetRequest> facets)

Set an array of facet requests to be computed against the query result.

QueryRequest withOptions(QueryRequestOptions options)

Set the query evaluation options.

QueryRequest withQuery(String query)

Set the resources query.

QueryRequest withSubscriptions(List<String> subscriptions)

Set azure subscriptions against which to execute the query.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

QueryRequest

public QueryRequest()

Method Details

facets

public List facets()

Get an array of facet requests to be computed against the query result.

Returns:

the facets value

options

public QueryRequestOptions options()

Get the query evaluation options.

Returns:

the options value

query

public String query()

Get the resources query.

Returns:

the query value

subscriptions

public List subscriptions()

Get azure subscriptions against which to execute the query.

Returns:

the subscriptions value

withFacets

public QueryRequest withFacets(List facets)

Set an array of facet requests to be computed against the query result.

Parameters:

facets - the facets value to set

Returns:

the QueryRequest object itself.

withOptions

public QueryRequest withOptions(QueryRequestOptions options)

Set the query evaluation options.

Parameters:

options - the options value to set

Returns:

the QueryRequest object itself.

withQuery

public QueryRequest withQuery(String query)

Set the resources query.

Parameters:

query - the query value to set

Returns:

the QueryRequest object itself.

withSubscriptions

public QueryRequest withSubscriptions(List subscriptions)

Set azure subscriptions against which to execute the query.

Parameters:

subscriptions - the subscriptions value to set

Returns:

the QueryRequest object itself.

Applies to