Class TopLevelDomainAgreementOption

java.lang.Object
com.azure.resourcemanager.appservice.models.TopLevelDomainAgreementOption
All Implemented Interfaces:
com.azure.json.JsonSerializable<TopLevelDomainAgreementOption>

public final class TopLevelDomainAgreementOption extends Object implements com.azure.json.JsonSerializable<TopLevelDomainAgreementOption>
Options for retrieving the list of top level domain legal agreements.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of TopLevelDomainAgreementOption class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the forTransfer property: If <code>true</code>, then the list of agreements will include agreements for domain transfer as well; otherwise, <code>false</code>.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of TopLevelDomainAgreementOption from the JsonReader.
    Get the includePrivacy property: If <code>true</code>, then the list of agreements will include agreements for domain privacy as well; otherwise, <code>false</code>.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    withForTransfer(Boolean forTransfer)
    Set the forTransfer property: If <code>true</code>, then the list of agreements will include agreements for domain transfer as well; otherwise, <code>false</code>.
    withIncludePrivacy(Boolean includePrivacy)
    Set the includePrivacy property: If <code>true</code>, then the list of agreements will include agreements for domain privacy as well; otherwise, <code>false</code>.

    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

    • TopLevelDomainAgreementOption

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

    • includePrivacy

      public Boolean includePrivacy()
      Get the includePrivacy property: If <code>true</code>, then the list of agreements will include agreements for domain privacy as well; otherwise, <code>false</code>.
      Returns:
      the includePrivacy value.
    • withIncludePrivacy

      public TopLevelDomainAgreementOption withIncludePrivacy(Boolean includePrivacy)
      Set the includePrivacy property: If <code>true</code>, then the list of agreements will include agreements for domain privacy as well; otherwise, <code>false</code>.
      Parameters:
      includePrivacy - the includePrivacy value to set.
      Returns:
      the TopLevelDomainAgreementOption object itself.
    • forTransfer

      public Boolean forTransfer()
      Get the forTransfer property: If <code>true</code>, then the list of agreements will include agreements for domain transfer as well; otherwise, <code>false</code>.
      Returns:
      the forTransfer value.
    • withForTransfer

      public TopLevelDomainAgreementOption withForTransfer(Boolean forTransfer)
      Set the forTransfer property: If <code>true</code>, then the list of agreements will include agreements for domain transfer as well; otherwise, <code>false</code>.
      Parameters:
      forTransfer - the forTransfer value to set.
      Returns:
      the TopLevelDomainAgreementOption 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<TopLevelDomainAgreementOption>
      Throws:
      IOException
    • fromJson

      public static TopLevelDomainAgreementOption fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of TopLevelDomainAgreementOption from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of TopLevelDomainAgreementOption 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 TopLevelDomainAgreementOption.