次の方法で共有


ComponentPolicyStatesQueryResultsInner Class

  • java.lang.Object
    • com.azure.resourcemanager.policyinsights.fluent.models.ComponentPolicyStatesQueryResultsInner

Implements

public final class ComponentPolicyStatesQueryResultsInner
implements JsonSerializable<ComponentPolicyStatesQueryResultsInner>

Query results.

Constructor Summary

Constructor Description
ComponentPolicyStatesQueryResultsInner()

Creates an instance of ComponentPolicyStatesQueryResultsInner class.

Method Summary

Modifier and Type Method and Description
static ComponentPolicyStatesQueryResultsInner fromJson(JsonReader jsonReader)

Reads an instance of ComponentPolicyStatesQueryResultsInner from the JsonReader.

String odataContext()

Get the odataContext property: OData context string; used by OData clients to resolve type information based on metadata.

Integer odataCount()

Get the odataCount property: OData entity count; represents the number of policy state records returned.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

List<ComponentPolicyState> value()

Get the value property: Query results.

ComponentPolicyStatesQueryResultsInner withOdataContext(String odataContext)

Set the odataContext property: OData context string; used by OData clients to resolve type information based on metadata.

ComponentPolicyStatesQueryResultsInner withOdataCount(Integer odataCount)

Set the odataCount property: OData entity count; represents the number of policy state records returned.

ComponentPolicyStatesQueryResultsInner withValue(List<ComponentPolicyState> value)

Set the value property: Query results.

Methods inherited from java.lang.Object

Constructor Details

ComponentPolicyStatesQueryResultsInner

public ComponentPolicyStatesQueryResultsInner()

Creates an instance of ComponentPolicyStatesQueryResultsInner class.

Method Details

fromJson

public static ComponentPolicyStatesQueryResultsInner fromJson(JsonReader jsonReader)

Reads an instance of ComponentPolicyStatesQueryResultsInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ComponentPolicyStatesQueryResultsInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ComponentPolicyStatesQueryResultsInner.

odataContext

public String odataContext()

Get the odataContext property: OData context string; used by OData clients to resolve type information based on metadata.

Returns:

the odataContext value.

odataCount

public Integer odataCount()

Get the odataCount property: OData entity count; represents the number of policy state records returned.

Returns:

the odataCount value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

value

public List<ComponentPolicyState> value()

Get the value property: Query results.

Returns:

the value value.

withOdataContext

public ComponentPolicyStatesQueryResultsInner withOdataContext(String odataContext)

Set the odataContext property: OData context string; used by OData clients to resolve type information based on metadata.

Parameters:

odataContext - the odataContext value to set.

Returns:

the ComponentPolicyStatesQueryResultsInner object itself.

withOdataCount

public ComponentPolicyStatesQueryResultsInner withOdataCount(Integer odataCount)

Set the odataCount property: OData entity count; represents the number of policy state records returned.

Parameters:

odataCount - the odataCount value to set.

Returns:

the ComponentPolicyStatesQueryResultsInner object itself.

withValue

public ComponentPolicyStatesQueryResultsInner withValue(List<ComponentPolicyState> value)

Set the value property: Query results.

Parameters:

value - the value value to set.

Returns:

the ComponentPolicyStatesQueryResultsInner object itself.

Applies to