PolicySummary Class

  • java.lang.Object
    • com.azure.resourcemanager.billing.models.PolicySummary

Implements

public final class PolicySummary
implements JsonSerializable<PolicySummary>

The summary of the policy.

Constructor Summary

Constructor Description
PolicySummary()

Creates an instance of PolicySummary class.

Method Summary

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

Reads an instance of PolicySummary from the JsonReader.

String name()

Get the name property: The name of the policy.

PolicyType policyType()

Get the policyType property: The type of the policy.

String scope()

Get the scope property: The scope at which the policy is defined.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String value()

Get the value property: The value of the policy.

PolicySummary withName(String name)

Set the name property: The name of the policy.

PolicySummary withPolicyType(PolicyType policyType)

Set the policyType property: The type of the policy.

PolicySummary withScope(String scope)

Set the scope property: The scope at which the policy is defined.

PolicySummary withValue(String value)

Set the value property: The value of the policy.

Methods inherited from java.lang.Object

Constructor Details

PolicySummary

public PolicySummary()

Creates an instance of PolicySummary class.

Method Details

fromJson

public static PolicySummary fromJson(JsonReader jsonReader)

Reads an instance of PolicySummary from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PolicySummary 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 PolicySummary.

name

public String name()

Get the name property: The name of the policy.

Returns:

the name value.

policyType

public PolicyType policyType()

Get the policyType property: The type of the policy.

Returns:

the policyType value.

scope

public String scope()

Get the scope property: The scope at which the policy is defined.

Returns:

the scope value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

value

public String value()

Get the value property: The value of the policy.

Returns:

the value value.

withName

public PolicySummary withName(String name)

Set the name property: The name of the policy.

Parameters:

name - the name value to set.

Returns:

the PolicySummary object itself.

withPolicyType

public PolicySummary withPolicyType(PolicyType policyType)

Set the policyType property: The type of the policy.

Parameters:

policyType - the policyType value to set.

Returns:

the PolicySummary object itself.

withScope

public PolicySummary withScope(String scope)

Set the scope property: The scope at which the policy is defined.

Parameters:

scope - the scope value to set.

Returns:

the PolicySummary object itself.

withValue

public PolicySummary withValue(String value)

Set the value property: The value of the policy.

Parameters:

value - the value value to set.

Returns:

the PolicySummary object itself.

Applies to