Class Domain

java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.Domain
All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class Domain extends Entity implements com.microsoft.kiota.serialization.Parsable
  • Constructor Details

    • Domain

      public Domain()
      Instantiates a new Domain and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static Domain createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode)
      Creates a new instance of the appropriate class based on discriminator value
      Parameters:
      parseNode - The parse node to use to read the discriminator value and create the object
      Returns:
      a Domain
    • getAuthenticationType

      @Nullable public String getAuthenticationType()
      Gets the authenticationType property value. Indicates the configured authentication type for the domain. The value is either Managed or Federated. Managed indicates a cloud managed domain where Microsoft Entra ID performs user authentication. Federated indicates authentication is federated with an identity provider such as the tenant's on-premises Active Directory via Active Directory Federation Services. Not nullable. To update this property in delegated scenarios, the calling app must be assigned the Directory.AccessAsUser.All delegated permission.
      Returns:
      a String
    • getAvailabilityStatus

      @Nullable public String getAvailabilityStatus()
      Gets the availabilityStatus property value. This property is always null except when the verify action is used. When the verify action is used, a domain entity is returned in the response. The availabilityStatus property of the domain entity in the response is either AvailableImmediately or EmailVerifiedDomainTakeoverScheduled.
      Returns:
      a String
    • getDomainNameReferences

      @Nullable public List<DirectoryObject> getDomainNameReferences()
      Gets the domainNameReferences property value. The objects such as users and groups that reference the domain ID. Read-only, Nullable. Doesn't support $expand. Supports $filter by the OData type of objects returned. For example, /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group.
      Returns:
      a List<DirectoryObject>
    • getFederationConfiguration

      @Nullable public List<InternalDomainFederation> getFederationConfiguration()
      Gets the federationConfiguration property value. Domain settings configured by a customer when federated with Microsoft Entra ID. Doesn't support $expand.
      Returns:
      a List<InternalDomainFederation>
    • getFieldDeserializers

      @Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()
      The deserialization information for the current model
      Specified by:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class Entity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getIsAdminManaged

      @Nullable public Boolean getIsAdminManaged()
      Gets the isAdminManaged property value. The value of the property is false if the DNS record management of the domain is delegated to Microsoft 365. Otherwise, the value is true. Not nullable
      Returns:
      a Boolean
    • getIsDefault

      @Nullable public Boolean getIsDefault()
      Gets the isDefault property value. true if this is the default domain that is used for user creation. There's only one default domain per company. Not nullable.
      Returns:
      a Boolean
    • getIsInitial

      @Nullable public Boolean getIsInitial()
      Gets the isInitial property value. true if this is the initial domain created by Microsoft Online Services (contoso.com). There's only one initial domain per company. Not nullable
      Returns:
      a Boolean
    • getIsRoot

      @Nullable public Boolean getIsRoot()
      Gets the isRoot property value. true if the domain is a verified root domain. Otherwise, false if the domain is a subdomain or unverified. Not nullable.
      Returns:
      a Boolean
    • getIsVerified

      @Nullable public Boolean getIsVerified()
      Gets the isVerified property value. true if the domain completed domain ownership verification. Not nullable.
      Returns:
      a Boolean
    • getManufacturer

      @Nullable public String getManufacturer()
      Gets the manufacturer property value. The manufacturer property
      Returns:
      a String
    • getModel

      @Nullable public String getModel()
      Gets the model property value. The model property
      Returns:
      a String
    • getPasswordNotificationWindowInDays

      @Nullable public Integer getPasswordNotificationWindowInDays()
      Gets the passwordNotificationWindowInDays property value. Specifies the number of days before a user receives notification that their password expires. If the property isn't set, a default value of 14 days is used.
      Returns:
      a Integer
    • getPasswordValidityPeriodInDays

      @Nullable public Integer getPasswordValidityPeriodInDays()
      Gets the passwordValidityPeriodInDays property value. Specifies the length of time that a password is valid before it must be changed. If the property isn't set, a default value of 90 days is used.
      Returns:
      a Integer
    • getRootDomain

      @Nullable public Domain getRootDomain()
      Gets the rootDomain property value. Root domain of a subdomain. Read-only, Nullable. Supports $expand.
      Returns:
      a Domain
    • getServiceConfigurationRecords

      @Nullable public List<DomainDnsRecord> getServiceConfigurationRecords()
      Gets the serviceConfigurationRecords property value. DNS records the customer adds to the DNS zone file of the domain before the domain can be used by Microsoft Online services. Read-only, Nullable. Doesn't support $expand.
      Returns:
      a List<DomainDnsRecord>
    • getState

      @Nullable public DomainState getState()
      Gets the state property value. Status of asynchronous operations scheduled for the domain.
      Returns:
      a DomainState
    • getSupportedServices

      @Nullable public List<String> getSupportedServices()
      Gets the supportedServices property value. The capabilities assigned to the domain. Can include 0, 1 or more of following values: Email, Sharepoint, EmailInternalRelayOnly, OfficeCommunicationsOnline, SharePointDefaultDomain, FullRedelegation, SharePointPublic, OrgIdAuthentication, Yammer, Intune. The values that you can add or remove using the API include: Email, OfficeCommunicationsOnline, Yammer. Not nullable.
      Returns:
      a List<String>
    • getVerificationDnsRecords

      @Nullable public List<DomainDnsRecord> getVerificationDnsRecords()
      Gets the verificationDnsRecords property value. DNS records that the customer adds to the DNS zone file of the domain before the customer can complete domain ownership verification with Microsoft Entra ID. Read-only, Nullable. Doesn't support $expand.
      Returns:
      a List<DomainDnsRecord>
    • serialize

      public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer)
      Serializes information the current object
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class Entity
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setAuthenticationType

      public void setAuthenticationType(@Nullable String value)
      Sets the authenticationType property value. Indicates the configured authentication type for the domain. The value is either Managed or Federated. Managed indicates a cloud managed domain where Microsoft Entra ID performs user authentication. Federated indicates authentication is federated with an identity provider such as the tenant's on-premises Active Directory via Active Directory Federation Services. Not nullable. To update this property in delegated scenarios, the calling app must be assigned the Directory.AccessAsUser.All delegated permission.
      Parameters:
      value - Value to set for the authenticationType property.
    • setAvailabilityStatus

      public void setAvailabilityStatus(@Nullable String value)
      Sets the availabilityStatus property value. This property is always null except when the verify action is used. When the verify action is used, a domain entity is returned in the response. The availabilityStatus property of the domain entity in the response is either AvailableImmediately or EmailVerifiedDomainTakeoverScheduled.
      Parameters:
      value - Value to set for the availabilityStatus property.
    • setDomainNameReferences

      public void setDomainNameReferences(@Nullable List<DirectoryObject> value)
      Sets the domainNameReferences property value. The objects such as users and groups that reference the domain ID. Read-only, Nullable. Doesn't support $expand. Supports $filter by the OData type of objects returned. For example, /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group.
      Parameters:
      value - Value to set for the domainNameReferences property.
    • setFederationConfiguration

      public void setFederationConfiguration(@Nullable List<InternalDomainFederation> value)
      Sets the federationConfiguration property value. Domain settings configured by a customer when federated with Microsoft Entra ID. Doesn't support $expand.
      Parameters:
      value - Value to set for the federationConfiguration property.
    • setIsAdminManaged

      public void setIsAdminManaged(@Nullable Boolean value)
      Sets the isAdminManaged property value. The value of the property is false if the DNS record management of the domain is delegated to Microsoft 365. Otherwise, the value is true. Not nullable
      Parameters:
      value - Value to set for the isAdminManaged property.
    • setIsDefault

      public void setIsDefault(@Nullable Boolean value)
      Sets the isDefault property value. true if this is the default domain that is used for user creation. There's only one default domain per company. Not nullable.
      Parameters:
      value - Value to set for the isDefault property.
    • setIsInitial

      public void setIsInitial(@Nullable Boolean value)
      Sets the isInitial property value. true if this is the initial domain created by Microsoft Online Services (contoso.com). There's only one initial domain per company. Not nullable
      Parameters:
      value - Value to set for the isInitial property.
    • setIsRoot

      public void setIsRoot(@Nullable Boolean value)
      Sets the isRoot property value. true if the domain is a verified root domain. Otherwise, false if the domain is a subdomain or unverified. Not nullable.
      Parameters:
      value - Value to set for the isRoot property.
    • setIsVerified

      public void setIsVerified(@Nullable Boolean value)
      Sets the isVerified property value. true if the domain completed domain ownership verification. Not nullable.
      Parameters:
      value - Value to set for the isVerified property.
    • setManufacturer

      public void setManufacturer(@Nullable String value)
      Sets the manufacturer property value. The manufacturer property
      Parameters:
      value - Value to set for the manufacturer property.
    • setModel

      public void setModel(@Nullable String value)
      Sets the model property value. The model property
      Parameters:
      value - Value to set for the model property.
    • setPasswordNotificationWindowInDays

      public void setPasswordNotificationWindowInDays(@Nullable Integer value)
      Sets the passwordNotificationWindowInDays property value. Specifies the number of days before a user receives notification that their password expires. If the property isn't set, a default value of 14 days is used.
      Parameters:
      value - Value to set for the passwordNotificationWindowInDays property.
    • setPasswordValidityPeriodInDays

      public void setPasswordValidityPeriodInDays(@Nullable Integer value)
      Sets the passwordValidityPeriodInDays property value. Specifies the length of time that a password is valid before it must be changed. If the property isn't set, a default value of 90 days is used.
      Parameters:
      value - Value to set for the passwordValidityPeriodInDays property.
    • setRootDomain

      public void setRootDomain(@Nullable Domain value)
      Sets the rootDomain property value. Root domain of a subdomain. Read-only, Nullable. Supports $expand.
      Parameters:
      value - Value to set for the rootDomain property.
    • setServiceConfigurationRecords

      public void setServiceConfigurationRecords(@Nullable List<DomainDnsRecord> value)
      Sets the serviceConfigurationRecords property value. DNS records the customer adds to the DNS zone file of the domain before the domain can be used by Microsoft Online services. Read-only, Nullable. Doesn't support $expand.
      Parameters:
      value - Value to set for the serviceConfigurationRecords property.
    • setState

      public void setState(@Nullable DomainState value)
      Sets the state property value. Status of asynchronous operations scheduled for the domain.
      Parameters:
      value - Value to set for the state property.
    • setSupportedServices

      public void setSupportedServices(@Nullable List<String> value)
      Sets the supportedServices property value. The capabilities assigned to the domain. Can include 0, 1 or more of following values: Email, Sharepoint, EmailInternalRelayOnly, OfficeCommunicationsOnline, SharePointDefaultDomain, FullRedelegation, SharePointPublic, OrgIdAuthentication, Yammer, Intune. The values that you can add or remove using the API include: Email, OfficeCommunicationsOnline, Yammer. Not nullable.
      Parameters:
      value - Value to set for the supportedServices property.
    • setVerificationDnsRecords

      public void setVerificationDnsRecords(@Nullable List<DomainDnsRecord> value)
      Sets the verificationDnsRecords property value. DNS records that the customer adds to the DNS zone file of the domain before the customer can complete domain ownership verification with Microsoft Entra ID. Read-only, Nullable. Doesn't support $expand.
      Parameters:
      value - Value to set for the verificationDnsRecords property.