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.

static MicrosoftGraphGroupLifecyclePolicy fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphGroupLifecyclePolicy from the JsonReader.

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.

JsonWriter toJson(JsonWriter jsonWriter)
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.

fromJson

public static MicrosoftGraphGroupLifecyclePolicy fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphGroupLifecyclePolicy from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphGroupLifecyclePolicy if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the MicrosoftGraphGroupLifecyclePolicy.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphGroupLifecyclePolicy.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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