Package com.microsoft.graph.models
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
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OwnerlessGroupPolicycreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the emailInfo property value.Gets the enabledGroupIds property value.The deserialization information for the current modelGets the isEnabled property value.Gets the maxMembersToNotify property value.Gets the notificationDurationInWeeks property value.Gets the policyWebUrl property value.Gets the targetOwners property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetEmailInfo(EmailDetails value) Sets the emailInfo property value.voidsetEnabledGroupIds(List<String> value) Sets the enabledGroupIds property value.voidsetIsEnabled(Boolean value) Sets the isEnabled property value.voidsetMaxMembersToNotify(Long value) Sets the maxMembersToNotify property value.voidSets the notificationDurationInWeeks property value.voidsetPolicyWebUrl(String value) Sets the policyWebUrl property value.voidsetTargetOwners(TargetOwners value) Sets the targetOwners property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
OwnerlessGroupPolicy
public OwnerlessGroupPolicy()Instantiates a newOwnerlessGroupPolicyand 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
Gets the emailInfo property value. The emailInfo property- Returns:
- a
EmailDetails
-
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. -
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model- Specified by:
getFieldDeserializersin interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
getFieldDeserializersin classEntity- Returns:
- a
Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
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
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
Gets the notificationDurationInWeeks property value. The number of weeks for the notification duration. Value range is 1-7.- Returns:
- a
Long
-
getPolicyWebUrl
Gets the policyWebUrl property value. The URL to the policy documentation.- Returns:
- a
String
-
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 -
setEmailInfo
Sets the emailInfo property value. The emailInfo property- Parameters:
value- Value to set for the emailInfo property.
-
setEnabledGroupIds
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
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
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
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
Sets the policyWebUrl property value. The URL to the policy documentation.- Parameters:
value- Value to set for the policyWebUrl property.
-
setTargetOwners
Sets the targetOwners property value. The targetOwners property- Parameters:
value- Value to set for the targetOwners property.
-