Class OwnerlessGroupPolicy

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

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

    • OwnerlessGroupPolicy

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

    • createFromDiscriminatorValue

      @Nonnull public static OwnerlessGroupPolicy 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 OwnerlessGroupPolicy
    • getEmailInfo

      @Nullable public EmailDetails getEmailInfo()
      Gets the emailInfo property value. The emailInfo property
      Returns:
      a EmailDetails
    • getEnabledGroupIds

      @Nullable public List<String> getEnabledGroupIds()
      Gets the enabledGroupIds property value. The collection of IDs for groups to which the policy is enabled. If empty, the policy is enabled for all groups in the tenant.
      Returns:
      a List<String>
    • 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>>
    • getIsEnabled

      @Nullable public Boolean getIsEnabled()
      Gets the isEnabled property value. Indicates whether the ownerless group policy is enabled in the tenant. Setting this property to false clears the values of all other policy parameters.
      Returns:
      a Boolean
    • getMaxMembersToNotify

      @Nullable public Long getMaxMembersToNotify()
      Gets the maxMembersToNotify property value. The maximum number of members to notify. Value range is 0-90. Members are prioritized by recent group activity (most active first). If there aren't enough active members to fill the limit, remaining slots are filled with other eligible group members from the directory.
      Returns:
      a Long
    • getNotificationDurationInWeeks

      @Nullable public Long getNotificationDurationInWeeks()
      Gets the notificationDurationInWeeks property value. The number of weeks for the notification duration. Value range is 1-7.
      Returns:
      a Long
    • getPolicyWebUrl

      @Nullable public String getPolicyWebUrl()
      Gets the policyWebUrl property value. The URL to the policy documentation.
      Returns:
      a String
    • getTargetOwners

      @Nullable public TargetOwners getTargetOwners()
      Gets the targetOwners property value. The targetOwners property
      Returns:
      a TargetOwners
    • 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
    • setEmailInfo

      public void setEmailInfo(@Nullable EmailDetails value)
      Sets the emailInfo property value. The emailInfo property
      Parameters:
      value - Value to set for the emailInfo property.
    • setEnabledGroupIds

      public void setEnabledGroupIds(@Nullable List<String> value)
      Sets the enabledGroupIds property value. The collection of IDs for groups to which the policy is enabled. If empty, the policy is enabled for all groups in the tenant.
      Parameters:
      value - Value to set for the enabledGroupIds property.
    • setIsEnabled

      public void setIsEnabled(@Nullable Boolean value)
      Sets the isEnabled property value. Indicates whether the ownerless group policy is enabled in the tenant. Setting this property to false clears the values of all other policy parameters.
      Parameters:
      value - Value to set for the isEnabled property.
    • setMaxMembersToNotify

      public void setMaxMembersToNotify(@Nullable Long value)
      Sets the maxMembersToNotify property value. The maximum number of members to notify. Value range is 0-90. Members are prioritized by recent group activity (most active first). If there aren't enough active members to fill the limit, remaining slots are filled with other eligible group members from the directory.
      Parameters:
      value - Value to set for the maxMembersToNotify property.
    • setNotificationDurationInWeeks

      public void setNotificationDurationInWeeks(@Nullable Long value)
      Sets the notificationDurationInWeeks property value. The number of weeks for the notification duration. Value range is 1-7.
      Parameters:
      value - Value to set for the notificationDurationInWeeks property.
    • setPolicyWebUrl

      public void setPolicyWebUrl(@Nullable String value)
      Sets the policyWebUrl property value. The URL to the policy documentation.
      Parameters:
      value - Value to set for the policyWebUrl property.
    • setTargetOwners

      public void setTargetOwners(@Nullable TargetOwners value)
      Sets the targetOwners property value. The targetOwners property
      Parameters:
      value - Value to set for the targetOwners property.