CustomerPolicyProperties Class

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

Implements

public final class CustomerPolicyProperties
implements JsonSerializable<CustomerPolicyProperties>

A policy at customer scope.

Constructor Summary

Constructor Description
CustomerPolicyProperties()

Creates an instance of CustomerPolicyProperties class.

Method Summary

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

Reads an instance of CustomerPolicyProperties from the JsonReader.

List<PolicySummary> policies()

Get the policies property: List of all policies defined at the billing scope.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the resource during a long-running operation.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ViewChargesPolicy viewCharges()

Get the viewCharges property: The policy that controls whether the users in customer's organization can view charges at pay-as-you-go prices.

CustomerPolicyProperties withPolicies(List<PolicySummary> policies)

Set the policies property: List of all policies defined at the billing scope.

CustomerPolicyProperties withViewCharges(ViewChargesPolicy viewCharges)

Set the viewCharges property: The policy that controls whether the users in customer's organization can view charges at pay-as-you-go prices.

Methods inherited from java.lang.Object

Constructor Details

CustomerPolicyProperties

public CustomerPolicyProperties()

Creates an instance of CustomerPolicyProperties class.

Method Details

fromJson

public static CustomerPolicyProperties fromJson(JsonReader jsonReader)

Reads an instance of CustomerPolicyProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

policies

public List<PolicySummary> policies()

Get the policies property: List of all policies defined at the billing scope.

Returns:

the policies value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the resource during a long-running operation.

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

viewCharges

public ViewChargesPolicy viewCharges()

Get the viewCharges property: The policy that controls whether the users in customer's organization can view charges at pay-as-you-go prices.

Returns:

the viewCharges value.

withPolicies

public CustomerPolicyProperties withPolicies(List<PolicySummary> policies)

Set the policies property: List of all policies defined at the billing scope.

Parameters:

policies - the policies value to set.

Returns:

the CustomerPolicyProperties object itself.

withViewCharges

public CustomerPolicyProperties withViewCharges(ViewChargesPolicy viewCharges)

Set the viewCharges property: The policy that controls whether the users in customer's organization can view charges at pay-as-you-go prices.

Parameters:

viewCharges - the viewCharges value to set.

Returns:

the CustomerPolicyProperties object itself.

Applies to