ProductProperties Class

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

Implements

public final class ProductProperties
implements JsonSerializable<ProductProperties>

A product.

Constructor Summary

Constructor Description
ProductProperties()

Creates an instance of ProductProperties class.

Method Summary

Modifier and Type Method and Description
AutoRenew autoRenew()

Get the autoRenew property: Indicates whether auto renewal is turned on or off for a product.

String availabilityId()

Get the availabilityId property: The availability of the product.

String billingFrequency()

Get the billingFrequency property: The frequency at which the product will be billed.

String billingProfileDisplayName()

Get the billingProfileDisplayName property: The name of the billing profile to which the product is billed.

String billingProfileId()

Get the billingProfileId property: The ID of the billing profile to which the product is billed.

String customerDisplayName()

Get the customerDisplayName property: The name of the customer for whom the product was purchased.

String customerId()

Get the customerId property: The ID of the customer for whom the product was purchased.

String displayName()

Get the displayName property: The display name of the product.

String endDate()

Get the endDate property: The date when the product will be renewed or canceled.

static ProductProperties fromJson(JsonReader jsonReader)

Reads an instance of ProductProperties from the JsonReader.

String invoiceSectionDisplayName()

Get the invoiceSectionDisplayName property: The name of the invoice section to which the product is billed.

String invoiceSectionId()

Get the invoiceSectionId property: The ID of the invoice section to which the product is billed.

ProductPropertiesLastCharge lastCharge()

Get the lastCharge property: The last month charges.

String lastChargeDate()

Get the lastChargeDate property: The date of the last charge.

String productType()

Get the productType property: The description of the type of product.

String productTypeId()

Get the productTypeId property: The ID of the type of product.

String purchaseDate()

Get the purchaseDate property: The date when the product was purchased.

Long quantity()

Get the quantity property: The quantity purchased for the product.

ProductPropertiesReseller reseller()

Get the reseller property: Reseller for this product.

String skuDescription()

Get the skuDescription property: The sku description of the product.

String skuId()

Get the skuId property: The sku ID of the product.

ProductStatus status()

Get the status property: The status of the product.

String tenantId()

Get the tenantId property: The id of the tenant in which the product is used.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ProductProperties withAutoRenew(AutoRenew autoRenew)

Set the autoRenew property: Indicates whether auto renewal is turned on or off for a product.

ProductProperties withLastCharge(ProductPropertiesLastCharge lastCharge)

Set the lastCharge property: The last month charges.

ProductProperties withReseller(ProductPropertiesReseller reseller)

Set the reseller property: Reseller for this product.

Methods inherited from java.lang.Object

Constructor Details

ProductProperties

public ProductProperties()

Creates an instance of ProductProperties class.

Method Details

autoRenew

public AutoRenew autoRenew()

Get the autoRenew property: Indicates whether auto renewal is turned on or off for a product.

Returns:

the autoRenew value.

availabilityId

public String availabilityId()

Get the availabilityId property: The availability of the product.

Returns:

the availabilityId value.

billingFrequency

public String billingFrequency()

Get the billingFrequency property: The frequency at which the product will be billed.

Returns:

the billingFrequency value.

billingProfileDisplayName

public String billingProfileDisplayName()

Get the billingProfileDisplayName property: The name of the billing profile to which the product is billed.

Returns:

the billingProfileDisplayName value.

billingProfileId

public String billingProfileId()

Get the billingProfileId property: The ID of the billing profile to which the product is billed.

Returns:

the billingProfileId value.

customerDisplayName

public String customerDisplayName()

Get the customerDisplayName property: The name of the customer for whom the product was purchased. The field is applicable only for Microsoft Partner Agreement billing account.

Returns:

the customerDisplayName value.

customerId

public String customerId()

Get the customerId property: The ID of the customer for whom the product was purchased. The field is applicable only for Microsoft Partner Agreement billing account.

Returns:

the customerId value.

displayName

public String displayName()

Get the displayName property: The display name of the product.

Returns:

the displayName value.

endDate

public String endDate()

Get the endDate property: The date when the product will be renewed or canceled.

Returns:

the endDate value.

fromJson

public static ProductProperties fromJson(JsonReader jsonReader)

Reads an instance of ProductProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

invoiceSectionDisplayName

public String invoiceSectionDisplayName()

Get the invoiceSectionDisplayName property: The name of the invoice section to which the product is billed.

Returns:

the invoiceSectionDisplayName value.

invoiceSectionId

public String invoiceSectionId()

Get the invoiceSectionId property: The ID of the invoice section to which the product is billed.

Returns:

the invoiceSectionId value.

lastCharge

public ProductPropertiesLastCharge lastCharge()

Get the lastCharge property: The last month charges.

Returns:

the lastCharge value.

lastChargeDate

public String lastChargeDate()

Get the lastChargeDate property: The date of the last charge.

Returns:

the lastChargeDate value.

productType

public String productType()

Get the productType property: The description of the type of product.

Returns:

the productType value.

productTypeId

public String productTypeId()

Get the productTypeId property: The ID of the type of product.

Returns:

the productTypeId value.

purchaseDate

public String purchaseDate()

Get the purchaseDate property: The date when the product was purchased.

Returns:

the purchaseDate value.

quantity

public Long quantity()

Get the quantity property: The quantity purchased for the product.

Returns:

the quantity value.

reseller

public ProductPropertiesReseller reseller()

Get the reseller property: Reseller for this product. The fields is not available for Microsoft Partner Agreement products.

Returns:

the reseller value.

skuDescription

public String skuDescription()

Get the skuDescription property: The sku description of the product.

Returns:

the skuDescription value.

skuId

public String skuId()

Get the skuId property: The sku ID of the product.

Returns:

the skuId value.

status

public ProductStatus status()

Get the status property: The status of the product.

Returns:

the status value.

tenantId

public String tenantId()

Get the tenantId property: The id of the tenant in which the product is used.

Returns:

the tenantId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAutoRenew

public ProductProperties withAutoRenew(AutoRenew autoRenew)

Set the autoRenew property: Indicates whether auto renewal is turned on or off for a product.

Parameters:

autoRenew - the autoRenew value to set.

Returns:

the ProductProperties object itself.

withLastCharge

public ProductProperties withLastCharge(ProductPropertiesLastCharge lastCharge)

Set the lastCharge property: The last month charges.

Parameters:

lastCharge - the lastCharge value to set.

Returns:

the ProductProperties object itself.

withReseller

public ProductProperties withReseller(ProductPropertiesReseller reseller)

Set the reseller property: Reseller for this product. The fields is not available for Microsoft Partner Agreement products.

Parameters:

reseller - the reseller value to set.

Returns:

the ProductProperties object itself.

Applies to