Class CustomDomain

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

public final class CustomDomain extends Object implements com.azure.json.JsonSerializable<CustomDomain>
The custom domain assigned to this storage account. This can be set via Update.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of CustomDomain from the JsonReader.
    Get the name property: Gets or sets the custom domain name assigned to the storage account.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    Get the useSubDomainName property: Indicates whether indirect CName validation is enabled.
    void
    Validates the instance.
    Set the name property: Gets or sets the custom domain name assigned to the storage account.
    withUseSubDomainName(Boolean useSubDomainName)
    Set the useSubDomainName property: Indicates whether indirect CName validation is enabled.

    Methods inherited from class 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

    • CustomDomain

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

    • name

      public String name()
      Get the name property: Gets or sets the custom domain name assigned to the storage account. Name is the CNAME source.
      Returns:
      the name value.
    • withName

      public CustomDomain withName(String name)
      Set the name property: Gets or sets the custom domain name assigned to the storage account. Name is the CNAME source.
      Parameters:
      name - the name value to set.
      Returns:
      the CustomDomain object itself.
    • useSubDomainName

      public Boolean useSubDomainName()
      Get the useSubDomainName property: Indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates.
      Returns:
      the useSubDomainName value.
    • withUseSubDomainName

      public CustomDomain withUseSubDomainName(Boolean useSubDomainName)
      Set the useSubDomainName property: Indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates.
      Parameters:
      useSubDomainName - the useSubDomainName value to set.
      Returns:
      the CustomDomain 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<CustomDomain>
      Throws:
      IOException
    • fromJson

      public static CustomDomain fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of CustomDomain from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of CustomDomain if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the CustomDomain.