AgreementProperties Class

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

Implements

public final class AgreementProperties
implements JsonSerializable<AgreementProperties>

An agreement.

Constructor Summary

Constructor Description
AgreementProperties()

Creates an instance of AgreementProperties class.

Method Summary

Modifier and Type Method and Description
AcceptanceMode acceptanceMode()

Get the acceptanceMode property: The mode of acceptance for an agreement.

String agreementLink()

Get the agreementLink property: The URL to download the agreement.

List<BillingProfileInfo> billingProfileInfo()

Get the billingProfileInfo property: The list of billing profiles associated with agreement and present only for specific agreements.

Category category()

Get the category property: The category of the agreement.

String displayName()

Get the displayName property: The name of the agreement signed by a customer.

OffsetDateTime effectiveDate()

Get the effectiveDate property: The date from which the agreement is effective.

OffsetDateTime expirationDate()

Get the expirationDate property: The date when the agreement expires.

static AgreementProperties fromJson(JsonReader jsonReader)

Reads an instance of AgreementProperties from the JsonReader.

String leadBillingAccountName()

Get the leadBillingAccountName property: The ID of the lead billing account if this agreement is part of the Customer Affiliate Purchase Terms.

List<Participant> participants()

Get the participants property: The list of participants that participates in acceptance of an agreement.

String status()

Get the status property: The current status of the agreement.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

AgreementProperties

public AgreementProperties()

Creates an instance of AgreementProperties class.

Method Details

acceptanceMode

public AcceptanceMode acceptanceMode()

Get the acceptanceMode property: The mode of acceptance for an agreement.

Returns:

the acceptanceMode value.

agreementLink

public String agreementLink()

Get the agreementLink property: The URL to download the agreement.

Returns:

the agreementLink value.

billingProfileInfo

public List<BillingProfileInfo> billingProfileInfo()

Get the billingProfileInfo property: The list of billing profiles associated with agreement and present only for specific agreements.

Returns:

the billingProfileInfo value.

category

public Category category()

Get the category property: The category of the agreement.

Returns:

the category value.

displayName

public String displayName()

Get the displayName property: The name of the agreement signed by a customer.

Returns:

the displayName value.

effectiveDate

public OffsetDateTime effectiveDate()

Get the effectiveDate property: The date from which the agreement is effective.

Returns:

the effectiveDate value.

expirationDate

public OffsetDateTime expirationDate()

Get the expirationDate property: The date when the agreement expires.

Returns:

the expirationDate value.

fromJson

public static AgreementProperties fromJson(JsonReader jsonReader)

Reads an instance of AgreementProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

leadBillingAccountName

public String leadBillingAccountName()

Get the leadBillingAccountName property: The ID of the lead billing account if this agreement is part of the Customer Affiliate Purchase Terms.

Returns:

the leadBillingAccountName value.

participants

public List<Participant> participants()

Get the participants property: The list of participants that participates in acceptance of an agreement.

Returns:

the participants value.

status

public String status()

Get the status property: The current status of the agreement.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to