Class PolicyEventsQueryResults
- java.lang.Object
-
- com.azure.resourcemanager.policyinsights.models.PolicyEventsQueryResults
-
public final class PolicyEventsQueryResults extends Object
Query results.
-
-
Constructor Summary
Constructors Constructor Description PolicyEventsQueryResults()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 event records returned.String
odataNextLink()
Get the odataNextLink property: Odata next link; URL to get the next set of results.void
validate()
Validates the instance.List<PolicyEventInner>
value()
Get the value property: Query results.PolicyEventsQueryResults
withOdataContext(String odataContext)
Set the odataContext property: OData context string; used by OData clients to resolve type information based on metadata.PolicyEventsQueryResults
withOdataCount(Integer odataCount)
Set the odataCount property: OData entity count; represents the number of policy event records returned.PolicyEventsQueryResults
withOdataNextLink(String odataNextLink)
Set the odataNextLink property: Odata next link; URL to get the next set of results.PolicyEventsQueryResults
withValue(List<PolicyEventInner> value)
Set the value property: Query results.
-
-
-
Method Detail
-
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.
-
withOdataContext
public PolicyEventsQueryResults 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 PolicyEventsQueryResults object itself.
-
odataCount
public Integer odataCount()
Get the odataCount property: OData entity count; represents the number of policy event records returned.- Returns:
- the odataCount value.
-
withOdataCount
public PolicyEventsQueryResults withOdataCount(Integer odataCount)
Set the odataCount property: OData entity count; represents the number of policy event records returned.- Parameters:
odataCount
- the odataCount value to set.- Returns:
- the PolicyEventsQueryResults object itself.
-
odataNextLink
public String odataNextLink()
Get the odataNextLink property: Odata next link; URL to get the next set of results.- Returns:
- the odataNextLink value.
-
withOdataNextLink
public PolicyEventsQueryResults withOdataNextLink(String odataNextLink)
Set the odataNextLink property: Odata next link; URL to get the next set of results.- Parameters:
odataNextLink
- the odataNextLink value to set.- Returns:
- the PolicyEventsQueryResults object itself.
-
value
public List<PolicyEventInner> value()
Get the value property: Query results.- Returns:
- the value value.
-
withValue
public PolicyEventsQueryResults withValue(List<PolicyEventInner> value)
Set the value property: Query results.- Parameters:
value
- the value value to set.- Returns:
- the PolicyEventsQueryResults object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-