QueryRequestOptions Class
- java.
lang. Object - com.
azure. resourcemanager. resourcegraph. models. QueryRequestOptions
- com.
Implements
public final class QueryRequestOptions
implements JsonSerializable<QueryRequestOptions>
The options for query evaluation.
Constructor Summary
| Constructor | Description |
|---|---|
| QueryRequestOptions() |
Creates an instance of Query |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Boolean |
allowPartialScopes()
Get the allow |
|
static
Query |
fromJson(JsonReader jsonReader)
Reads an instance of Query |
|
Result |
resultFormat()
Get the result |
| Integer |
skip()
Get the skip property: The number of rows to skip from the beginning of the results. |
| String |
skipToken()
Get the skip |
|
Json |
toJson(JsonWriter jsonWriter) |
| Integer |
top()
Get the top property: The maximum number of rows that the query should return. |
| void |
validate()
Validates the instance. |
|
Query |
withAllowPartialScopes(Boolean allowPartialScopes)
Set the allow |
|
Query |
withResultFormat(ResultFormat resultFormat)
Set the result |
|
Query |
withSkip(Integer skip)
Set the skip property: The number of rows to skip from the beginning of the results. |
|
Query |
withSkipToken(String skipToken)
Set the skip |
|
Query |
withTop(Integer top)
Set the top property: The maximum number of rows that the query should return. |
Methods inherited from java.lang.Object
Constructor Details
QueryRequestOptions
public QueryRequestOptions()
Creates an instance of QueryRequestOptions class.
Method Details
allowPartialScopes
public Boolean allowPartialScopes()
Get the allowPartialScopes property: Only applicable for tenant and management group level queries to decide whether to allow partial scopes for result in case the number of subscriptions exceed allowed limits.
Returns:
fromJson
public static QueryRequestOptions fromJson(JsonReader jsonReader)
Reads an instance of QueryRequestOptions from the JsonReader.
Parameters:
Returns:
Throws:
resultFormat
public ResultFormat resultFormat()
Get the resultFormat property: Defines in which format query result returned.
Returns:
skip
public Integer skip()
Get the skip property: The number of rows to skip from the beginning of the results. Overrides the next page offset when ```$skipToken``` property is present.
Returns:
skipToken
public String skipToken()
Get the skipToken property: Continuation token for pagination, capturing the next page size and offset, as well as the context of the query.
Returns:
toJson
top
public Integer top()
Get the top property: The maximum number of rows that the query should return. Overrides the page size when ```$skipToken``` property is present.
Returns:
validate
public void validate()
Validates the instance.
withAllowPartialScopes
public QueryRequestOptions withAllowPartialScopes(Boolean allowPartialScopes)
Set the allowPartialScopes property: Only applicable for tenant and management group level queries to decide whether to allow partial scopes for result in case the number of subscriptions exceed allowed limits.
Parameters:
Returns:
withResultFormat
public QueryRequestOptions withResultFormat(ResultFormat resultFormat)
Set the resultFormat property: Defines in which format query result returned.
Parameters:
Returns:
withSkip
public QueryRequestOptions withSkip(Integer skip)
Set the skip property: The number of rows to skip from the beginning of the results. Overrides the next page offset when ```$skipToken``` property is present.
Parameters:
Returns:
withSkipToken
public QueryRequestOptions withSkipToken(String skipToken)
Set the skipToken property: Continuation token for pagination, capturing the next page size and offset, as well as the context of the query.
Parameters:
Returns:
withTop
public QueryRequestOptions withTop(Integer top)
Set the top property: The maximum number of rows that the query should return. Overrides the page size when ```$skipToken``` property is present.
Parameters:
Returns: