Class GroupLifecyclePolicy

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

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

    • GroupLifecyclePolicy

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

    • createFromDiscriminatorValue

      @Nonnull public static GroupLifecyclePolicy 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 GroupLifecyclePolicy
    • getAlternateNotificationEmails

      @Nullable public String getAlternateNotificationEmails()
      Gets the alternateNotificationEmails property value. List of email address to send notifications for groups without owners. Multiple email address can be defined by separating email address with a semicolon.
      Returns:
      a 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>>
    • getGroupLifetimeInDays

      @Nullable public Integer getGroupLifetimeInDays()
      Gets the groupLifetimeInDays property value. Number of days before a group expires and needs to be renewed. Once renewed, the group expiration is extended by the number of days defined.
      Returns:
      a Integer
    • getManagedGroupTypes

      @Nullable public String getManagedGroupTypes()
      Gets the managedGroupTypes property value. The group type for which the expiration policy applies. Possible values are All, Selected or None.
      Returns:
      a String
    • 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
    • setAlternateNotificationEmails

      public void setAlternateNotificationEmails(@Nullable String value)
      Sets the alternateNotificationEmails property value. List of email address to send notifications for groups without owners. Multiple email address can be defined by separating email address with a semicolon.
      Parameters:
      value - Value to set for the alternateNotificationEmails property.
    • setGroupLifetimeInDays

      public void setGroupLifetimeInDays(@Nullable Integer value)
      Sets the groupLifetimeInDays property value. Number of days before a group expires and needs to be renewed. Once renewed, the group expiration is extended by the number of days defined.
      Parameters:
      value - Value to set for the groupLifetimeInDays property.
    • setManagedGroupTypes

      public void setManagedGroupTypes(@Nullable String value)
      Sets the managedGroupTypes property value. The group type for which the expiration policy applies. Possible values are All, Selected or None.
      Parameters:
      value - Value to set for the managedGroupTypes property.