BillingSubscriptionInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. billing. models. ProxyResourceWithTags - com.
azure. resourcemanager. billing. fluent. models. BillingSubscriptionInner
- com.
- com.
- com.
public final class BillingSubscriptionInner
extends ProxyResourceWithTags
The billing properties of a subscription.
Constructor Summary
| Constructor | Description |
|---|---|
| BillingSubscriptionInner() |
Creates an instance of Billing |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Auto |
autoRenew()
Get the auto |
| Beneficiary |
beneficiary()
Get the beneficiary property: The beneficiary of the billing subscription. |
| String |
beneficiaryTenantId()
Get the beneficiary |
| String |
billingFrequency()
Get the billing |
| Map<String,String> |
billingPolicies()
Get the billing |
| String |
billingProfileDisplayName()
Get the billing |
| String |
billingProfileId()
Get the billing |
| String |
billingProfileName()
Get the billing |
| String |
consumptionCostCenter()
Get the consumption |
| String |
customerDisplayName()
Get the customer |
| String |
customerId()
Get the customer |
| String |
customerName()
Get the customer |
| String |
displayName()
Get the display |
| String |
enrollmentAccountDisplayName()
Get the enrollment |
| String |
enrollmentAccountId()
Get the enrollment |
|
Offset |
enrollmentAccountStartDate()
Get the enrollment |
|
static
Billing |
fromJson(JsonReader jsonReader)
Reads an instance of Billing |
| String |
id()
Get the id property: Fully qualified resource Id for the resource. |
| String |
invoiceSectionDisplayName()
Get the invoice |
| String |
invoiceSectionId()
Get the invoice |
| String |
invoiceSectionName()
Get the invoice |
| Amount |
lastMonthCharges()
Get the last |
| Amount |
monthToDateCharges()
Get the month |
| String |
name()
Get the name property: The name of the resource. |
|
Next |
nextBillingCycleDetails()
Get the next |
| String |
offerId()
Get the offer |
|
Billing |
operationStatus()
Get the operation |
| String |
productCategory()
Get the product |
| String |
productType()
Get the product |
| String |
productTypeId()
Get the product |
|
Provisioning |
provisioningState()
Get the provisioning |
| String |
provisioningTenantId()
Get the provisioning |
|
Offset |
purchaseDate()
Get the purchase |
| Long |
quantity()
Get the quantity property: The quantity of licenses or fulfillment units for the subscription. |
|
Renewal |
renewalTermDetails()
Get the renewal |
| Reseller |
reseller()
Get the reseller property: Reseller for this subscription. |
| String |
resourceUri()
Get the resource |
| String |
skuDescription()
Get the sku |
| String |
skuId()
Get the sku |
|
Billing |
status()
Get the status property: The status of the subscription. |
|
Subscription |
subscriptionEnrollmentAccountStatus()
Get the subscription |
| String |
subscriptionId()
Get the subscription |
|
List<Billing |
suspensionReasonDetails()
Get the suspension |
| List<String> |
suspensionReasons()
Get the suspension |
|
System |
systemData()
Get the system |
|
System |
systemOverrides()
Get the system |
| String |
termDuration()
Get the term |
|
Offset |
termEndDate()
Get the term |
|
Offset |
termStartDate()
Get the term |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the resource. |
| void |
validate()
Validates the instance. |
|
Billing |
withAutoRenew(AutoRenew autoRenew)
Set the auto |
|
Billing |
withBeneficiary(Beneficiary beneficiary)
Set the beneficiary property: The beneficiary of the billing subscription. |
|
Billing |
withBeneficiaryTenantId(String beneficiaryTenantId)
Set the beneficiary |
|
Billing |
withBillingFrequency(String billingFrequency)
Set the billing |
|
Billing |
withBillingProfileId(String billingProfileId)
Set the billing |
|
Billing |
withConsumptionCostCenter(String consumptionCostCenter)
Set the consumption |
|
Billing |
withCustomerId(String customerId)
Set the customer |
|
Billing |
withDisplayName(String displayName)
Set the display |
|
Billing |
withInvoiceSectionId(String invoiceSectionId)
Set the invoice |
|
Billing |
withProductTypeId(String productTypeId)
Set the product |
|
Billing |
withProvisioningTenantId(String provisioningTenantId)
Set the provisioning |
|
Billing |
withQuantity(Long quantity)
Set the quantity property: The quantity of licenses or fulfillment units for the subscription. |
|
Billing |
withSkuId(String skuId)
Set the sku |
|
Billing |
withSystemOverrides(SystemOverrides systemOverrides)
Set the system |
|
Billing |
withTags(Map<String,String> tags)
Set the tags property: Dictionary of metadata associated with the resource. |
|
Billing |
withTermDuration(String termDuration)
Set the term |
Methods inherited from ProxyResourceWithTags
Methods inherited from java.lang.Object
Constructor Details
BillingSubscriptionInner
public BillingSubscriptionInner()
Creates an instance of BillingSubscriptionInner class.
Method Details
autoRenew
public AutoRenew autoRenew()
Get the autoRenew property: Indicates whether auto renewal is turned on or off for a product.
Returns:
beneficiary
public Beneficiary beneficiary()
Get the beneficiary property: The beneficiary of the billing subscription.
Returns:
beneficiaryTenantId
public String beneficiaryTenantId()
Get the beneficiaryTenantId property: The provisioning tenant of the subscription.
Returns:
billingFrequency
public String billingFrequency()
Get the billingFrequency property: The billing frequency in ISO8601 format of product in the subscription. Example: P1M, P3M, P1Y.
Returns:
billingPolicies
public Map<String,String> billingPolicies()
Get the billingPolicies property: Dictionary of billing policies associated with the subscription.
Returns:
billingProfileDisplayName
public String billingProfileDisplayName()
Get the billingProfileDisplayName property: The name of the billing profile.
Returns:
billingProfileId
public String billingProfileId()
Get the billingProfileId property: The fully qualified ID that uniquely identifies a billing profile.
Returns:
billingProfileName
public String billingProfileName()
Get the billingProfileName property: The ID that uniquely identifies a billing profile.
Returns:
consumptionCostCenter
public String consumptionCostCenter()
Get the consumptionCostCenter property: The cost center applied to the subscription. This field is only available for consumption subscriptions of Microsoft Customer Agreement or Enterprise Agreement Type billing accounts.
Returns:
customerDisplayName
public String customerDisplayName()
Get the customerDisplayName property: The name of the customer.
Returns:
customerId
public String customerId()
Get the customerId property: The fully qualified ID that uniquely identifies a customer.
Returns:
customerName
public String customerName()
Get the customerName property: The ID that uniquely identifies a customer.
Returns:
displayName
public String displayName()
Get the displayName property: The name of the billing subscription.
Returns:
enrollmentAccountDisplayName
public String enrollmentAccountDisplayName()
Get the enrollmentAccountDisplayName property: The enrollment Account name associated with the subscription. This field is available only for the Enterprise Agreement Type billing accounts.
Returns:
enrollmentAccountId
public String enrollmentAccountId()
Get the enrollmentAccountId property: The enrollment Account ID associated with the subscription. This field is available only for the Enterprise Agreement Type billing accounts.
Returns:
enrollmentAccountStartDate
public OffsetDateTime enrollmentAccountStartDate()
Get the enrollmentAccountStartDate property: The enrollment Account and the subscription association start date. This field is available only for the Enterprise Agreement Type.
Returns:
fromJson
public static BillingSubscriptionInner fromJson(JsonReader jsonReader)
Reads an instance of BillingSubscriptionInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
BillingSubscriptionInner.id()Returns:
invoiceSectionDisplayName
public String invoiceSectionDisplayName()
Get the invoiceSectionDisplayName property: The name of the invoice section.
Returns:
invoiceSectionId
public String invoiceSectionId()
Get the invoiceSectionId property: The fully qualified ID that uniquely identifies an invoice section.
Returns:
invoiceSectionName
public String invoiceSectionName()
Get the invoiceSectionName property: The ID that uniquely identifies an invoice section.
Returns:
lastMonthCharges
public Amount lastMonthCharges()
Get the lastMonthCharges property: The last month's charges. This field is only available for usage based subscriptions of Microsoft Customer Agreement billing accounts.
Returns:
monthToDateCharges
public Amount monthToDateCharges()
Get the monthToDateCharges property: The current month to date charges. This field is only available for usage based subscriptions of Microsoft Customer Agreement billing accounts.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
BillingSubscriptionInner.name()Returns:
nextBillingCycleDetails
public NextBillingCycleDetails nextBillingCycleDetails()
Get the nextBillingCycleDetails property: Next billing cycle details of the subscription.
Returns:
offerId
public String offerId()
Get the offerId property: The offer ID for the subscription. This field is only available for the Microsoft Online Services Program billing accounts.
Returns:
operationStatus
public BillingSubscriptionOperationStatus operationStatus()
Get the operationStatus property: The status of an operation on the subscription. When None, there is no ongoing operation. When LockedForUpdate, write operations will be blocked on the Billing Subscription. Other is the default value and you may need to refer to the latest API version for more details.
Returns:
productCategory
public String productCategory()
Get the productCategory property: The category of the product for which the subscription is purchased. Possible values include: AzureSupport, Hardware, ReservationOrder, SaaS, SavingsPlanOrder, Software, UsageBased, Other.
Returns:
productType
public String productType()
Get the productType property: Type of the product for which the subscription is purchased.
Returns:
productTypeId
public String productTypeId()
Get the productTypeId property: Id of the product for which the subscription is purchased.
Returns:
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: The provisioning state of the resource during a long-running operation.
Returns:
provisioningTenantId
public String provisioningTenantId()
Get the provisioningTenantId property: The tenant in which the subscription is provisioned.
Returns:
purchaseDate
public OffsetDateTime purchaseDate()
Get the purchaseDate property: Purchase date of the product in UTC time.
Returns:
quantity
public Long quantity()
Get the quantity property: The quantity of licenses or fulfillment units for the subscription.
Returns:
renewalTermDetails
public RenewalTermDetails renewalTermDetails()
Get the renewalTermDetails property: Details for the next renewal term of a subscription.
Returns:
reseller
public Reseller reseller()
Get the reseller property: Reseller for this subscription. The fields is not available for Microsoft Partner Agreement billing accounts.
Returns:
resourceUri
public String resourceUri()
Get the resourceUri property: Unique identifier of the linked resource.
Returns:
skuDescription
public String skuDescription()
Get the skuDescription property: The SKU description of the product for which the subscription is purchased. This field is is only available for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement.
Returns:
skuId
public String skuId()
Get the skuId property: The SKU ID of the product for which the subscription is purchased. This field is is only available for Microsoft Customer Agreement billing accounts.
Returns:
status
public BillingSubscriptionStatus status()
Get the status property: The status of the subscription. This field is not available for Enterprise Agreement billing accounts.
Returns:
subscriptionEnrollmentAccountStatus
public SubscriptionEnrollmentAccountStatus subscriptionEnrollmentAccountStatus()
Get the subscriptionEnrollmentAccountStatus property: The current enrollment account status of the subscription. This field is available only for the Enterprise Agreement Type.
Returns:
subscriptionId
public String subscriptionId()
Get the subscriptionId property: The ID of the subscription.
Returns:
suspensionReasonDetails
public List<BillingSubscriptionStatusDetails> suspensionReasonDetails()
Get the suspensionReasonDetails property: The suspension details for a subscription. This field is not available for Enterprise Agreement billing accounts.
Returns:
suspensionReasons
public List<String> suspensionReasons()
Get the suspensionReasons property: The suspension reason for a subscription. This field is not available for Enterprise Agreement billing accounts.
Returns:
systemData
public SystemData systemData()
Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
Overrides:
BillingSubscriptionInner.systemData()Returns:
systemOverrides
public SystemOverrides systemOverrides()
Get the systemOverrides property: System imposed policies that regulate behavior of the subscription.
Returns:
termDuration
public String termDuration()
Get the termDuration property: The duration in ISO8601 format for which you can use the subscription. Example: P1M, P3M, P1Y.
Returns:
termEndDate
public OffsetDateTime termEndDate()
Get the termEndDate property: End date of the term in UTC time.
Returns:
termStartDate
public OffsetDateTime termStartDate()
Get the termStartDate property: Start date of the term in UTC time.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
BillingSubscriptionInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
BillingSubscriptionInner.type()Returns:
validate
public void validate()
Validates the instance.
Overrides:
BillingSubscriptionInner.validate()withAutoRenew
public BillingSubscriptionInner withAutoRenew(AutoRenew autoRenew)
Set the autoRenew property: Indicates whether auto renewal is turned on or off for a product.
Parameters:
Returns:
withBeneficiary
public BillingSubscriptionInner withBeneficiary(Beneficiary beneficiary)
Set the beneficiary property: The beneficiary of the billing subscription.
Parameters:
Returns:
withBeneficiaryTenantId
public BillingSubscriptionInner withBeneficiaryTenantId(String beneficiaryTenantId)
Set the beneficiaryTenantId property: The provisioning tenant of the subscription.
Parameters:
Returns:
withBillingFrequency
public BillingSubscriptionInner withBillingFrequency(String billingFrequency)
Set the billingFrequency property: The billing frequency in ISO8601 format of product in the subscription. Example: P1M, P3M, P1Y.
Parameters:
Returns:
withBillingProfileId
public BillingSubscriptionInner withBillingProfileId(String billingProfileId)
Set the billingProfileId property: The fully qualified ID that uniquely identifies a billing profile.
Parameters:
Returns:
withConsumptionCostCenter
public BillingSubscriptionInner withConsumptionCostCenter(String consumptionCostCenter)
Set the consumptionCostCenter property: The cost center applied to the subscription. This field is only available for consumption subscriptions of Microsoft Customer Agreement or Enterprise Agreement Type billing accounts.
Parameters:
Returns:
withCustomerId
public BillingSubscriptionInner withCustomerId(String customerId)
Set the customerId property: The fully qualified ID that uniquely identifies a customer.
Parameters:
Returns:
withDisplayName
public BillingSubscriptionInner withDisplayName(String displayName)
Set the displayName property: The name of the billing subscription.
Parameters:
Returns:
withInvoiceSectionId
public BillingSubscriptionInner withInvoiceSectionId(String invoiceSectionId)
Set the invoiceSectionId property: The fully qualified ID that uniquely identifies an invoice section.
Parameters:
Returns:
withProductTypeId
public BillingSubscriptionInner withProductTypeId(String productTypeId)
Set the productTypeId property: Id of the product for which the subscription is purchased.
Parameters:
Returns:
withProvisioningTenantId
public BillingSubscriptionInner withProvisioningTenantId(String provisioningTenantId)
Set the provisioningTenantId property: The tenant in which the subscription is provisioned.
Parameters:
Returns:
withQuantity
public BillingSubscriptionInner withQuantity(Long quantity)
Set the quantity property: The quantity of licenses or fulfillment units for the subscription.
Parameters:
Returns:
withSkuId
public BillingSubscriptionInner withSkuId(String skuId)
Set the skuId property: The SKU ID of the product for which the subscription is purchased. This field is is only available for Microsoft Customer Agreement billing accounts.
Parameters:
Returns:
withSystemOverrides
public BillingSubscriptionInner withSystemOverrides(SystemOverrides systemOverrides)
Set the systemOverrides property: System imposed policies that regulate behavior of the subscription.
Parameters:
Returns:
withTags
public BillingSubscriptionInner withTags(Map<String,String> tags)
Set the tags property: Dictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /.
Overrides:
BillingSubscriptionInner.withTags(Map<String,String> tags)Parameters:
withTermDuration
public BillingSubscriptionInner withTermDuration(String termDuration)
Set the termDuration property: The duration in ISO8601 format for which you can use the subscription. Example: P1M, P3M, P1Y.
Parameters:
Returns: