Class MicrosoftGraphGroupInner


public final class MicrosoftGraphGroupInner extends MicrosoftGraphDirectoryObjectInner
group

Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.

  • Constructor Details

    • MicrosoftGraphGroupInner

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

    • assignedLabels

      public List<MicrosoftGraphAssignedLabel> assignedLabels()
      Get the assignedLabels property: The list of sensitivity label pairs (label ID, label name) associated with an Microsoft 365 group. Returned only on $select. Read-only.
      Returns:
      the assignedLabels value.
    • withAssignedLabels

      public MicrosoftGraphGroupInner withAssignedLabels(List<MicrosoftGraphAssignedLabel> assignedLabels)
      Set the assignedLabels property: The list of sensitivity label pairs (label ID, label name) associated with an Microsoft 365 group. Returned only on $select. Read-only.
      Parameters:
      assignedLabels - the assignedLabels value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • assignedLicenses

      public List<MicrosoftGraphAssignedLicense> assignedLicenses()
      Get the assignedLicenses property: The licenses that are assigned to the group. Returned only on $select. Read-only.
      Returns:
      the assignedLicenses value.
    • withAssignedLicenses

      public MicrosoftGraphGroupInner withAssignedLicenses(List<MicrosoftGraphAssignedLicense> assignedLicenses)
      Set the assignedLicenses property: The licenses that are assigned to the group. Returned only on $select. Read-only.
      Parameters:
      assignedLicenses - the assignedLicenses value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • classification

      public String classification()
      Get the classification property: Describes a classification for the group (such as low, medium or high business impact). Valid values for this property are defined by creating a ClassificationList setting value, based on the template definition.Returned by default.
      Returns:
      the classification value.
    • withClassification

      public MicrosoftGraphGroupInner withClassification(String classification)
      Set the classification property: Describes a classification for the group (such as low, medium or high business impact). Valid values for this property are defined by creating a ClassificationList setting value, based on the template definition.Returned by default.
      Parameters:
      classification - the classification value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • createdDateTime

      public OffsetDateTime createdDateTime()
      Get the createdDateTime property: Timestamp of when the group was created. The value cannot be modified and is automatically populated when the group 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'. Returned by default. Read-only.
      Returns:
      the createdDateTime value.
    • withCreatedDateTime

      public MicrosoftGraphGroupInner withCreatedDateTime(OffsetDateTime createdDateTime)
      Set the createdDateTime property: Timestamp of when the group was created. The value cannot be modified and is automatically populated when the group 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'. Returned by default. Read-only.
      Parameters:
      createdDateTime - the createdDateTime value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • description

      public String description()
      Get the description property: An optional description for the group. Returned by default.
      Returns:
      the description value.
    • withDescription

      public MicrosoftGraphGroupInner withDescription(String description)
      Set the description property: An optional description for the group. Returned by default.
      Parameters:
      description - the description value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • displayName

      public String displayName()
      Get the displayName property: The display name for the group. This property is required when a group is created and cannot be cleared during updates. Returned by default. Supports $filter and $orderby.
      Returns:
      the displayName value.
    • withDisplayName

      public MicrosoftGraphGroupInner withDisplayName(String displayName)
      Set the displayName property: The display name for the group. This property is required when a group is created and cannot be cleared during updates. Returned by default. Supports $filter and $orderby.
      Parameters:
      displayName - the displayName value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • expirationDateTime

      public OffsetDateTime expirationDateTime()
      Get the expirationDateTime property: Timestamp of when the group is set to expire. The value cannot be modified and is automatically populated when the group 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'. Returned by default. Read-only.
      Returns:
      the expirationDateTime value.
    • withExpirationDateTime

      public MicrosoftGraphGroupInner withExpirationDateTime(OffsetDateTime expirationDateTime)
      Set the expirationDateTime property: Timestamp of when the group is set to expire. The value cannot be modified and is automatically populated when the group 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'. Returned by default. Read-only.
      Parameters:
      expirationDateTime - the expirationDateTime value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • groupTypes

      public List<String> groupTypes()
      Get the groupTypes property: Specifies the group type and its membership. If the collection contains Unified, the group is a Microsoft 365 group; otherwise, it's either a security group or distribution group. For details, see groups overview.If the collection includes DynamicMembership, the group has dynamic membership; otherwise, membership is static. Returned by default. Supports $filter.
      Returns:
      the groupTypes value.
    • withGroupTypes

      public MicrosoftGraphGroupInner withGroupTypes(List<String> groupTypes)
      Set the groupTypes property: Specifies the group type and its membership. If the collection contains Unified, the group is a Microsoft 365 group; otherwise, it's either a security group or distribution group. For details, see groups overview.If the collection includes DynamicMembership, the group has dynamic membership; otherwise, membership is static. Returned by default. Supports $filter.
      Parameters:
      groupTypes - the groupTypes value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • hasMembersWithLicenseErrors

      public Boolean hasMembersWithLicenseErrors()
      Get the hasMembersWithLicenseErrors property: Indicates whether there are members in this group that have license errors from its group-based license assignment. This property is never returned on a GET operation. You can use it as a $filter argument to get groups that have members with license errors (that is, filter for this property being true). See an example.
      Returns:
      the hasMembersWithLicenseErrors value.
    • withHasMembersWithLicenseErrors

      public MicrosoftGraphGroupInner withHasMembersWithLicenseErrors(Boolean hasMembersWithLicenseErrors)
      Set the hasMembersWithLicenseErrors property: Indicates whether there are members in this group that have license errors from its group-based license assignment. This property is never returned on a GET operation. You can use it as a $filter argument to get groups that have members with license errors (that is, filter for this property being true). See an example.
      Parameters:
      hasMembersWithLicenseErrors - the hasMembersWithLicenseErrors value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • licenseProcessingState

      public MicrosoftGraphLicenseProcessingState licenseProcessingState()
      Get the licenseProcessingState property: licenseProcessingState.
      Returns:
      the licenseProcessingState value.
    • withLicenseProcessingState

      public MicrosoftGraphGroupInner withLicenseProcessingState(MicrosoftGraphLicenseProcessingState licenseProcessingState)
      Set the licenseProcessingState property: licenseProcessingState.
      Parameters:
      licenseProcessingState - the licenseProcessingState value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • mail

      public String mail()
      Get the mail property: The SMTP address for the group, for example, 'serviceadmins@contoso.onmicrosoft.com'. Returned by default. Read-only. Supports $filter.
      Returns:
      the mail value.
    • withMail

      public MicrosoftGraphGroupInner withMail(String mail)
      Set the mail property: The SMTP address for the group, for example, 'serviceadmins@contoso.onmicrosoft.com'. Returned by default. Read-only. Supports $filter.
      Parameters:
      mail - the mail value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • mailEnabled

      public Boolean mailEnabled()
      Get the mailEnabled property: Specifies whether the group is mail-enabled. Returned by default.
      Returns:
      the mailEnabled value.
    • withMailEnabled

      public MicrosoftGraphGroupInner withMailEnabled(Boolean mailEnabled)
      Set the mailEnabled property: Specifies whether the group is mail-enabled. Returned by default.
      Parameters:
      mailEnabled - the mailEnabled value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • mailNickname

      public String mailNickname()
      Get the mailNickname property: The mailNickname property.
      Returns:
      the mailNickname value.
    • withMailNickname

      public MicrosoftGraphGroupInner withMailNickname(String mailNickname)
      Set the mailNickname property: The mailNickname property.
      Parameters:
      mailNickname - the mailNickname value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • membershipRule

      public String membershipRule()
      Get the membershipRule property: The rule that determines members for this group if the group is a dynamic group (groupTypes contains DynamicMembership). For more information about the syntax of the membership rule, see Membership Rules syntax. Returned by default.
      Returns:
      the membershipRule value.
    • withMembershipRule

      public MicrosoftGraphGroupInner withMembershipRule(String membershipRule)
      Set the membershipRule property: The rule that determines members for this group if the group is a dynamic group (groupTypes contains DynamicMembership). For more information about the syntax of the membership rule, see Membership Rules syntax. Returned by default.
      Parameters:
      membershipRule - the membershipRule value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • membershipRuleProcessingState

      public String membershipRuleProcessingState()
      Get the membershipRuleProcessingState property: Indicates whether the dynamic membership processing is on or paused. Possible values are 'On' or 'Paused'. Returned by default.
      Returns:
      the membershipRuleProcessingState value.
    • withMembershipRuleProcessingState

      public MicrosoftGraphGroupInner withMembershipRuleProcessingState(String membershipRuleProcessingState)
      Set the membershipRuleProcessingState property: Indicates whether the dynamic membership processing is on or paused. Possible values are 'On' or 'Paused'. Returned by default.
      Parameters:
      membershipRuleProcessingState - the membershipRuleProcessingState value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • onPremisesDomainName

      public String onPremisesDomainName()
      Get the onPremisesDomainName property: The onPremisesDomainName property.
      Returns:
      the onPremisesDomainName value.
    • withOnPremisesDomainName

      public MicrosoftGraphGroupInner withOnPremisesDomainName(String onPremisesDomainName)
      Set the onPremisesDomainName property: The onPremisesDomainName property.
      Parameters:
      onPremisesDomainName - the onPremisesDomainName value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • onPremisesLastSyncDateTime

      public OffsetDateTime onPremisesLastSyncDateTime()
      Get the onPremisesLastSyncDateTime property: The onPremisesLastSyncDateTime property.
      Returns:
      the onPremisesLastSyncDateTime value.
    • withOnPremisesLastSyncDateTime

      public MicrosoftGraphGroupInner withOnPremisesLastSyncDateTime(OffsetDateTime onPremisesLastSyncDateTime)
      Set the onPremisesLastSyncDateTime property: The onPremisesLastSyncDateTime property.
      Parameters:
      onPremisesLastSyncDateTime - the onPremisesLastSyncDateTime value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • onPremisesNetBiosName

      public String onPremisesNetBiosName()
      Get the onPremisesNetBiosName property: The onPremisesNetBiosName property.
      Returns:
      the onPremisesNetBiosName value.
    • withOnPremisesNetBiosName

      public MicrosoftGraphGroupInner withOnPremisesNetBiosName(String onPremisesNetBiosName)
      Set the onPremisesNetBiosName property: The onPremisesNetBiosName property.
      Parameters:
      onPremisesNetBiosName - the onPremisesNetBiosName value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • onPremisesProvisioningErrors

      public List<MicrosoftGraphOnPremisesProvisioningError> onPremisesProvisioningErrors()
      Get the onPremisesProvisioningErrors property: The onPremisesProvisioningErrors property.
      Returns:
      the onPremisesProvisioningErrors value.
    • withOnPremisesProvisioningErrors

      public MicrosoftGraphGroupInner withOnPremisesProvisioningErrors(List<MicrosoftGraphOnPremisesProvisioningError> onPremisesProvisioningErrors)
      Set the onPremisesProvisioningErrors property: The onPremisesProvisioningErrors property.
      Parameters:
      onPremisesProvisioningErrors - the onPremisesProvisioningErrors value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • onPremisesSamAccountName

      public String onPremisesSamAccountName()
      Get the onPremisesSamAccountName property: Contains the on-premises SAM account name synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect.Returned by default. Read-only.
      Returns:
      the onPremisesSamAccountName value.
    • withOnPremisesSamAccountName

      public MicrosoftGraphGroupInner withOnPremisesSamAccountName(String onPremisesSamAccountName)
      Set the onPremisesSamAccountName property: Contains the on-premises SAM account name synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect.Returned by default. Read-only.
      Parameters:
      onPremisesSamAccountName - the onPremisesSamAccountName value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • onPremisesSecurityIdentifier

      public String onPremisesSecurityIdentifier()
      Get the onPremisesSecurityIdentifier property: Contains the on-premises security identifier (SID) for the group that was synchronized from on-premises to the cloud. Returned by default. Read-only.
      Returns:
      the onPremisesSecurityIdentifier value.
    • withOnPremisesSecurityIdentifier

      public MicrosoftGraphGroupInner withOnPremisesSecurityIdentifier(String onPremisesSecurityIdentifier)
      Set the onPremisesSecurityIdentifier property: Contains the on-premises security identifier (SID) for the group that was synchronized from on-premises to the cloud. Returned by default. Read-only.
      Parameters:
      onPremisesSecurityIdentifier - the onPremisesSecurityIdentifier value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • onPremisesSyncEnabled

      public Boolean onPremisesSyncEnabled()
      Get the onPremisesSyncEnabled property: true if this group is synced from an on-premises directory; false if this group 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). Returned by default. Read-only. Supports $filter.
      Returns:
      the onPremisesSyncEnabled value.
    • withOnPremisesSyncEnabled

      public MicrosoftGraphGroupInner withOnPremisesSyncEnabled(Boolean onPremisesSyncEnabled)
      Set the onPremisesSyncEnabled property: true if this group is synced from an on-premises directory; false if this group 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). Returned by default. Read-only. Supports $filter.
      Parameters:
      onPremisesSyncEnabled - the onPremisesSyncEnabled value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • preferredDataLocation

      public String preferredDataLocation()
      Get the preferredDataLocation property: The preferred data location for the group. For more information, see OneDrive Online Multi-Geo. Returned by default.
      Returns:
      the preferredDataLocation value.
    • withPreferredDataLocation

      public MicrosoftGraphGroupInner withPreferredDataLocation(String preferredDataLocation)
      Set the preferredDataLocation property: The preferred data location for the group. For more information, see OneDrive Online Multi-Geo. Returned by default.
      Parameters:
      preferredDataLocation - the preferredDataLocation value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • preferredLanguage

      public String preferredLanguage()
      Get the preferredLanguage property: The preferred language for an Microsoft 365 group. Should follow ISO 639-1 Code; for example 'en-US'. Returned by default.
      Returns:
      the preferredLanguage value.
    • withPreferredLanguage

      public MicrosoftGraphGroupInner withPreferredLanguage(String preferredLanguage)
      Set the preferredLanguage property: The preferred language for an Microsoft 365 group. Should follow ISO 639-1 Code; for example 'en-US'. Returned by default.
      Parameters:
      preferredLanguage - the preferredLanguage value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • proxyAddresses

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

      public MicrosoftGraphGroupInner withProxyAddresses(List<String> proxyAddresses)
      Set the proxyAddresses property: The proxyAddresses property.
      Parameters:
      proxyAddresses - the proxyAddresses value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • renewedDateTime

      public OffsetDateTime renewedDateTime()
      Get the renewedDateTime property: Timestamp of when the group was last renewed. This cannot be modified directly and is only updated via the renew service action. 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'. Returned by default. Read-only.
      Returns:
      the renewedDateTime value.
    • withRenewedDateTime

      public MicrosoftGraphGroupInner withRenewedDateTime(OffsetDateTime renewedDateTime)
      Set the renewedDateTime property: Timestamp of when the group was last renewed. This cannot be modified directly and is only updated via the renew service action. 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'. Returned by default. Read-only.
      Parameters:
      renewedDateTime - the renewedDateTime value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • securityEnabled

      public Boolean securityEnabled()
      Get the securityEnabled property: Specifies whether the group is a security group. Returned by default. Supports $filter.
      Returns:
      the securityEnabled value.
    • withSecurityEnabled

      public MicrosoftGraphGroupInner withSecurityEnabled(Boolean securityEnabled)
      Set the securityEnabled property: Specifies whether the group is a security group. Returned by default. Supports $filter.
      Parameters:
      securityEnabled - the securityEnabled value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • securityIdentifier

      public String securityIdentifier()
      Get the securityIdentifier property: Security identifier of the group, used in Windows scenarios. Returned by default.
      Returns:
      the securityIdentifier value.
    • withSecurityIdentifier

      public MicrosoftGraphGroupInner withSecurityIdentifier(String securityIdentifier)
      Set the securityIdentifier property: Security identifier of the group, used in Windows scenarios. Returned by default.
      Parameters:
      securityIdentifier - the securityIdentifier value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • theme

      public String theme()
      Get the theme property: Specifies an Microsoft 365 group's color theme. Possible values are Teal, Purple, Green, Blue, Pink, Orange or Red. Returned by default.
      Returns:
      the theme value.
    • withTheme

      public MicrosoftGraphGroupInner withTheme(String theme)
      Set the theme property: Specifies an Microsoft 365 group's color theme. Possible values are Teal, Purple, Green, Blue, Pink, Orange or Red. Returned by default.
      Parameters:
      theme - the theme value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • visibility

      public String visibility()
      Get the visibility property: Specifies the visibility of a Microsoft 365 group. Possible values are: Private, Public, or Hiddenmembership; blank values are treated as public. See group visibility options to learn more.Visibility can be set only when a group is created; it is not editable.Visibility is supported only for unified groups; it is not supported for security groups. Returned by default.
      Returns:
      the visibility value.
    • withVisibility

      public MicrosoftGraphGroupInner withVisibility(String visibility)
      Set the visibility property: Specifies the visibility of a Microsoft 365 group. Possible values are: Private, Public, or Hiddenmembership; blank values are treated as public. See group visibility options to learn more.Visibility can be set only when a group is created; it is not editable.Visibility is supported only for unified groups; it is not supported for security groups. Returned by default.
      Parameters:
      visibility - the visibility value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • allowExternalSenders

      public Boolean allowExternalSenders()
      Get the allowExternalSenders property: Indicates if people external to the organization can send messages to the group. Default value is false. Returned only on $select.
      Returns:
      the allowExternalSenders value.
    • withAllowExternalSenders

      public MicrosoftGraphGroupInner withAllowExternalSenders(Boolean allowExternalSenders)
      Set the allowExternalSenders property: Indicates if people external to the organization can send messages to the group. Default value is false. Returned only on $select.
      Parameters:
      allowExternalSenders - the allowExternalSenders value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • autoSubscribeNewMembers

      public Boolean autoSubscribeNewMembers()
      Get the autoSubscribeNewMembers property: Indicates if new members added to the group will be auto-subscribed to receive email notifications. You can set this property in a PATCH request for the group; do not set it in the initial POST request that creates the group. Default value is false. Returned only on $select.
      Returns:
      the autoSubscribeNewMembers value.
    • withAutoSubscribeNewMembers

      public MicrosoftGraphGroupInner withAutoSubscribeNewMembers(Boolean autoSubscribeNewMembers)
      Set the autoSubscribeNewMembers property: Indicates if new members added to the group will be auto-subscribed to receive email notifications. You can set this property in a PATCH request for the group; do not set it in the initial POST request that creates the group. Default value is false. Returned only on $select.
      Parameters:
      autoSubscribeNewMembers - the autoSubscribeNewMembers value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • hideFromAddressLists

      public Boolean hideFromAddressLists()
      Get the hideFromAddressLists property: True if the group is not displayed in certain parts of the Outlook UI: the Address Book, address lists for selecting message recipients, and the Browse Groups dialog for searching groups; otherwise, false. Default value is false. Returned only on $select.
      Returns:
      the hideFromAddressLists value.
    • withHideFromAddressLists

      public MicrosoftGraphGroupInner withHideFromAddressLists(Boolean hideFromAddressLists)
      Set the hideFromAddressLists property: True if the group is not displayed in certain parts of the Outlook UI: the Address Book, address lists for selecting message recipients, and the Browse Groups dialog for searching groups; otherwise, false. Default value is false. Returned only on $select.
      Parameters:
      hideFromAddressLists - the hideFromAddressLists value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • hideFromOutlookClients

      public Boolean hideFromOutlookClients()
      Get the hideFromOutlookClients property: True if the group is not displayed in Outlook clients, such as Outlook for Windows and Outlook on the web; otherwise, false. Default value is false. Returned only on $select.
      Returns:
      the hideFromOutlookClients value.
    • withHideFromOutlookClients

      public MicrosoftGraphGroupInner withHideFromOutlookClients(Boolean hideFromOutlookClients)
      Set the hideFromOutlookClients property: True if the group is not displayed in Outlook clients, such as Outlook for Windows and Outlook on the web; otherwise, false. Default value is false. Returned only on $select.
      Parameters:
      hideFromOutlookClients - the hideFromOutlookClients value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • isSubscribedByMail

      public Boolean isSubscribedByMail()
      Get the isSubscribedByMail property: Indicates whether the signed-in user is subscribed to receive email conversations. Default value is true. Returned only on $select.
      Returns:
      the isSubscribedByMail value.
    • withIsSubscribedByMail

      public MicrosoftGraphGroupInner withIsSubscribedByMail(Boolean isSubscribedByMail)
      Set the isSubscribedByMail property: Indicates whether the signed-in user is subscribed to receive email conversations. Default value is true. Returned only on $select.
      Parameters:
      isSubscribedByMail - the isSubscribedByMail value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • unseenCount

      public Integer unseenCount()
      Get the unseenCount property: Count of conversations that have received new posts since the signed-in user last visited the group. Returned only on $select.
      Returns:
      the unseenCount value.
    • withUnseenCount

      public MicrosoftGraphGroupInner withUnseenCount(Integer unseenCount)
      Set the unseenCount property: Count of conversations that have received new posts since the signed-in user last visited the group. Returned only on $select.
      Parameters:
      unseenCount - the unseenCount value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • isArchived

      public Boolean isArchived()
      Get the isArchived property: The isArchived property.
      Returns:
      the isArchived value.
    • withIsArchived

      public MicrosoftGraphGroupInner withIsArchived(Boolean isArchived)
      Set the isArchived property: The isArchived property.
      Parameters:
      isArchived - the isArchived value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • appRoleAssignments

      public List<MicrosoftGraphAppRoleAssignment> appRoleAssignments()
      Get the appRoleAssignments property: The appRoleAssignments property.
      Returns:
      the appRoleAssignments value.
    • withAppRoleAssignments

      public MicrosoftGraphGroupInner withAppRoleAssignments(List<MicrosoftGraphAppRoleAssignment> appRoleAssignments)
      Set the appRoleAssignments property: The appRoleAssignments property.
      Parameters:
      appRoleAssignments - the appRoleAssignments value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • createdOnBehalfOf

      public MicrosoftGraphDirectoryObjectInner createdOnBehalfOf()
      Get the createdOnBehalfOf property: directoryObject

      Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.

      Returns:
      the createdOnBehalfOf value.
    • withCreatedOnBehalfOf

      public MicrosoftGraphGroupInner withCreatedOnBehalfOf(MicrosoftGraphDirectoryObjectInner createdOnBehalfOf)
      Set the createdOnBehalfOf property: directoryObject

      Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.

      Parameters:
      createdOnBehalfOf - the createdOnBehalfOf value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • memberOf

      Get the memberOf property: Groups that this group is a member of. HTTP Methods: GET (supported for all groups). Read-only. Nullable.
      Returns:
      the memberOf value.
    • withMemberOf

      Set the memberOf property: Groups that this group is a member of. HTTP Methods: GET (supported for all groups). Read-only. Nullable.
      Parameters:
      memberOf - the memberOf value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • members

      Get the members property: Users and groups that are members of this group. HTTP Methods: GET (supported for all groups), POST (supported for Microsoft 365 groups, security groups and mail-enabled security groups), DELETE (supported for Microsoft 365 groups and security groups) Nullable.
      Returns:
      the members value.
    • withMembers

      Set the members property: Users and groups that are members of this group. HTTP Methods: GET (supported for all groups), POST (supported for Microsoft 365 groups, security groups and mail-enabled security groups), DELETE (supported for Microsoft 365 groups and security groups) Nullable.
      Parameters:
      members - the members value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • membersWithLicenseErrors

      public List<MicrosoftGraphDirectoryObjectInner> membersWithLicenseErrors()
      Get the membersWithLicenseErrors property: A list of group members with license errors from this group-based license assignment. Read-only.
      Returns:
      the membersWithLicenseErrors value.
    • withMembersWithLicenseErrors

      public MicrosoftGraphGroupInner withMembersWithLicenseErrors(List<MicrosoftGraphDirectoryObjectInner> membersWithLicenseErrors)
      Set the membersWithLicenseErrors property: A list of group members with license errors from this group-based license assignment. Read-only.
      Parameters:
      membersWithLicenseErrors - the membersWithLicenseErrors value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • owners

      Get the owners property: The owners of the group. The owners are a set of non-admin users who are allowed to modify this object. Limited to 100 owners. HTTP Methods: GET (supported for all groups), POST (supported for Microsoft 365 groups, security groups and mail-enabled security groups), DELETE (supported for Microsoft 365 groups and security groups). Nullable.
      Returns:
      the owners value.
    • withOwners

      Set the owners property: The owners of the group. The owners are a set of non-admin users who are allowed to modify this object. Limited to 100 owners. HTTP Methods: GET (supported for all groups), POST (supported for Microsoft 365 groups, security groups and mail-enabled security groups), DELETE (supported for Microsoft 365 groups and security groups). Nullable.
      Parameters:
      owners - the owners value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • permissionGrants

      Get the permissionGrants property: The permissionGrants property.
      Returns:
      the permissionGrants value.
    • withPermissionGrants

      public MicrosoftGraphGroupInner withPermissionGrants(List<MicrosoftGraphResourceSpecificPermissionGrant> permissionGrants)
      Set the permissionGrants property: The permissionGrants property.
      Parameters:
      permissionGrants - the permissionGrants value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • settings

      public List<MicrosoftGraphGroupSetting> settings()
      Get the settings property: Read-only. Nullable.
      Returns:
      the settings value.
    • withSettings

      public MicrosoftGraphGroupInner withSettings(List<MicrosoftGraphGroupSetting> settings)
      Set the settings property: Read-only. Nullable.
      Parameters:
      settings - the settings value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • transitiveMemberOf

      public List<MicrosoftGraphDirectoryObjectInner> transitiveMemberOf()
      Get the transitiveMemberOf property: The transitiveMemberOf property.
      Returns:
      the transitiveMemberOf value.
    • withTransitiveMemberOf

      public MicrosoftGraphGroupInner withTransitiveMemberOf(List<MicrosoftGraphDirectoryObjectInner> transitiveMemberOf)
      Set the transitiveMemberOf property: The transitiveMemberOf property.
      Parameters:
      transitiveMemberOf - the transitiveMemberOf value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • transitiveMembers

      public List<MicrosoftGraphDirectoryObjectInner> transitiveMembers()
      Get the transitiveMembers property: The transitiveMembers property.
      Returns:
      the transitiveMembers value.
    • withTransitiveMembers

      public MicrosoftGraphGroupInner withTransitiveMembers(List<MicrosoftGraphDirectoryObjectInner> transitiveMembers)
      Set the transitiveMembers property: The transitiveMembers property.
      Parameters:
      transitiveMembers - the transitiveMembers value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • acceptedSenders

      public List<MicrosoftGraphDirectoryObjectInner> acceptedSenders()
      Get the acceptedSenders property: The list of users or groups that are allowed to create post's or calendar events in this group. If this list is non-empty then only users or groups listed here are allowed to post.
      Returns:
      the acceptedSenders value.
    • withAcceptedSenders

      public MicrosoftGraphGroupInner withAcceptedSenders(List<MicrosoftGraphDirectoryObjectInner> acceptedSenders)
      Set the acceptedSenders property: The list of users or groups that are allowed to create post's or calendar events in this group. If this list is non-empty then only users or groups listed here are allowed to post.
      Parameters:
      acceptedSenders - the acceptedSenders value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • calendar

      public MicrosoftGraphCalendar calendar()
      Get the calendar property: calendar.
      Returns:
      the calendar value.
    • withCalendar

      public MicrosoftGraphGroupInner withCalendar(MicrosoftGraphCalendar calendar)
      Set the calendar property: calendar.
      Parameters:
      calendar - the calendar value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • calendarView

      public List<MicrosoftGraphEvent> calendarView()
      Get the calendarView property: The calendar view for the calendar. Read-only.
      Returns:
      the calendarView value.
    • withCalendarView

      public MicrosoftGraphGroupInner withCalendarView(List<MicrosoftGraphEvent> calendarView)
      Set the calendarView property: The calendar view for the calendar. Read-only.
      Parameters:
      calendarView - the calendarView value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • conversations

      public List<MicrosoftGraphConversation> conversations()
      Get the conversations property: The group's conversations.
      Returns:
      the conversations value.
    • withConversations

      public MicrosoftGraphGroupInner withConversations(List<MicrosoftGraphConversation> conversations)
      Set the conversations property: The group's conversations.
      Parameters:
      conversations - the conversations value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • events

      public List<MicrosoftGraphEvent> events()
      Get the events property: The group's calendar events.
      Returns:
      the events value.
    • withEvents

      public MicrosoftGraphGroupInner withEvents(List<MicrosoftGraphEvent> events)
      Set the events property: The group's calendar events.
      Parameters:
      events - the events value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • photo

      Get the photo property: profilePhoto.
      Returns:
      the photo value.
    • withPhoto

      Set the photo property: profilePhoto.
      Parameters:
      photo - the photo value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • photos

      public List<MicrosoftGraphProfilePhoto> photos()
      Get the photos property: The profile photos owned by the group. Read-only. Nullable.
      Returns:
      the photos value.
    • withPhotos

      Set the photos property: The profile photos owned by the group. Read-only. Nullable.
      Parameters:
      photos - the photos value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • rejectedSenders

      public List<MicrosoftGraphDirectoryObjectInner> rejectedSenders()
      Get the rejectedSenders property: The list of users or groups that are not allowed to create posts or calendar events in this group. Nullable.
      Returns:
      the rejectedSenders value.
    • withRejectedSenders

      public MicrosoftGraphGroupInner withRejectedSenders(List<MicrosoftGraphDirectoryObjectInner> rejectedSenders)
      Set the rejectedSenders property: The list of users or groups that are not allowed to create posts or calendar events in this group. Nullable.
      Parameters:
      rejectedSenders - the rejectedSenders value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • threads

      Get the threads property: The group's conversation threads. Nullable.
      Returns:
      the threads value.
    • withThreads

      Set the threads property: The group's conversation threads. Nullable.
      Parameters:
      threads - the threads value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • drive

      public MicrosoftGraphDrive drive()
      Get the drive property: drive.
      Returns:
      the drive value.
    • withDrive

      Set the drive property: drive.
      Parameters:
      drive - the drive value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • drives

      public List<MicrosoftGraphDrive> drives()
      Get the drives property: The group's drives. Read-only.
      Returns:
      the drives value.
    • withDrives

      public MicrosoftGraphGroupInner withDrives(List<MicrosoftGraphDrive> drives)
      Set the drives property: The group's drives. Read-only.
      Parameters:
      drives - the drives value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • sites

      public List<MicrosoftGraphSite> sites()
      Get the sites property: The list of SharePoint sites in this group. Access the default site with /sites/root.
      Returns:
      the sites value.
    • withSites

      Set the sites property: The list of SharePoint sites in this group. Access the default site with /sites/root.
      Parameters:
      sites - the sites value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • extensions

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

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

      public List<MicrosoftGraphGroupLifecyclePolicy> groupLifecyclePolicies()
      Get the groupLifecyclePolicies property: The collection of lifecycle policies for this group. Read-only. Nullable.
      Returns:
      the groupLifecyclePolicies value.
    • withGroupLifecyclePolicies

      public MicrosoftGraphGroupInner withGroupLifecyclePolicies(List<MicrosoftGraphGroupLifecyclePolicy> groupLifecyclePolicies)
      Set the groupLifecyclePolicies property: The collection of lifecycle policies for this group. Read-only. Nullable.
      Parameters:
      groupLifecyclePolicies - the groupLifecyclePolicies value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • planner

      public MicrosoftGraphPlannerGroup planner()
      Get the planner property: plannerGroup.
      Returns:
      the planner value.
    • withPlanner

      Set the planner property: plannerGroup.
      Parameters:
      planner - the planner value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • onenote

      public MicrosoftGraphOnenote onenote()
      Get the onenote property: onenote.
      Returns:
      the onenote value.
    • withOnenote

      public MicrosoftGraphGroupInner withOnenote(MicrosoftGraphOnenote onenote)
      Set the onenote property: onenote.
      Parameters:
      onenote - the onenote value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • team

      public MicrosoftGraphTeamInner team()
      Get the team property: team.
      Returns:
      the team value.
    • withTeam

      Set the team property: team.
      Parameters:
      team - the team value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • additionalProperties

      public Map<String,Object> additionalProperties()
      Get the additionalProperties property: Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.
      Overrides:
      additionalProperties in class MicrosoftGraphDirectoryObjectInner
      Returns:
      the additionalProperties value.
    • withAdditionalProperties

      public MicrosoftGraphGroupInner withAdditionalProperties(Map<String,Object> additionalProperties)
      Set the additionalProperties property: Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.
      Overrides:
      withAdditionalProperties in class MicrosoftGraphDirectoryObjectInner
      Parameters:
      additionalProperties - the additionalProperties value to set.
      Returns:
      the MicrosoftGraphGroupInner object itself.
    • withDeletedDateTime

      public MicrosoftGraphGroupInner 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 MicrosoftGraphGroupInner 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.