RenewalTermDetails Class

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

Implements

public final class RenewalTermDetails
implements JsonSerializable<RenewalTermDetails>

Details for the next renewal term of a subscription.

Constructor Summary

Constructor Description
RenewalTermDetails()

Creates an instance of RenewalTermDetails class.

Method Summary

Modifier and Type Method and Description
String billingFrequency()

Get the billingFrequency property: The billing frequency in ISO8601 format of product in the subscription.

static RenewalTermDetails fromJson(JsonReader jsonReader)

Reads an instance of RenewalTermDetails from the JsonReader.

String productId()

Get the productId property: Id of the product for which the subscription is purchased.

String productTypeId()

Get the productTypeId property: Type Id of the product for which the subscription is purchased.

Long quantity()

Get the quantity property: The quantity of licenses or fulfillment units for the subscription.

String skuId()

Get the skuId property: The SKU ID of the product for which the subscription is purchased.

String termDuration()

Get the termDuration property: The duration in ISO8601 format for which you can use the subscription.

OffsetDateTime termEndDate()

Get the termEndDate property: End date of the term in UTC time.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RenewalTermDetails withQuantity(Long quantity)

Set the quantity property: The quantity of licenses or fulfillment units for the subscription.

Methods inherited from java.lang.Object

Constructor Details

RenewalTermDetails

public RenewalTermDetails()

Creates an instance of RenewalTermDetails class.

Method Details

billingFrequency

public String billingFrequency()

Get the billingFrequency property: The billing frequency in ISO8601 format of product in the subscription. Example: P1M, P3M, P1Y.

Returns:

the billingFrequency value.

fromJson

public static RenewalTermDetails fromJson(JsonReader jsonReader)

Reads an instance of RenewalTermDetails from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

productId

public String productId()

Get the productId property: Id of the product for which the subscription is purchased.

Returns:

the productId value.

productTypeId

public String productTypeId()

Get the productTypeId property: Type Id of the product for which the subscription is purchased.

Returns:

the productTypeId value.

quantity

public Long quantity()

Get the quantity property: The quantity of licenses or fulfillment units for the subscription.

Returns:

the quantity value.

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:

the skuId value.

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:

the termDuration value.

termEndDate

public OffsetDateTime termEndDate()

Get the termEndDate property: End date of the term in UTC time.

Returns:

the termEndDate value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withQuantity

public RenewalTermDetails withQuantity(Long quantity)

Set the quantity property: The quantity of licenses or fulfillment units for the subscription.

Parameters:

quantity - the quantity value to set.

Returns:

the RenewalTermDetails object itself.

Applies to