# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::CDN::Mgmt::V2020_09_01
  module Models
    #
    # The domain JSON object required for domain creation or update.
    #
    class AFDDomainUpdateParameters

      include MsRestAzure

      # @return [AFDDomainHttpsParameters] 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.
      attr_accessor :tls_settings

      # @return [ResourceReference] Resource reference to the Azure DNS zone
      attr_accessor :azure_dns_zone


      #
      # Mapper for AFDDomainUpdateParameters class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'AFDDomainUpdateParameters',
          type: {
            name: 'Composite',
            class_name: 'AFDDomainUpdateParameters',
            model_properties: {
              tls_settings: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.tlsSettings',
                type: {
                  name: 'Composite',
                  class_name: 'AFDDomainHttpsParameters'
                }
              },
              azure_dns_zone: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.azureDnsZone',
                type: {
                  name: 'Composite',
                  class_name: 'ResourceReference'
                }
              }
            }
          }
        }
      end
    end
  end
end
