Class MicrosoftGraphOrganization


public final class MicrosoftGraphOrganization extends MicrosoftGraphDirectoryObjectInner
organization

The organization resource represents an instance of global settings and resources which operate and are provisioned at the tenant-level.

  • Constructor Details

    • MicrosoftGraphOrganization

      public MicrosoftGraphOrganization()
      Creates an instance of MicrosoftGraphOrganization class.
  • Method Details

    • assignedPlans

      public List<MicrosoftGraphAssignedPlan> assignedPlans()
      Get the assignedPlans property: The collection of service plans associated with the tenant. Not nullable.
      Returns:
      the assignedPlans value.
    • withAssignedPlans

      public MicrosoftGraphOrganization withAssignedPlans(List<MicrosoftGraphAssignedPlan> assignedPlans)
      Set the assignedPlans property: The collection of service plans associated with the tenant. Not nullable.
      Parameters:
      assignedPlans - the assignedPlans value to set.
      Returns:
      the MicrosoftGraphOrganization object itself.
    • businessPhones

      public List<String> businessPhones()
      Get the businessPhones property: Telephone number for the organization. NOTE: Although this is a string collection, only one number can be set for this property.
      Returns:
      the businessPhones value.
    • withBusinessPhones

      public MicrosoftGraphOrganization withBusinessPhones(List<String> businessPhones)
      Set the businessPhones property: Telephone number for the organization. NOTE: Although this is a string collection, only one number can be set for this property.
      Parameters:
      businessPhones - the businessPhones value to set.
      Returns:
      the MicrosoftGraphOrganization object itself.
    • city

      public String city()
      Get the city property: City name of the address for the organization.
      Returns:
      the city value.
    • withCity

      public MicrosoftGraphOrganization withCity(String city)
      Set the city property: City name of the address for the organization.
      Parameters:
      city - the city value to set.
      Returns:
      the MicrosoftGraphOrganization object itself.
    • country

      public String country()
      Get the country property: Country/region name of the address for the organization.
      Returns:
      the country value.
    • withCountry

      public MicrosoftGraphOrganization withCountry(String country)
      Set the country property: Country/region name of the address for the organization.
      Parameters:
      country - the country value to set.
      Returns:
      the MicrosoftGraphOrganization object itself.
    • countryLetterCode

      public String countryLetterCode()
      Get the countryLetterCode property: Country/region abbreviation for the organization.
      Returns:
      the countryLetterCode value.
    • withCountryLetterCode

      public MicrosoftGraphOrganization withCountryLetterCode(String countryLetterCode)
      Set the countryLetterCode property: Country/region abbreviation for the organization.
      Parameters:
      countryLetterCode - the countryLetterCode value to set.
      Returns:
      the MicrosoftGraphOrganization object itself.
    • createdDateTime

      public OffsetDateTime createdDateTime()
      Get the createdDateTime property: Timestamp of when the organization was created. The value cannot be modified and is automatically populated when the organization is created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Read-only.
      Returns:
      the createdDateTime value.
    • withCreatedDateTime

      public MicrosoftGraphOrganization withCreatedDateTime(OffsetDateTime createdDateTime)
      Set the createdDateTime property: Timestamp of when the organization was created. The value cannot be modified and is automatically populated when the organization is created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Read-only.
      Parameters:
      createdDateTime - the createdDateTime value to set.
      Returns:
      the MicrosoftGraphOrganization object itself.
    • displayName

      public String displayName()
      Get the displayName property: The display name for the tenant.
      Returns:
      the displayName value.
    • withDisplayName

      public MicrosoftGraphOrganization withDisplayName(String displayName)
      Set the displayName property: The display name for the tenant.
      Parameters:
      displayName - the displayName value to set.
      Returns:
      the MicrosoftGraphOrganization object itself.
    • marketingNotificationEmails

      public List<String> marketingNotificationEmails()
      Get the marketingNotificationEmails property: Not nullable.
      Returns:
      the marketingNotificationEmails value.
    • withMarketingNotificationEmails

      public MicrosoftGraphOrganization withMarketingNotificationEmails(List<String> marketingNotificationEmails)
      Set the marketingNotificationEmails property: Not nullable.
      Parameters:
      marketingNotificationEmails - the marketingNotificationEmails value to set.
      Returns:
      the MicrosoftGraphOrganization object itself.
    • onPremisesLastSyncDateTime

      public OffsetDateTime onPremisesLastSyncDateTime()
      Get the onPremisesLastSyncDateTime property: The time and date at which the tenant was last synced with the on-premise directory. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Read-only.
      Returns:
      the onPremisesLastSyncDateTime value.
    • withOnPremisesLastSyncDateTime

      public MicrosoftGraphOrganization withOnPremisesLastSyncDateTime(OffsetDateTime onPremisesLastSyncDateTime)
      Set the onPremisesLastSyncDateTime property: The time and date at which the tenant was last synced with the on-premise directory. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Read-only.
      Parameters:
      onPremisesLastSyncDateTime - the onPremisesLastSyncDateTime value to set.
      Returns:
      the MicrosoftGraphOrganization object itself.
    • onPremisesSyncEnabled

      public Boolean onPremisesSyncEnabled()
      Get the onPremisesSyncEnabled property: true if this object is synced from an on-premises directory; false if this object was originally synced from an on-premises directory but is no longer synced; null if this object has never been synced from an on-premises directory (default).
      Returns:
      the onPremisesSyncEnabled value.
    • withOnPremisesSyncEnabled

      public MicrosoftGraphOrganization withOnPremisesSyncEnabled(Boolean onPremisesSyncEnabled)
      Set the onPremisesSyncEnabled property: true if this object is synced from an on-premises directory; false if this object was originally synced from an on-premises directory but is no longer synced; null if this object has never been synced from an on-premises directory (default).
      Parameters:
      onPremisesSyncEnabled - the onPremisesSyncEnabled value to set.
      Returns:
      the MicrosoftGraphOrganization object itself.
    • postalCode

      public String postalCode()
      Get the postalCode property: Postal code of the address for the organization.
      Returns:
      the postalCode value.
    • withPostalCode

      public MicrosoftGraphOrganization withPostalCode(String postalCode)
      Set the postalCode property: Postal code of the address for the organization.
      Parameters:
      postalCode - the postalCode value to set.
      Returns:
      the MicrosoftGraphOrganization object itself.
    • preferredLanguage

      public String preferredLanguage()
      Get the preferredLanguage property: The preferred language for the organization. Should follow ISO 639-1 Code; for example 'en'.
      Returns:
      the preferredLanguage value.
    • withPreferredLanguage

      public MicrosoftGraphOrganization withPreferredLanguage(String preferredLanguage)
      Set the preferredLanguage property: The preferred language for the organization. Should follow ISO 639-1 Code; for example 'en'.
      Parameters:
      preferredLanguage - the preferredLanguage value to set.
      Returns:
      the MicrosoftGraphOrganization object itself.
    • privacyProfile

      public MicrosoftGraphPrivacyProfile privacyProfile()
      Get the privacyProfile property: privacyProfile.
      Returns:
      the privacyProfile value.
    • withPrivacyProfile

      public MicrosoftGraphOrganization withPrivacyProfile(MicrosoftGraphPrivacyProfile privacyProfile)
      Set the privacyProfile property: privacyProfile.
      Parameters:
      privacyProfile - the privacyProfile value to set.
      Returns:
      the MicrosoftGraphOrganization object itself.
    • provisionedPlans

      public List<MicrosoftGraphProvisionedPlan> provisionedPlans()
      Get the provisionedPlans property: Not nullable.
      Returns:
      the provisionedPlans value.
    • withProvisionedPlans

      public MicrosoftGraphOrganization withProvisionedPlans(List<MicrosoftGraphProvisionedPlan> provisionedPlans)
      Set the provisionedPlans property: Not nullable.
      Parameters:
      provisionedPlans - the provisionedPlans value to set.
      Returns:
      the MicrosoftGraphOrganization object itself.
    • securityComplianceNotificationMails

      public List<String> securityComplianceNotificationMails()
      Get the securityComplianceNotificationMails property: The securityComplianceNotificationMails property.
      Returns:
      the securityComplianceNotificationMails value.
    • withSecurityComplianceNotificationMails

      public MicrosoftGraphOrganization withSecurityComplianceNotificationMails(List<String> securityComplianceNotificationMails)
      Set the securityComplianceNotificationMails property: The securityComplianceNotificationMails property.
      Parameters:
      securityComplianceNotificationMails - the securityComplianceNotificationMails value to set.
      Returns:
      the MicrosoftGraphOrganization object itself.
    • securityComplianceNotificationPhones

      public List<String> securityComplianceNotificationPhones()
      Get the securityComplianceNotificationPhones property: The securityComplianceNotificationPhones property.
      Returns:
      the securityComplianceNotificationPhones value.
    • withSecurityComplianceNotificationPhones

      public MicrosoftGraphOrganization withSecurityComplianceNotificationPhones(List<String> securityComplianceNotificationPhones)
      Set the securityComplianceNotificationPhones property: The securityComplianceNotificationPhones property.
      Parameters:
      securityComplianceNotificationPhones - the securityComplianceNotificationPhones value to set.
      Returns:
      the MicrosoftGraphOrganization object itself.
    • state

      public String state()
      Get the state property: State name of the address for the organization.
      Returns:
      the state value.
    • withState

      public MicrosoftGraphOrganization withState(String state)
      Set the state property: State name of the address for the organization.
      Parameters:
      state - the state value to set.
      Returns:
      the MicrosoftGraphOrganization object itself.
    • street

      public String street()
      Get the street property: Street name of the address for organization.
      Returns:
      the street value.
    • withStreet

      public MicrosoftGraphOrganization withStreet(String street)
      Set the street property: Street name of the address for organization.
      Parameters:
      street - the street value to set.
      Returns:
      the MicrosoftGraphOrganization object itself.
    • technicalNotificationMails

      public List<String> technicalNotificationMails()
      Get the technicalNotificationMails property: Not nullable.
      Returns:
      the technicalNotificationMails value.
    • withTechnicalNotificationMails

      public MicrosoftGraphOrganization withTechnicalNotificationMails(List<String> technicalNotificationMails)
      Set the technicalNotificationMails property: Not nullable.
      Parameters:
      technicalNotificationMails - the technicalNotificationMails value to set.
      Returns:
      the MicrosoftGraphOrganization object itself.
    • tenantType

      public String tenantType()
      Get the tenantType property: The tenantType property.
      Returns:
      the tenantType value.
    • withTenantType

      public MicrosoftGraphOrganization withTenantType(String tenantType)
      Set the tenantType property: The tenantType property.
      Parameters:
      tenantType - the tenantType value to set.
      Returns:
      the MicrosoftGraphOrganization object itself.
    • verifiedDomains

      public List<MicrosoftGraphVerifiedDomain> verifiedDomains()
      Get the verifiedDomains property: The collection of domains associated with this tenant. Not nullable.
      Returns:
      the verifiedDomains value.
    • withVerifiedDomains

      public MicrosoftGraphOrganization withVerifiedDomains(List<MicrosoftGraphVerifiedDomain> verifiedDomains)
      Set the verifiedDomains property: The collection of domains associated with this tenant. Not nullable.
      Parameters:
      verifiedDomains - the verifiedDomains value to set.
      Returns:
      the MicrosoftGraphOrganization object itself.
    • mobileDeviceManagementAuthority

      public MicrosoftGraphMdmAuthority mobileDeviceManagementAuthority()
      Get the mobileDeviceManagementAuthority property: mdmAuthority.
      Returns:
      the mobileDeviceManagementAuthority value.
    • withMobileDeviceManagementAuthority

      public MicrosoftGraphOrganization withMobileDeviceManagementAuthority(MicrosoftGraphMdmAuthority mobileDeviceManagementAuthority)
      Set the mobileDeviceManagementAuthority property: mdmAuthority.
      Parameters:
      mobileDeviceManagementAuthority - the mobileDeviceManagementAuthority value to set.
      Returns:
      the MicrosoftGraphOrganization object itself.
    • certificateBasedAuthConfiguration

      public List<MicrosoftGraphCertificateBasedAuthConfiguration> certificateBasedAuthConfiguration()
      Get the certificateBasedAuthConfiguration property: Navigation property to manage certificate-based authentication configuration. Only a single instance of certificateBasedAuthConfiguration can be created in the collection.
      Returns:
      the certificateBasedAuthConfiguration value.
    • withCertificateBasedAuthConfiguration

      public MicrosoftGraphOrganization withCertificateBasedAuthConfiguration(List<MicrosoftGraphCertificateBasedAuthConfiguration> certificateBasedAuthConfiguration)
      Set the certificateBasedAuthConfiguration property: Navigation property to manage certificate-based authentication configuration. Only a single instance of certificateBasedAuthConfiguration can be created in the collection.
      Parameters:
      certificateBasedAuthConfiguration - the certificateBasedAuthConfiguration value to set.
      Returns:
      the MicrosoftGraphOrganization object itself.
    • extensions

      public List<MicrosoftGraphExtension> extensions()
      Get the extensions property: The collection of open extensions defined for the organization. Read-only. Nullable.
      Returns:
      the extensions value.
    • withExtensions

      public MicrosoftGraphOrganization withExtensions(List<MicrosoftGraphExtension> extensions)
      Set the extensions property: The collection of open extensions defined for the organization. Read-only. Nullable.
      Parameters:
      extensions - the extensions value to set.
      Returns:
      the MicrosoftGraphOrganization object itself.
    • additionalProperties

      public Map<String,Object> additionalProperties()
      Get the additionalProperties property: The organization resource represents an instance of global settings and resources which operate and are provisioned at the tenant-level.
      Overrides:
      additionalProperties in class MicrosoftGraphDirectoryObjectInner
      Returns:
      the additionalProperties value.
    • withAdditionalProperties

      public MicrosoftGraphOrganization withAdditionalProperties(Map<String,Object> additionalProperties)
      Set the additionalProperties property: The organization resource represents an instance of global settings and resources which operate and are provisioned at the tenant-level.
      Overrides:
      withAdditionalProperties in class MicrosoftGraphDirectoryObjectInner
      Parameters:
      additionalProperties - the additionalProperties value to set.
      Returns:
      the MicrosoftGraphOrganization object itself.
    • withDeletedDateTime

      public MicrosoftGraphOrganization withDeletedDateTime(OffsetDateTime deletedDateTime)
      Set the deletedDateTime property: The deletedDateTime property.
      Overrides:
      withDeletedDateTime in class MicrosoftGraphDirectoryObjectInner
      Parameters:
      deletedDateTime - the deletedDateTime value to set.
      Returns:
      the MicrosoftGraphDirectoryObjectInner object itself.
    • withId

      public MicrosoftGraphOrganization withId(String id)
      Set the id property: Read-only.
      Overrides:
      withId in class MicrosoftGraphDirectoryObjectInner
      Parameters:
      id - the id value to set.
      Returns:
      the MicrosoftGraphEntity object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class MicrosoftGraphDirectoryObjectInner
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.