PaymentTermsEligibilityDetail Class

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

Implements

public final class PaymentTermsEligibilityDetail
implements JsonSerializable<PaymentTermsEligibilityDetail>

Details of the payment terms eligibility.

Constructor Summary

Constructor Description
PaymentTermsEligibilityDetail()

Creates an instance of PaymentTermsEligibilityDetail class.

Method Summary

Modifier and Type Method and Description
PaymentTermsEligibilityCode code()

Get the code property: Indicates the reason for the ineligibility of the payment terms.

static PaymentTermsEligibilityDetail fromJson(JsonReader jsonReader)

Reads an instance of PaymentTermsEligibilityDetail from the JsonReader.

String message()

Get the message property: Indicates the message for the ineligibility of the payment terms.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PaymentTermsEligibilityDetail withCode(PaymentTermsEligibilityCode code)

Set the code property: Indicates the reason for the ineligibility of the payment terms.

PaymentTermsEligibilityDetail withMessage(String message)

Set the message property: Indicates the message for the ineligibility of the payment terms.

Methods inherited from java.lang.Object

Constructor Details

PaymentTermsEligibilityDetail

public PaymentTermsEligibilityDetail()

Creates an instance of PaymentTermsEligibilityDetail class.

Method Details

code

public PaymentTermsEligibilityCode code()

Get the code property: Indicates the reason for the ineligibility of the payment terms.

Returns:

the code value.

fromJson

public static PaymentTermsEligibilityDetail fromJson(JsonReader jsonReader)

Reads an instance of PaymentTermsEligibilityDetail from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

message

public String message()

Get the message property: Indicates the message for the ineligibility of the payment terms.

Returns:

the message value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCode

public PaymentTermsEligibilityDetail withCode(PaymentTermsEligibilityCode code)

Set the code property: Indicates the reason for the ineligibility of the payment terms.

Parameters:

code - the code value to set.

Returns:

the PaymentTermsEligibilityDetail object itself.

withMessage

public PaymentTermsEligibilityDetail withMessage(String message)

Set the message property: Indicates the message for the ineligibility of the payment terms.

Parameters:

message - the message value to set.

Returns:

the PaymentTermsEligibilityDetail object itself.

Applies to