package models

import (
    i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
    i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
)

// IPv6Range 
type IPv6Range struct {
    IpRange
    // Lower address.
    lowerAddress *string
    // Upper address.
    upperAddress *string
}
// NewIPv6Range instantiates a new IPv6Range and sets the default values.
func NewIPv6Range()(*IPv6Range) {
    m := &IPv6Range{
        IpRange: *NewIpRange(),
    }
    odataTypeValue := "#microsoft.graph.iPv6Range";
    m.SetOdataType(&odataTypeValue);
    return m
}
// CreateIPv6RangeFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
func CreateIPv6RangeFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
    return NewIPv6Range(), nil
}
// GetFieldDeserializers the deserialization information for the current model
func (m *IPv6Range) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
    res := m.IpRange.GetFieldDeserializers()
    res["lowerAddress"] = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.SetStringValue(m.SetLowerAddress)
    res["upperAddress"] = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.SetStringValue(m.SetUpperAddress)
    return res
}
// GetLowerAddress gets the lowerAddress property value. Lower address.
func (m *IPv6Range) GetLowerAddress()(*string) {
    return m.lowerAddress
}
// GetUpperAddress gets the upperAddress property value. Upper address.
func (m *IPv6Range) GetUpperAddress()(*string) {
    return m.upperAddress
}
// Serialize serializes information the current object
func (m *IPv6Range) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
    err := m.IpRange.Serialize(writer)
    if err != nil {
        return err
    }
    {
        err = writer.WriteStringValue("lowerAddress", m.GetLowerAddress())
        if err != nil {
            return err
        }
    }
    {
        err = writer.WriteStringValue("upperAddress", m.GetUpperAddress())
        if err != nil {
            return err
        }
    }
    return nil
}
// SetLowerAddress sets the lowerAddress property value. Lower address.
func (m *IPv6Range) SetLowerAddress(value *string)() {
    m.lowerAddress = value
}
// SetUpperAddress sets the upperAddress property value. Upper address.
func (m *IPv6Range) SetUpperAddress(value *string)() {
    m.upperAddress = value
}
