# 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::EventGrid::Mgmt::V2020_04_01_preview
  module Models
    #
    # Properties of the destination of an event channel.
    #
    class EventChannelDestination

      include MsRestAzure

      # @return [String] Azure subscription ID of the customer creating the
      # event channel. The partner topic
      # associated with the event channel will be created under this Azure
      # subscription.
      attr_accessor :azure_subscription_id

      # @return [String] Azure Resource Group of the customer creating the
      # event channel. The partner topic
      # associated with the event channel will be created under this resource
      # group.
      attr_accessor :resource_group

      # @return [String] Name of the partner topic associated with the event
      # channel.
      attr_accessor :partner_topic_name


      #
      # Mapper for EventChannelDestination class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'EventChannelDestination',
          type: {
            name: 'Composite',
            class_name: 'EventChannelDestination',
            model_properties: {
              azure_subscription_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'azureSubscriptionId',
                type: {
                  name: 'String'
                }
              },
              resource_group: {
                client_side_validation: true,
                required: false,
                serialized_name: 'resourceGroup',
                type: {
                  name: 'String'
                }
              },
              partner_topic_name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'partnerTopicName',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
