Class DomainPurchaseConsent
java.lang.Object
com.azure.resourcemanager.appservice.models.DomainPurchaseConsent
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DomainPurchaseConsent>
public final class DomainPurchaseConsent
extends Object
implements com.azure.json.JsonSerializable<DomainPurchaseConsent>
Domain purchase consent object, representing acceptance of applicable legal agreements.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionagreedAt()
Get the agreedAt property: Timestamp when the agreements were accepted.agreedBy()
Get the agreedBy property: Client IP address.Get the agreementKeys property: List of applicable legal agreement keys.static DomainPurchaseConsent
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of DomainPurchaseConsent from the JsonReader.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withAgreedAt
(OffsetDateTime agreedAt) Set the agreedAt property: Timestamp when the agreements were accepted.withAgreedBy
(String agreedBy) Set the agreedBy property: Client IP address.withAgreementKeys
(List<String> agreementKeys) Set the agreementKeys property: List of applicable legal agreement keys.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DomainPurchaseConsent
public DomainPurchaseConsent()Creates an instance of DomainPurchaseConsent class.
-
-
Method Details
-
agreementKeys
Get the agreementKeys property: List of applicable legal agreement keys. This list can be retrieved using ListLegalAgreements API under <code>TopLevelDomain</code> resource.- Returns:
- the agreementKeys value.
-
withAgreementKeys
Set the agreementKeys property: List of applicable legal agreement keys. This list can be retrieved using ListLegalAgreements API under <code>TopLevelDomain</code> resource.- Parameters:
agreementKeys
- the agreementKeys value to set.- Returns:
- the DomainPurchaseConsent object itself.
-
agreedBy
Get the agreedBy property: Client IP address.- Returns:
- the agreedBy value.
-
withAgreedBy
Set the agreedBy property: Client IP address.- Parameters:
agreedBy
- the agreedBy value to set.- Returns:
- the DomainPurchaseConsent object itself.
-
agreedAt
Get the agreedAt property: Timestamp when the agreements were accepted.- Returns:
- the agreedAt value.
-
withAgreedAt
Set the agreedAt property: Timestamp when the agreements were accepted.- Parameters:
agreedAt
- the agreedAt value to set.- Returns:
- the DomainPurchaseConsent object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<DomainPurchaseConsent>
- Throws:
IOException
-
fromJson
public static DomainPurchaseConsent fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-