# 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::Consumption::Mgmt::V2018_11_01_preview
  module Models
    #
    # Address details.
    #
    class Address

      include MsRestAzure

      # @return [String] Address Line1.
      attr_accessor :address_line1

      # @return [String] Address Line2.
      attr_accessor :address_line2

      # @return [String] Address Line3.
      attr_accessor :address_line3

      # @return [String] Address City.
      attr_accessor :city

      # @return [String] Address Region.
      attr_accessor :region

      # @return [String] Country code uses ISO2, 2-digit format..
      attr_accessor :country

      # @return [String] Postal Code.
      attr_accessor :postal_code

      # @return [String] Phone Number.
      attr_accessor :phone_number


      #
      # Mapper for Address class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'Address',
          type: {
            name: 'Composite',
            class_name: 'Address',
            model_properties: {
              address_line1: {
                client_side_validation: true,
                required: false,
                serialized_name: 'addressLine1',
                type: {
                  name: 'String'
                }
              },
              address_line2: {
                client_side_validation: true,
                required: false,
                serialized_name: 'addressLine2',
                type: {
                  name: 'String'
                }
              },
              address_line3: {
                client_side_validation: true,
                required: false,
                serialized_name: 'addressLine3',
                type: {
                  name: 'String'
                }
              },
              city: {
                client_side_validation: true,
                required: false,
                serialized_name: 'city',
                type: {
                  name: 'String'
                }
              },
              region: {
                client_side_validation: true,
                required: false,
                serialized_name: 'region',
                type: {
                  name: 'String'
                }
              },
              country: {
                client_side_validation: true,
                required: false,
                serialized_name: 'country',
                type: {
                  name: 'String'
                }
              },
              postal_code: {
                client_side_validation: true,
                required: false,
                serialized_name: 'postalCode',
                type: {
                  name: 'String'
                }
              },
              phone_number: {
                client_side_validation: true,
                required: false,
                serialized_name: 'phoneNumber',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
