CustomerPolicyProperties Class
- java.
lang. Object - com.
azure. resourcemanager. billing. models. CustomerPolicyProperties
- com.
Implements
public final class CustomerPolicyProperties
implements JsonSerializable<CustomerPolicyProperties>
A policy at customer scope.
Constructor Summary
| Constructor | Description |
|---|---|
| CustomerPolicyProperties() |
Creates an instance of Customer |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Customer |
fromJson(JsonReader jsonReader)
Reads an instance of Customer |
|
List<Policy |
policies()
Get the policies property: List of all policies defined at the billing scope. |
|
Provisioning |
provisioningState()
Get the provisioning |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
View |
viewCharges()
Get the view |
|
Customer |
withPolicies(List<PolicySummary> policies)
Set the policies property: List of all policies defined at the billing scope. |
|
Customer |
withViewCharges(ViewChargesPolicy viewCharges)
Set the view |
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:
Returns:
Throws:
policies
public List<PolicySummary> policies()
Get the policies property: List of all policies defined at the billing scope.
Returns:
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: The provisioning state of the resource during a long-running operation.
Returns:
toJson
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:
withPolicies
public CustomerPolicyProperties withPolicies(List<PolicySummary> policies)
Set the policies property: List of all policies defined at the billing scope.
Parameters:
Returns:
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:
Returns: