# 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::CostManagement::Mgmt::V2019_03_01_preview
  module Models
    #
    # The ExternalBillingAccount model definition
    #
    class ExternalBillingAccountDefinition

      include MsRestAzure

      # @return [String] ExternalBillingAccount id
      attr_accessor :id

      # @return [String] ExternalBillingAccount name
      attr_accessor :name

      # @return [String] ExternalBillingAccount type
      attr_accessor :type

      # @return [String] ExternalBillingAccount kind (eg aws)
      attr_accessor :kind

      # @return [String] ExternalBillingAccount DisplayName
      attr_accessor :display_name

      # @return [String] Provider BillingAccountId (eg AWS Consolidated Account
      # number)
      attr_accessor :provider_billing_account_id

      # @return [String] Underlying ConnectorId
      attr_accessor :connector_id

      # @return [ConnectorCollectionInfo] Collection information
      attr_accessor :collection_info


      #
      # Mapper for ExternalBillingAccountDefinition class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ExternalBillingAccountDefinition',
          type: {
            name: 'Composite',
            class_name: 'ExternalBillingAccountDefinition',
            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'
                }
              },
              kind: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'kind',
                type: {
                  name: 'String'
                }
              },
              display_name: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'properties.displayName',
                type: {
                  name: 'String'
                }
              },
              provider_billing_account_id: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'properties.providerBillingAccountId',
                type: {
                  name: 'String'
                }
              },
              connector_id: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'properties.connectorId',
                type: {
                  name: 'String'
                }
              },
              collection_info: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'properties.collectionInfo',
                type: {
                  name: 'Composite',
                  class_name: 'ConnectorCollectionInfo'
                }
              }
            }
          }
        }
      end
    end
  end
end
