你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MicrosoftGraphCalendarPermission Class

public final class MicrosoftGraphCalendarPermission
extends MicrosoftGraphEntity

calendarPermission.

Constructor Summary

Constructor Description
MicrosoftGraphCalendarPermission()

Creates an instance of MicrosoftGraphCalendarPermission class.

Method Summary

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

Get the additionalProperties property: calendarPermission.

List<MicrosoftGraphCalendarRoleType> allowedRoles()

Get the allowedRoles property: List of allowed sharing or delegating permission levels for the calendar.

MicrosoftGraphEmailAddress emailAddress()

Get the emailAddress property: emailAddress.

static MicrosoftGraphCalendarPermission fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphCalendarPermission from the JsonReader.

Boolean isInsideOrganization()

Get the isInsideOrganization property: True if the user in context (sharee or delegate) is inside the same organization as the calendar owner.

Boolean isRemovable()

Get the isRemovable property: True if the user can be removed from the list of sharees or delegates for the specified calendar, false otherwise.

MicrosoftGraphCalendarRoleType role()

Get the role property: calendarRoleType.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphCalendarPermission withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: calendarPermission.

MicrosoftGraphCalendarPermission withAllowedRoles(List<MicrosoftGraphCalendarRoleType> allowedRoles)

Set the allowedRoles property: List of allowed sharing or delegating permission levels for the calendar.

MicrosoftGraphCalendarPermission withEmailAddress(MicrosoftGraphEmailAddress emailAddress)

Set the emailAddress property: emailAddress.

MicrosoftGraphCalendarPermission withId(String id)

Set the id property: Read-only.

MicrosoftGraphCalendarPermission withIsInsideOrganization(Boolean isInsideOrganization)

Set the isInsideOrganization property: True if the user in context (sharee or delegate) is inside the same organization as the calendar owner.

MicrosoftGraphCalendarPermission withIsRemovable(Boolean isRemovable)

Set the isRemovable property: True if the user can be removed from the list of sharees or delegates for the specified calendar, false otherwise.

MicrosoftGraphCalendarPermission withRole(MicrosoftGraphCalendarRoleType role)

Set the role property: calendarRoleType.

Methods inherited from MicrosoftGraphEntity

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphCalendarPermission

public MicrosoftGraphCalendarPermission()

Creates an instance of MicrosoftGraphCalendarPermission class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: calendarPermission.

Overrides:

MicrosoftGraphCalendarPermission.additionalProperties()

Returns:

the additionalProperties value.

allowedRoles

public List allowedRoles()

Get the allowedRoles property: List of allowed sharing or delegating permission levels for the calendar. Possible values are: none, freeBusyRead, limitedRead, read, write, delegateWithoutPrivateEventAccess, delegateWithPrivateEventAccess, custom.

Returns:

the allowedRoles value.

emailAddress

public MicrosoftGraphEmailAddress emailAddress()

Get the emailAddress property: emailAddress.

Returns:

the emailAddress value.

fromJson

public static MicrosoftGraphCalendarPermission fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphCalendarPermission from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphCalendarPermission 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 MicrosoftGraphCalendarPermission.

isInsideOrganization

public Boolean isInsideOrganization()

Get the isInsideOrganization property: True if the user in context (sharee or delegate) is inside the same organization as the calendar owner.

Returns:

the isInsideOrganization value.

isRemovable

public Boolean isRemovable()

Get the isRemovable property: True if the user can be removed from the list of sharees or delegates for the specified calendar, false otherwise. The 'My organization' user determines the permissions other people within your organization have to the given calendar. You cannot remove 'My organization' as a sharee to a calendar.

Returns:

the isRemovable value.

role

public MicrosoftGraphCalendarRoleType role()

Get the role property: calendarRoleType.

Returns:

the role value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphCalendarPermission.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphCalendarPermission.validate()

withAdditionalProperties

public MicrosoftGraphCalendarPermission withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: calendarPermission.

Overrides:

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

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphCalendarPermission object itself.

withAllowedRoles

public MicrosoftGraphCalendarPermission withAllowedRoles(List allowedRoles)

Set the allowedRoles property: List of allowed sharing or delegating permission levels for the calendar. Possible values are: none, freeBusyRead, limitedRead, read, write, delegateWithoutPrivateEventAccess, delegateWithPrivateEventAccess, custom.

Parameters:

allowedRoles - the allowedRoles value to set.

Returns:

the MicrosoftGraphCalendarPermission object itself.

withEmailAddress

public MicrosoftGraphCalendarPermission withEmailAddress(MicrosoftGraphEmailAddress emailAddress)

Set the emailAddress property: emailAddress.

Parameters:

emailAddress - the emailAddress value to set.

Returns:

the MicrosoftGraphCalendarPermission object itself.

withId

public MicrosoftGraphCalendarPermission withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphCalendarPermission.withId(String id)

Parameters:

id

withIsInsideOrganization

public MicrosoftGraphCalendarPermission withIsInsideOrganization(Boolean isInsideOrganization)

Set the isInsideOrganization property: True if the user in context (sharee or delegate) is inside the same organization as the calendar owner.

Parameters:

isInsideOrganization - the isInsideOrganization value to set.

Returns:

the MicrosoftGraphCalendarPermission object itself.

withIsRemovable

public MicrosoftGraphCalendarPermission withIsRemovable(Boolean isRemovable)

Set the isRemovable property: True if the user can be removed from the list of sharees or delegates for the specified calendar, false otherwise. The 'My organization' user determines the permissions other people within your organization have to the given calendar. You cannot remove 'My organization' as a sharee to a calendar.

Parameters:

isRemovable - the isRemovable value to set.

Returns:

the MicrosoftGraphCalendarPermission object itself.

withRole

public MicrosoftGraphCalendarPermission withRole(MicrosoftGraphCalendarRoleType role)

Set the role property: calendarRoleType.

Parameters:

role - the role value to set.

Returns:

the MicrosoftGraphCalendarPermission object itself.

Applies to