SubscriptionTerm Class

  • java.lang.Object
    • com.azure.resourcemanager.dashboard.models.SubscriptionTerm

Implements

public final class SubscriptionTerm
implements JsonSerializable<SubscriptionTerm>

The current billing term of the SaaS Subscription.

Method Summary

Modifier and Type Method and Description
OffsetDateTime endDate()

Get the endDate property: The date and time in UTC of when the billing term ends.

static SubscriptionTerm fromJson(JsonReader jsonReader)

Reads an instance of SubscriptionTerm from the JsonReader.

OffsetDateTime startDate()

Get the startDate property: The date and time in UTC of when the billing term starts.

String termUnit()

Get the termUnit property: The unit of the billing term.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

endDate

public OffsetDateTime endDate()

Get the endDate property: The date and time in UTC of when the billing term ends.

Returns:

the endDate value.

fromJson

public static SubscriptionTerm fromJson(JsonReader jsonReader)

Reads an instance of SubscriptionTerm from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

startDate

public OffsetDateTime startDate()

Get the startDate property: The date and time in UTC of when the billing term starts.

Returns:

the startDate value.

termUnit

public String termUnit()

Get the termUnit property: The unit of the billing term.

Returns:

the termUnit value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to