require 'microsoft_kiota_abstractions'
require_relative '../microsoft_graph'
require_relative './models'

module MicrosoftGraph
    module Models
        class PhysicalOfficeAddress
            include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
            ## 
            # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
            @additional_data
            ## 
            # The city.
            @city
            ## 
            # The country or region. It's a free-format string value, for example, 'United States'.
            @country_or_region
            ## 
            # The OdataType property
            @odata_type
            ## 
            # Office location such as building and office number for an organizational contact.
            @office_location
            ## 
            # The postal code.
            @postal_code
            ## 
            # The state.
            @state
            ## 
            # The street.
            @street
            ## 
            ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
            ## @return a i_dictionary
            ## 
            def additional_data
                return @additional_data
            end
            ## 
            ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
            ## @param value Value to set for the additionalData property.
            ## @return a void
            ## 
            def additional_data=(value)
                @additional_data = value
            end
            ## 
            ## Gets the city property value. The city.
            ## @return a string
            ## 
            def city
                return @city
            end
            ## 
            ## Sets the city property value. The city.
            ## @param value Value to set for the city property.
            ## @return a void
            ## 
            def city=(value)
                @city = value
            end
            ## 
            ## Instantiates a new physicalOfficeAddress and sets the default values.
            ## @return a void
            ## 
            def initialize()
                @additional_data = Hash.new
            end
            ## 
            ## Gets the countryOrRegion property value. The country or region. It's a free-format string value, for example, 'United States'.
            ## @return a string
            ## 
            def country_or_region
                return @country_or_region
            end
            ## 
            ## Sets the countryOrRegion property value. The country or region. It's a free-format string value, for example, 'United States'.
            ## @param value Value to set for the countryOrRegion property.
            ## @return a void
            ## 
            def country_or_region=(value)
                @country_or_region = value
            end
            ## 
            ## Creates a new instance of the appropriate class based on discriminator value
            ## @param parse_node The parse node to use to read the discriminator value and create the object
            ## @return a physical_office_address
            ## 
            def self.create_from_discriminator_value(parse_node)
                raise StandardError, 'parse_node cannot be null' if parse_node.nil?
                return PhysicalOfficeAddress.new
            end
            ## 
            ## The deserialization information for the current model
            ## @return a i_dictionary
            ## 
            def get_field_deserializers()
                return {
                    "city" => lambda {|n| @city = n.get_string_value() },
                    "countryOrRegion" => lambda {|n| @country_or_region = n.get_string_value() },
                    "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
                    "officeLocation" => lambda {|n| @office_location = n.get_string_value() },
                    "postalCode" => lambda {|n| @postal_code = n.get_string_value() },
                    "state" => lambda {|n| @state = n.get_string_value() },
                    "street" => lambda {|n| @street = n.get_string_value() },
                }
            end
            ## 
            ## Gets the @odata.type property value. The OdataType property
            ## @return a string
            ## 
            def odata_type
                return @odata_type
            end
            ## 
            ## Sets the @odata.type property value. The OdataType property
            ## @param value Value to set for the @odata.type property.
            ## @return a void
            ## 
            def odata_type=(value)
                @odata_type = value
            end
            ## 
            ## Gets the officeLocation property value. Office location such as building and office number for an organizational contact.
            ## @return a string
            ## 
            def office_location
                return @office_location
            end
            ## 
            ## Sets the officeLocation property value. Office location such as building and office number for an organizational contact.
            ## @param value Value to set for the officeLocation property.
            ## @return a void
            ## 
            def office_location=(value)
                @office_location = value
            end
            ## 
            ## Gets the postalCode property value. The postal code.
            ## @return a string
            ## 
            def postal_code
                return @postal_code
            end
            ## 
            ## Sets the postalCode property value. The postal code.
            ## @param value Value to set for the postalCode property.
            ## @return a void
            ## 
            def postal_code=(value)
                @postal_code = value
            end
            ## 
            ## Serializes information the current object
            ## @param writer Serialization writer to use to serialize this model
            ## @return a void
            ## 
            def serialize(writer)
                raise StandardError, 'writer cannot be null' if writer.nil?
                writer.write_string_value("city", @city)
                writer.write_string_value("countryOrRegion", @country_or_region)
                writer.write_string_value("@odata.type", @odata_type)
                writer.write_string_value("officeLocation", @office_location)
                writer.write_string_value("postalCode", @postal_code)
                writer.write_string_value("state", @state)
                writer.write_string_value("street", @street)
                writer.write_additional_data(@additional_data)
            end
            ## 
            ## Gets the state property value. The state.
            ## @return a string
            ## 
            def state
                return @state
            end
            ## 
            ## Sets the state property value. The state.
            ## @param value Value to set for the state property.
            ## @return a void
            ## 
            def state=(value)
                @state = value
            end
            ## 
            ## Gets the street property value. The street.
            ## @return a string
            ## 
            def street
                return @street
            end
            ## 
            ## Sets the street property value. The street.
            ## @param value Value to set for the street property.
            ## @return a void
            ## 
            def street=(value)
                @street = value
            end
        end
    end
end
