BillingAccountPolicyProperties Class

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

Implements

public final class BillingAccountPolicyProperties
implements JsonSerializable<BillingAccountPolicyProperties>

A policy at billing account scope.

Constructor Summary

Constructor Description
BillingAccountPolicyProperties()

Creates an instance of BillingAccountPolicyProperties class.

Method Summary

Modifier and Type Method and Description
BillingAccountPolicyPropertiesEnterpriseAgreementPolicies enterpriseAgreementPolicies()

Get the enterpriseAgreementPolicies property: The policies for Enterprise Agreement enrollments.

static BillingAccountPolicyProperties fromJson(JsonReader jsonReader)

Reads an instance of BillingAccountPolicyProperties from the JsonReader.

MarketplacePurchasesPolicy marketplacePurchases()

Get the marketplacePurchases property: The policy that controls whether Azure marketplace purchases are allowed.

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.

ReservationPurchasesPolicy reservationPurchases()

Get the reservationPurchases property: The policy that controls whether Azure reservation purchases are allowed.

SavingsPlanPurchasesPolicy savingsPlanPurchases()

Get the savingsPlanPurchases property: The policy that controls whether users with Azure savings plan purchase are allowed.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

BillingAccountPolicyProperties withEnterpriseAgreementPolicies(BillingAccountPolicyPropertiesEnterpriseAgreementPolicies enterpriseAgreementPolicies)

Set the enterpriseAgreementPolicies property: The policies for Enterprise Agreement enrollments.

BillingAccountPolicyProperties withMarketplacePurchases(MarketplacePurchasesPolicy marketplacePurchases)

Set the marketplacePurchases property: The policy that controls whether Azure marketplace purchases are allowed.

BillingAccountPolicyProperties withPolicies(List<PolicySummary> policies)

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

BillingAccountPolicyProperties withReservationPurchases(ReservationPurchasesPolicy reservationPurchases)

Set the reservationPurchases property: The policy that controls whether Azure reservation purchases are allowed.

BillingAccountPolicyProperties withSavingsPlanPurchases(SavingsPlanPurchasesPolicy savingsPlanPurchases)

Set the savingsPlanPurchases property: The policy that controls whether users with Azure savings plan purchase are allowed.

Methods inherited from java.lang.Object

Constructor Details

BillingAccountPolicyProperties

public BillingAccountPolicyProperties()

Creates an instance of BillingAccountPolicyProperties class.

Method Details

enterpriseAgreementPolicies

public BillingAccountPolicyPropertiesEnterpriseAgreementPolicies enterpriseAgreementPolicies()

Get the enterpriseAgreementPolicies property: The policies for Enterprise Agreement enrollments.

Returns:

the enterpriseAgreementPolicies value.

fromJson

public static BillingAccountPolicyProperties fromJson(JsonReader jsonReader)

Reads an instance of BillingAccountPolicyProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

marketplacePurchases

public MarketplacePurchasesPolicy marketplacePurchases()

Get the marketplacePurchases property: The policy that controls whether Azure marketplace purchases are allowed.

Returns:

the marketplacePurchases value.

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.

reservationPurchases

public ReservationPurchasesPolicy reservationPurchases()

Get the reservationPurchases property: The policy that controls whether Azure reservation purchases are allowed.

Returns:

the reservationPurchases value.

savingsPlanPurchases

public SavingsPlanPurchasesPolicy savingsPlanPurchases()

Get the savingsPlanPurchases property: The policy that controls whether users with Azure savings plan purchase are allowed.

Returns:

the savingsPlanPurchases value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEnterpriseAgreementPolicies

public BillingAccountPolicyProperties withEnterpriseAgreementPolicies(BillingAccountPolicyPropertiesEnterpriseAgreementPolicies enterpriseAgreementPolicies)

Set the enterpriseAgreementPolicies property: The policies for Enterprise Agreement enrollments.

Parameters:

enterpriseAgreementPolicies - the enterpriseAgreementPolicies value to set.

Returns:

the BillingAccountPolicyProperties object itself.

withMarketplacePurchases

public BillingAccountPolicyProperties withMarketplacePurchases(MarketplacePurchasesPolicy marketplacePurchases)

Set the marketplacePurchases property: The policy that controls whether Azure marketplace purchases are allowed.

Parameters:

marketplacePurchases - the marketplacePurchases value to set.

Returns:

the BillingAccountPolicyProperties object itself.

withPolicies

public BillingAccountPolicyProperties 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 BillingAccountPolicyProperties object itself.

withReservationPurchases

public BillingAccountPolicyProperties withReservationPurchases(ReservationPurchasesPolicy reservationPurchases)

Set the reservationPurchases property: The policy that controls whether Azure reservation purchases are allowed.

Parameters:

reservationPurchases - the reservationPurchases value to set.

Returns:

the BillingAccountPolicyProperties object itself.

withSavingsPlanPurchases

public BillingAccountPolicyProperties withSavingsPlanPurchases(SavingsPlanPurchasesPolicy savingsPlanPurchases)

Set the savingsPlanPurchases property: The policy that controls whether users with Azure savings plan purchase are allowed.

Parameters:

savingsPlanPurchases - the savingsPlanPurchases value to set.

Returns:

the BillingAccountPolicyProperties object itself.

Applies to