共用方式為


QueryResponseInner Class

  • java.lang.Object
    • com.azure.resourcemanager.resourcegraph.fluent.models.QueryResponseInner

public final class QueryResponseInner

Query result.

Constructor Summary

Constructor Description
QueryResponseInner()

Creates an instance of QueryResponseInner class.

Method Summary

Modifier and Type Method and Description
long count()

Get the count property: Number of records returned in the current response.

Object data()

Get the data property: Query output in JObject array or Table format.

List<Facet> facets()

Get the facets property: Query facets.

ResultTruncated resultTruncated()

Get the resultTruncated property: Indicates whether the query results are truncated.

String skipToken()

Get the skipToken property: When present, the value can be passed to a subsequent query call (together with the same query and scopes used in the current request) to retrieve the next page of data.

long totalRecords()

Get the totalRecords property: Number of total records matching the query.

void validate()

Validates the instance.

QueryResponseInner withCount(long count)

Set the count property: Number of records returned in the current response.

QueryResponseInner withData(Object data)

Set the data property: Query output in JObject array or Table format.

QueryResponseInner withFacets(List<Facet> facets)

Set the facets property: Query facets.

QueryResponseInner withResultTruncated(ResultTruncated resultTruncated)

Set the resultTruncated property: Indicates whether the query results are truncated.

QueryResponseInner withSkipToken(String skipToken)

Set the skipToken property: When present, the value can be passed to a subsequent query call (together with the same query and scopes used in the current request) to retrieve the next page of data.

QueryResponseInner withTotalRecords(long totalRecords)

Set the totalRecords property: Number of total records matching the query.

Methods inherited from java.lang.Object

Constructor Details

QueryResponseInner

public QueryResponseInner()

Creates an instance of QueryResponseInner class.

Method Details

count

public long count()

Get the count property: Number of records returned in the current response. In the case of paging, this is the number of records in the current page.

Returns:

the count value.

data

public Object data()

Get the data property: Query output in JObject array or Table format.

Returns:

the data value.

facets

public List facets()

Get the facets property: Query facets.

Returns:

the facets value.

resultTruncated

public ResultTruncated resultTruncated()

Get the resultTruncated property: Indicates whether the query results are truncated.

Returns:

the resultTruncated value.

skipToken

public String skipToken()

Get the skipToken property: When present, the value can be passed to a subsequent query call (together with the same query and scopes used in the current request) to retrieve the next page of data.

Returns:

the skipToken value.

totalRecords

public long totalRecords()

Get the totalRecords property: Number of total records matching the query.

Returns:

the totalRecords value.

validate

public void validate()

Validates the instance.

withCount

public QueryResponseInner withCount(long count)

Set the count property: Number of records returned in the current response. In the case of paging, this is the number of records in the current page.

Parameters:

count - the count value to set.

Returns:

the QueryResponseInner object itself.

withData

public QueryResponseInner withData(Object data)

Set the data property: Query output in JObject array or Table format.

Parameters:

data - the data value to set.

Returns:

the QueryResponseInner object itself.

withFacets

public QueryResponseInner withFacets(List facets)

Set the facets property: Query facets.

Parameters:

facets - the facets value to set.

Returns:

the QueryResponseInner object itself.

withResultTruncated

public QueryResponseInner withResultTruncated(ResultTruncated resultTruncated)

Set the resultTruncated property: Indicates whether the query results are truncated.

Parameters:

resultTruncated - the resultTruncated value to set.

Returns:

the QueryResponseInner object itself.

withSkipToken

public QueryResponseInner withSkipToken(String skipToken)

Set the skipToken property: When present, the value can be passed to a subsequent query call (together with the same query and scopes used in the current request) to retrieve the next page of data.

Parameters:

skipToken - the skipToken value to set.

Returns:

the QueryResponseInner object itself.

withTotalRecords

public QueryResponseInner withTotalRecords(long totalRecords)

Set the totalRecords property: Number of total records matching the query.

Parameters:

totalRecords - the totalRecords value to set.

Returns:

the QueryResponseInner object itself.

Applies to