# 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::ApiManagement::Mgmt::V2019_12_01
  module Models
    #
    # Gateway hostname configuration details.
    #
    class GatewayHostnameConfigurationContract < Resource

      include MsRestAzure

      # @return [String] Hostname value. Supports valid domain name, partial or
      # full wildcard
      attr_accessor :hostname

      # @return [String] Identifier of Certificate entity that will be used for
      # TLS connection establishment
      attr_accessor :certificate_id

      # @return [Boolean] Determines whether gateway requests client
      # certificate
      attr_accessor :negotiate_client_certificate


      #
      # Mapper for GatewayHostnameConfigurationContract class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'GatewayHostnameConfigurationContract',
          type: {
            name: 'Composite',
            class_name: 'GatewayHostnameConfigurationContract',
            model_properties: {
              id: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'id',
                type: {
                  name: 'String'
                }
              },
              name: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              type: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'type',
                type: {
                  name: 'String'
                }
              },
              hostname: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.hostname',
                type: {
                  name: 'String'
                }
              },
              certificate_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.certificateId',
                type: {
                  name: 'String'
                }
              },
              negotiate_client_certificate: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.negotiateClientCertificate',
                type: {
                  name: 'Boolean'
                }
              }
            }
          }
        }
      end
    end
  end
end
