Class MicrosoftGraphGroupLifecyclePolicy

java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphGroupLifecyclePolicy

public final class MicrosoftGraphGroupLifecyclePolicy extends MicrosoftGraphEntity
groupLifecyclePolicy.
  • Constructor Details

    • MicrosoftGraphGroupLifecyclePolicy

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

    • alternateNotificationEmails

      public String alternateNotificationEmails()
      Get the alternateNotificationEmails property: 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:
      the alternateNotificationEmails value.
    • withAlternateNotificationEmails

      public MicrosoftGraphGroupLifecyclePolicy withAlternateNotificationEmails(String alternateNotificationEmails)
      Set the alternateNotificationEmails property: 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:
      alternateNotificationEmails - the alternateNotificationEmails value to set.
      Returns:
      the MicrosoftGraphGroupLifecyclePolicy object itself.
    • groupLifetimeInDays

      public Integer groupLifetimeInDays()
      Get the groupLifetimeInDays property: 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:
      the groupLifetimeInDays value.
    • withGroupLifetimeInDays

      public MicrosoftGraphGroupLifecyclePolicy withGroupLifetimeInDays(Integer groupLifetimeInDays)
      Set the groupLifetimeInDays property: 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:
      groupLifetimeInDays - the groupLifetimeInDays value to set.
      Returns:
      the MicrosoftGraphGroupLifecyclePolicy object itself.
    • managedGroupTypes

      public String managedGroupTypes()
      Get the managedGroupTypes property: The group type for which the expiration policy applies. Possible values are All, Selected or None.
      Returns:
      the managedGroupTypes value.
    • withManagedGroupTypes

      public MicrosoftGraphGroupLifecyclePolicy withManagedGroupTypes(String managedGroupTypes)
      Set the managedGroupTypes property: The group type for which the expiration policy applies. Possible values are All, Selected or None.
      Parameters:
      managedGroupTypes - the managedGroupTypes value to set.
      Returns:
      the MicrosoftGraphGroupLifecyclePolicy object itself.
    • additionalProperties

      public Map<String,Object> additionalProperties()
      Get the additionalProperties property: groupLifecyclePolicy.
      Overrides:
      additionalProperties in class MicrosoftGraphEntity
      Returns:
      the additionalProperties value.
    • withAdditionalProperties

      public MicrosoftGraphGroupLifecyclePolicy withAdditionalProperties(Map<String,Object> additionalProperties)
      Set the additionalProperties property: groupLifecyclePolicy.
      Overrides:
      withAdditionalProperties in class MicrosoftGraphEntity
      Parameters:
      additionalProperties - the additionalProperties value to set.
      Returns:
      the MicrosoftGraphGroupLifecyclePolicy object itself.
    • withId

      Set the id property: Read-only.
      Overrides:
      withId in class MicrosoftGraphEntity
      Parameters:
      id - the id value to set.
      Returns:
      the MicrosoftGraphEntity object itself.
    • validate

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