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 Details

    • DomainPurchaseConsent

      public DomainPurchaseConsent()
      Creates an instance of DomainPurchaseConsent class.
  • Method Details

    • agreementKeys

      public List<String> 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

      public DomainPurchaseConsent withAgreementKeys(List<String> agreementKeys)
      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

      public String agreedBy()
      Get the agreedBy property: Client IP address.
      Returns:
      the agreedBy value.
    • 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.
    • agreedAt

      public OffsetDateTime agreedAt()
      Get the agreedAt property: Timestamp when the agreements were accepted.
      Returns:
      the agreedAt value.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.