package models

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

// ExternalDomainFederation 
type ExternalDomainFederation struct {
    IdentitySource
    // The name of the identity source, typically also the domain name. Read only.
    displayName *string
    // The domain name. Read only.
    domainName *string
    // The issuerURI of the incoming federation. Read only.
    issuerUri *string
}
// NewExternalDomainFederation instantiates a new ExternalDomainFederation and sets the default values.
func NewExternalDomainFederation()(*ExternalDomainFederation) {
    m := &ExternalDomainFederation{
        IdentitySource: *NewIdentitySource(),
    }
    odataTypeValue := "#microsoft.graph.externalDomainFederation";
    m.SetOdataType(&odataTypeValue);
    return m
}
// CreateExternalDomainFederationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
func CreateExternalDomainFederationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
    return NewExternalDomainFederation(), nil
}
// GetDisplayName gets the displayName property value. The name of the identity source, typically also the domain name. Read only.
func (m *ExternalDomainFederation) GetDisplayName()(*string) {
    return m.displayName
}
// GetDomainName gets the domainName property value. The domain name. Read only.
func (m *ExternalDomainFederation) GetDomainName()(*string) {
    return m.domainName
}
// GetFieldDeserializers the deserialization information for the current model
func (m *ExternalDomainFederation) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
    res := m.IdentitySource.GetFieldDeserializers()
    res["displayName"] = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.SetStringValue(m.SetDisplayName)
    res["domainName"] = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.SetStringValue(m.SetDomainName)
    res["issuerUri"] = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.SetStringValue(m.SetIssuerUri)
    return res
}
// GetIssuerUri gets the issuerUri property value. The issuerURI of the incoming federation. Read only.
func (m *ExternalDomainFederation) GetIssuerUri()(*string) {
    return m.issuerUri
}
// Serialize serializes information the current object
func (m *ExternalDomainFederation) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
    err := m.IdentitySource.Serialize(writer)
    if err != nil {
        return err
    }
    {
        err = writer.WriteStringValue("displayName", m.GetDisplayName())
        if err != nil {
            return err
        }
    }
    {
        err = writer.WriteStringValue("domainName", m.GetDomainName())
        if err != nil {
            return err
        }
    }
    {
        err = writer.WriteStringValue("issuerUri", m.GetIssuerUri())
        if err != nil {
            return err
        }
    }
    return nil
}
// SetDisplayName sets the displayName property value. The name of the identity source, typically also the domain name. Read only.
func (m *ExternalDomainFederation) SetDisplayName(value *string)() {
    m.displayName = value
}
// SetDomainName sets the domainName property value. The domain name. Read only.
func (m *ExternalDomainFederation) SetDomainName(value *string)() {
    m.domainName = value
}
// SetIssuerUri sets the issuerUri property value. The issuerURI of the incoming federation. Read only.
func (m *ExternalDomainFederation) SetIssuerUri(value *string)() {
    m.issuerUri = value
}
