BillingProfilePolicyProperties Class

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

Implements

public final class BillingProfilePolicyProperties
implements JsonSerializable<BillingProfilePolicyProperties>

A policy at billing profile scope.

Constructor Summary

Constructor Description
BillingProfilePolicyProperties()

Creates an instance of BillingProfilePolicyProperties class.

Method Summary

Modifier and Type Method and Description
BillingProfilePolicyPropertiesEnterpriseAgreementPolicies enterpriseAgreementPolicies()

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

static BillingProfilePolicyProperties fromJson(JsonReader jsonReader)

Reads an instance of BillingProfilePolicyProperties from the JsonReader.

InvoiceSectionLabelManagementPolicy invoiceSectionLabelManagement()

Get the invoiceSectionLabelManagement property: The policy that controls invoice section label management at invoice section scope.

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.

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.

BillingProfilePolicyProperties withEnterpriseAgreementPolicies(BillingProfilePolicyPropertiesEnterpriseAgreementPolicies enterpriseAgreementPolicies)

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

BillingProfilePolicyProperties withInvoiceSectionLabelManagement(InvoiceSectionLabelManagementPolicy invoiceSectionLabelManagement)

Set the invoiceSectionLabelManagement property: The policy that controls invoice section label management at invoice section scope.

BillingProfilePolicyProperties withMarketplacePurchases(MarketplacePurchasesPolicy marketplacePurchases)

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

BillingProfilePolicyProperties withPolicies(List<PolicySummary> policies)

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

BillingProfilePolicyProperties withReservationPurchases(ReservationPurchasesPolicy reservationPurchases)

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

BillingProfilePolicyProperties withSavingsPlanPurchases(SavingsPlanPurchasesPolicy savingsPlanPurchases)

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

BillingProfilePolicyProperties 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

BillingProfilePolicyProperties

public BillingProfilePolicyProperties()

Creates an instance of BillingProfilePolicyProperties class.

Method Details

enterpriseAgreementPolicies

public BillingProfilePolicyPropertiesEnterpriseAgreementPolicies enterpriseAgreementPolicies()

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

Returns:

the enterpriseAgreementPolicies value.

fromJson

public static BillingProfilePolicyProperties fromJson(JsonReader jsonReader)

Reads an instance of BillingProfilePolicyProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

invoiceSectionLabelManagement

public InvoiceSectionLabelManagementPolicy invoiceSectionLabelManagement()

Get the invoiceSectionLabelManagement property: The policy that controls invoice section label management at invoice section scope. This is allowed by default.

Returns:

the invoiceSectionLabelManagement value.

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.

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.

withEnterpriseAgreementPolicies

public BillingProfilePolicyProperties withEnterpriseAgreementPolicies(BillingProfilePolicyPropertiesEnterpriseAgreementPolicies enterpriseAgreementPolicies)

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

Parameters:

enterpriseAgreementPolicies - the enterpriseAgreementPolicies value to set.

Returns:

the BillingProfilePolicyProperties object itself.

withInvoiceSectionLabelManagement

public BillingProfilePolicyProperties withInvoiceSectionLabelManagement(InvoiceSectionLabelManagementPolicy invoiceSectionLabelManagement)

Set the invoiceSectionLabelManagement property: The policy that controls invoice section label management at invoice section scope. This is allowed by default.

Parameters:

invoiceSectionLabelManagement - the invoiceSectionLabelManagement value to set.

Returns:

the BillingProfilePolicyProperties object itself.

withMarketplacePurchases

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

withPolicies

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

withReservationPurchases

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

withSavingsPlanPurchases

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

withViewCharges

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

Applies to