DomainPurchaseConsent Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.DomainPurchaseConsent

Implements

public final class DomainPurchaseConsent
implements JsonSerializable<DomainPurchaseConsent>

Domain purchase consent object, representing acceptance of applicable legal agreements.

Constructor Summary

Constructor Description
DomainPurchaseConsent()

Creates an instance of DomainPurchaseConsent class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime agreedAt()

Get the agreedAt property: Timestamp when the agreements were accepted.

String agreedBy()

Get the agreedBy property: Client IP address.

List<String> agreementKeys()

Get the agreementKeys property: List of applicable legal agreement keys.

static DomainPurchaseConsent fromJson(JsonReader jsonReader)

Reads an instance of DomainPurchaseConsent from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DomainPurchaseConsent withAgreedAt(OffsetDateTime agreedAt)

Set the agreedAt property: Timestamp when the agreements were accepted.

DomainPurchaseConsent withAgreedBy(String agreedBy)

Set the agreedBy property: Client IP address.

DomainPurchaseConsent withAgreementKeys(List<String> agreementKeys)

Set the agreementKeys property: List of applicable legal agreement keys.

Methods inherited from java.lang.Object

Constructor Details

DomainPurchaseConsent

public DomainPurchaseConsent()

Creates an instance of DomainPurchaseConsent class.

Method Details

agreedAt

public OffsetDateTime agreedAt()

Get the agreedAt property: Timestamp when the agreements were accepted.

Returns:

the agreedAt value.

agreedBy

public String agreedBy()

Get the agreedBy property: Client IP address.

Returns:

the agreedBy value.

agreementKeys

public List agreementKeys()

Get the agreementKeys property: List of applicable legal agreement keys. This list can be retrieved using ListLegalAgreements API under TopLevelDomain resource.

Returns:

the agreementKeys value.

fromJson

public static DomainPurchaseConsent fromJson(JsonReader jsonReader)

Reads an instance of DomainPurchaseConsent from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAgreedAt

public DomainPurchaseConsent withAgreedAt(OffsetDateTime agreedAt)

Set the agreedAt property: Timestamp when the agreements were accepted.

Parameters:

agreedAt - the agreedAt value to set.

Returns:

the DomainPurchaseConsent object itself.

withAgreedBy

public DomainPurchaseConsent withAgreedBy(String agreedBy)

Set the agreedBy property: Client IP address.

Parameters:

agreedBy - the agreedBy value to set.

Returns:

the DomainPurchaseConsent object itself.

withAgreementKeys

public DomainPurchaseConsent withAgreementKeys(List agreementKeys)

Set the agreementKeys property: List of applicable legal agreement keys. This list can be retrieved using ListLegalAgreements API under TopLevelDomain resource.

Parameters:

agreementKeys - the agreementKeys value to set.

Returns:

the DomainPurchaseConsent object itself.

Applies to