BillingAccountPolicyProperties Class
- java.
lang. Object - com.
azure. resourcemanager. billing. models. BillingAccountPolicyProperties
- com.
Implements
public final class BillingAccountPolicyProperties
implements JsonSerializable<BillingAccountPolicyProperties>
A policy at billing account scope.
Constructor Summary
| Constructor | Description |
|---|---|
| BillingAccountPolicyProperties() |
Creates an instance of Billing |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Billing |
enterpriseAgreementPolicies()
Get the enterprise |
|
static
Billing |
fromJson(JsonReader jsonReader)
Reads an instance of Billing |
|
Marketplace |
marketplacePurchases()
Get the marketplace |
|
List<Policy |
policies()
Get the policies property: List of all policies defined at the billing scope. |
|
Provisioning |
provisioningState()
Get the provisioning |
|
Reservation |
reservationPurchases()
Get the reservation |
|
Savings |
savingsPlanPurchases()
Get the savings |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Billing |
withEnterpriseAgreementPolicies(BillingAccountPolicyPropertiesEnterpriseAgreementPolicies enterpriseAgreementPolicies)
Set the enterprise |
|
Billing |
withMarketplacePurchases(MarketplacePurchasesPolicy marketplacePurchases)
Set the marketplace |
|
Billing |
withPolicies(List<PolicySummary> policies)
Set the policies property: List of all policies defined at the billing scope. |
|
Billing |
withReservationPurchases(ReservationPurchasesPolicy reservationPurchases)
Set the reservation |
|
Billing |
withSavingsPlanPurchases(SavingsPlanPurchasesPolicy savingsPlanPurchases)
Set the savings |
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:
fromJson
public static BillingAccountPolicyProperties fromJson(JsonReader jsonReader)
Reads an instance of BillingAccountPolicyProperties from the JsonReader.
Parameters:
Returns:
Throws:
marketplacePurchases
public MarketplacePurchasesPolicy marketplacePurchases()
Get the marketplacePurchases property: The policy that controls whether Azure marketplace purchases are allowed.
Returns:
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:
reservationPurchases
public ReservationPurchasesPolicy reservationPurchases()
Get the reservationPurchases property: The policy that controls whether Azure reservation purchases are allowed.
Returns:
savingsPlanPurchases
public SavingsPlanPurchasesPolicy savingsPlanPurchases()
Get the savingsPlanPurchases property: The policy that controls whether users with Azure savings plan purchase are allowed.
Returns:
toJson
validate
public void validate()
Validates the instance.
withEnterpriseAgreementPolicies
public BillingAccountPolicyProperties withEnterpriseAgreementPolicies(BillingAccountPolicyPropertiesEnterpriseAgreementPolicies enterpriseAgreementPolicies)
Set the enterpriseAgreementPolicies property: The policies for Enterprise Agreement enrollments.
Parameters:
Returns:
withMarketplacePurchases
public BillingAccountPolicyProperties withMarketplacePurchases(MarketplacePurchasesPolicy marketplacePurchases)
Set the marketplacePurchases property: The policy that controls whether Azure marketplace purchases are allowed.
Parameters:
Returns:
withPolicies
public BillingAccountPolicyProperties withPolicies(List<PolicySummary> policies)
Set the policies property: List of all policies defined at the billing scope.
Parameters:
Returns:
withReservationPurchases
public BillingAccountPolicyProperties withReservationPurchases(ReservationPurchasesPolicy reservationPurchases)
Set the reservationPurchases property: The policy that controls whether Azure reservation purchases are allowed.
Parameters:
Returns:
withSavingsPlanPurchases
public BillingAccountPolicyProperties withSavingsPlanPurchases(SavingsPlanPurchasesPolicy savingsPlanPurchases)
Set the savingsPlanPurchases property: The policy that controls whether users with Azure savings plan purchase are allowed.
Parameters:
Returns: