MicrosoftGraphGroupLifecyclePolicy Class

public final class MicrosoftGraphGroupLifecyclePolicy
extends MicrosoftGraphEntity

groupLifecyclePolicy.

Constructor Summary

Constructor Description
MicrosoftGraphGroupLifecyclePolicy()

Creates an instance of MicrosoftGraphGroupLifecyclePolicy class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: groupLifecyclePolicy.

String alternateNotificationEmails()

Get the alternateNotificationEmails property: List of email address to send notifications for groups without owners.

Integer groupLifetimeInDays()

Get the groupLifetimeInDays property: Number of days before a group expires and needs to be renewed.

String managedGroupTypes()

Get the managedGroupTypes property: The group type for which the expiration policy applies.

void validate()

Validates the instance.

MicrosoftGraphGroupLifecyclePolicy withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: groupLifecyclePolicy.

MicrosoftGraphGroupLifecyclePolicy withAlternateNotificationEmails(String alternateNotificationEmails)

Set the alternateNotificationEmails property: List of email address to send notifications for groups without owners.

MicrosoftGraphGroupLifecyclePolicy withGroupLifetimeInDays(Integer groupLifetimeInDays)

Set the groupLifetimeInDays property: Number of days before a group expires and needs to be renewed.

MicrosoftGraphGroupLifecyclePolicy withId(String id)

Set the id property: Read-only.

MicrosoftGraphGroupLifecyclePolicy withManagedGroupTypes(String managedGroupTypes)

Set the managedGroupTypes property: The group type for which the expiration policy applies.

Methods inherited from MicrosoftGraphEntity

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphGroupLifecyclePolicy

public MicrosoftGraphGroupLifecyclePolicy()

Creates an instance of MicrosoftGraphGroupLifecyclePolicy class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: groupLifecyclePolicy.

Overrides:

MicrosoftGraphGroupLifecyclePolicy.additionalProperties()

Returns:

the additionalProperties value.

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.

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.

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.

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphGroupLifecyclePolicy.validate()

withAdditionalProperties

public MicrosoftGraphGroupLifecyclePolicy withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: groupLifecyclePolicy.

Overrides:

MicrosoftGraphGroupLifecyclePolicy.withAdditionalProperties(Map<String,Object> additionalProperties)

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphGroupLifecyclePolicy object itself.

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.

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.

withId

public MicrosoftGraphGroupLifecyclePolicy withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphGroupLifecyclePolicy.withId(String id)

Parameters:

id

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.

Applies to