BillingProfilePropertiesCurrentPaymentTerm Class
- java.
lang. Object - com.
azure. resourcemanager. billing. models. PaymentTerm - com.
azure. resourcemanager. billing. models. BillingProfilePropertiesCurrentPaymentTerm
- com.
- com.
public final class BillingProfilePropertiesCurrentPaymentTerm
extends PaymentTerm
The current payment term of the billing profile.
Constructor Summary
| Constructor | Description |
|---|---|
| BillingProfilePropertiesCurrentPaymentTerm() |
Creates an instance of Billing |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Billing |
fromJson(JsonReader jsonReader)
Reads an instance of Billing |
| Boolean |
isDefault()
Get the is |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Billing |
withEndDate(OffsetDateTime endDate)
Set the end |
|
Billing |
withStartDate(OffsetDateTime startDate)
Set the start |
|
Billing |
withTerm(String term)
Set the term property: Represents duration in netXX format. |
Methods inherited from PaymentTerm
Methods inherited from java.lang.Object
Constructor Details
BillingProfilePropertiesCurrentPaymentTerm
public BillingProfilePropertiesCurrentPaymentTerm()
Creates an instance of BillingProfilePropertiesCurrentPaymentTerm class.
Method Details
fromJson
public static BillingProfilePropertiesCurrentPaymentTerm fromJson(JsonReader jsonReader)
Reads an instance of BillingProfilePropertiesCurrentPaymentTerm from the JsonReader.
Parameters:
Returns:
Throws:
isDefault
public Boolean isDefault()
Get the isDefault property: Indicates payment term is the standard payment term.
Overrides:
BillingProfilePropertiesCurrentPaymentTerm.isDefault()Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
BillingProfilePropertiesCurrentPaymentTerm.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
BillingProfilePropertiesCurrentPaymentTerm.validate()withEndDate
public BillingProfilePropertiesCurrentPaymentTerm withEndDate(OffsetDateTime endDate)
Set the endDate property: The date on when the defined 'Payment Term' will end and is always in UTC.
Overrides:
BillingProfilePropertiesCurrentPaymentTerm.withEndDate(OffsetDateTime endDate)Parameters:
withStartDate
public BillingProfilePropertiesCurrentPaymentTerm withStartDate(OffsetDateTime startDate)
Set the startDate property: The date on when the defined 'Payment Term' will be effective from and is always in UTC.
Overrides:
BillingProfilePropertiesCurrentPaymentTerm.withStartDate(OffsetDateTime startDate)Parameters:
withTerm
public BillingProfilePropertiesCurrentPaymentTerm withTerm(String term)
Set the term property: Represents duration in netXX format. Always in days.
Overrides:
BillingProfilePropertiesCurrentPaymentTerm.withTerm(String term)Parameters: