Class AfdDomainUpdateParameters

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

public final class AfdDomainUpdateParameters extends Object implements com.azure.json.JsonSerializable<AfdDomainUpdateParameters>
The domain JSON object required for domain creation or update.
  • Constructor Details

    • AfdDomainUpdateParameters

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

    • profileName

      public String profileName()
      Get the profileName property: The name of the profile which holds the domain.
      Returns:
      the profileName value.
    • tlsSettings

      public AfdDomainHttpsParameters tlsSettings()
      Get the tlsSettings property: The configuration specifying how to enable HTTPS for the domain - using AzureFrontDoor managed certificate or user's own certificate. If not specified, enabling ssl uses AzureFrontDoor managed certificate by default.
      Returns:
      the tlsSettings value.
    • withTlsSettings

      public AfdDomainUpdateParameters withTlsSettings(AfdDomainHttpsParameters tlsSettings)
      Set the tlsSettings property: The configuration specifying how to enable HTTPS for the domain - using AzureFrontDoor managed certificate or user's own certificate. If not specified, enabling ssl uses AzureFrontDoor managed certificate by default.
      Parameters:
      tlsSettings - the tlsSettings value to set.
      Returns:
      the AfdDomainUpdateParameters object itself.
    • azureDnsZone

      public ResourceReference azureDnsZone()
      Get the azureDnsZone property: Resource reference to the Azure DNS zone.
      Returns:
      the azureDnsZone value.
    • withAzureDnsZone

      public AfdDomainUpdateParameters withAzureDnsZone(ResourceReference azureDnsZone)
      Set the azureDnsZone property: Resource reference to the Azure DNS zone.
      Parameters:
      azureDnsZone - the azureDnsZone value to set.
      Returns:
      the AfdDomainUpdateParameters object itself.
    • preValidatedCustomDomainResourceId

      public ResourceReference preValidatedCustomDomainResourceId()
      Get the preValidatedCustomDomainResourceId property: Resource reference to the Azure resource where custom domain ownership was prevalidated.
      Returns:
      the preValidatedCustomDomainResourceId value.
    • withPreValidatedCustomDomainResourceId

      public AfdDomainUpdateParameters withPreValidatedCustomDomainResourceId(ResourceReference preValidatedCustomDomainResourceId)
      Set the preValidatedCustomDomainResourceId property: Resource reference to the Azure resource where custom domain ownership was prevalidated.
      Parameters:
      preValidatedCustomDomainResourceId - the preValidatedCustomDomainResourceId value to set.
      Returns:
      the AfdDomainUpdateParameters 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<AfdDomainUpdateParameters>
      Throws:
      IOException
    • fromJson

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