Class MicrosoftGraphCalendar
- java.lang.Object
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphCalendar
-
public final class MicrosoftGraphCalendar extends MicrosoftGraphEntity
calendar.
-
-
Constructor Summary
Constructors Constructor Description MicrosoftGraphCalendar()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
additionalProperties()
Get the additionalProperties property: calendar.List<MicrosoftGraphOnlineMeetingProviderType>
allowedOnlineMeetingProviders()
Get the allowedOnlineMeetingProviders property: Represent the online meeting service providers that can be used to create online meetings in this calendar.List<MicrosoftGraphCalendarPermission>
calendarPermissions()
Get the calendarPermissions property: The permissions of the users with whom the calendar is shared.List<MicrosoftGraphEvent>
calendarView()
Get the calendarView property: The calendar view for the calendar.Boolean
canEdit()
Get the canEdit property: True if the user can write to the calendar, false otherwise.Boolean
canShare()
Get the canShare property: True if the user has the permission to share the calendar, false otherwise.Boolean
canViewPrivateItems()
Get the canViewPrivateItems property: True if the user can read calendar items that have been marked private, false otherwise.String
changeKey()
Get the changeKey property: Identifies the version of the calendar object.MicrosoftGraphCalendarColor
color()
Get the color property: The color property.MicrosoftGraphOnlineMeetingProviderType
defaultOnlineMeetingProvider()
Get the defaultOnlineMeetingProvider property: The defaultOnlineMeetingProvider property.List<MicrosoftGraphEvent>
events()
Get the events property: The events in the calendar.String
hexColor()
Get the hexColor property: The hexColor property.Boolean
isDefaultCalendar()
Get the isDefaultCalendar property: The isDefaultCalendar property.Boolean
isRemovable()
Get the isRemovable property: Indicates whether this user calendar can be deleted from the user mailbox.Boolean
isTallyingResponses()
Get the isTallyingResponses property: Indicates whether this user calendar supports tracking of meeting responses.List<MicrosoftGraphMultiValueLegacyExtendedProperty>
multiValueExtendedProperties()
Get the multiValueExtendedProperties property: The collection of multi-value extended properties defined for the calendar.String
name()
Get the name property: The calendar name.MicrosoftGraphEmailAddress
owner()
Get the owner property: emailAddress.List<MicrosoftGraphSingleValueLegacyExtendedProperty>
singleValueExtendedProperties()
Get the singleValueExtendedProperties property: The collection of single-value extended properties defined for the calendar.void
validate()
Validates the instance.MicrosoftGraphCalendar
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: calendar.MicrosoftGraphCalendar
withAllowedOnlineMeetingProviders(List<MicrosoftGraphOnlineMeetingProviderType> allowedOnlineMeetingProviders)
Set the allowedOnlineMeetingProviders property: Represent the online meeting service providers that can be used to create online meetings in this calendar.MicrosoftGraphCalendar
withCalendarPermissions(List<MicrosoftGraphCalendarPermission> calendarPermissions)
Set the calendarPermissions property: The permissions of the users with whom the calendar is shared.MicrosoftGraphCalendar
withCalendarView(List<MicrosoftGraphEvent> calendarView)
Set the calendarView property: The calendar view for the calendar.MicrosoftGraphCalendar
withCanEdit(Boolean canEdit)
Set the canEdit property: True if the user can write to the calendar, false otherwise.MicrosoftGraphCalendar
withCanShare(Boolean canShare)
Set the canShare property: True if the user has the permission to share the calendar, false otherwise.MicrosoftGraphCalendar
withCanViewPrivateItems(Boolean canViewPrivateItems)
Set the canViewPrivateItems property: True if the user can read calendar items that have been marked private, false otherwise.MicrosoftGraphCalendar
withChangeKey(String changeKey)
Set the changeKey property: Identifies the version of the calendar object.MicrosoftGraphCalendar
withColor(MicrosoftGraphCalendarColor color)
Set the color property: The color property.MicrosoftGraphCalendar
withDefaultOnlineMeetingProvider(MicrosoftGraphOnlineMeetingProviderType defaultOnlineMeetingProvider)
Set the defaultOnlineMeetingProvider property: The defaultOnlineMeetingProvider property.MicrosoftGraphCalendar
withEvents(List<MicrosoftGraphEvent> events)
Set the events property: The events in the calendar.MicrosoftGraphCalendar
withHexColor(String hexColor)
Set the hexColor property: The hexColor property.MicrosoftGraphCalendar
withId(String id)
Set the id property: Read-only.MicrosoftGraphCalendar
withIsDefaultCalendar(Boolean isDefaultCalendar)
Set the isDefaultCalendar property: The isDefaultCalendar property.MicrosoftGraphCalendar
withIsRemovable(Boolean isRemovable)
Set the isRemovable property: Indicates whether this user calendar can be deleted from the user mailbox.MicrosoftGraphCalendar
withIsTallyingResponses(Boolean isTallyingResponses)
Set the isTallyingResponses property: Indicates whether this user calendar supports tracking of meeting responses.MicrosoftGraphCalendar
withMultiValueExtendedProperties(List<MicrosoftGraphMultiValueLegacyExtendedProperty> multiValueExtendedProperties)
Set the multiValueExtendedProperties property: The collection of multi-value extended properties defined for the calendar.MicrosoftGraphCalendar
withName(String name)
Set the name property: The calendar name.MicrosoftGraphCalendar
withOwner(MicrosoftGraphEmailAddress owner)
Set the owner property: emailAddress.MicrosoftGraphCalendar
withSingleValueExtendedProperties(List<MicrosoftGraphSingleValueLegacyExtendedProperty> singleValueExtendedProperties)
Set the singleValueExtendedProperties property: The collection of single-value extended properties defined for the calendar.-
Methods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
id
-
-
-
-
Method Detail
-
allowedOnlineMeetingProviders
public List<MicrosoftGraphOnlineMeetingProviderType> allowedOnlineMeetingProviders()
Get the allowedOnlineMeetingProviders property: Represent the online meeting service providers that can be used to create online meetings in this calendar. Possible values are: unknown, skypeForBusiness, skypeForConsumer, teamsForBusiness.- Returns:
- the allowedOnlineMeetingProviders value.
-
withAllowedOnlineMeetingProviders
public MicrosoftGraphCalendar withAllowedOnlineMeetingProviders(List<MicrosoftGraphOnlineMeetingProviderType> allowedOnlineMeetingProviders)
Set the allowedOnlineMeetingProviders property: Represent the online meeting service providers that can be used to create online meetings in this calendar. Possible values are: unknown, skypeForBusiness, skypeForConsumer, teamsForBusiness.- Parameters:
allowedOnlineMeetingProviders
- the allowedOnlineMeetingProviders value to set.- Returns:
- the MicrosoftGraphCalendar object itself.
-
canEdit
public Boolean canEdit()
Get the canEdit property: True if the user can write to the calendar, false otherwise. This property is true for the user who created the calendar. This property is also true for a user who has been shared a calendar and granted write access.- Returns:
- the canEdit value.
-
withCanEdit
public MicrosoftGraphCalendar withCanEdit(Boolean canEdit)
Set the canEdit property: True if the user can write to the calendar, false otherwise. This property is true for the user who created the calendar. This property is also true for a user who has been shared a calendar and granted write access.- Parameters:
canEdit
- the canEdit value to set.- Returns:
- the MicrosoftGraphCalendar object itself.
-
canShare
public Boolean canShare()
Get the canShare property: True if the user has the permission to share the calendar, false otherwise. Only the user who created the calendar can share it.- Returns:
- the canShare value.
-
withCanShare
public MicrosoftGraphCalendar withCanShare(Boolean canShare)
Set the canShare property: True if the user has the permission to share the calendar, false otherwise. Only the user who created the calendar can share it.- Parameters:
canShare
- the canShare value to set.- Returns:
- the MicrosoftGraphCalendar object itself.
-
canViewPrivateItems
public Boolean canViewPrivateItems()
Get the canViewPrivateItems property: True if the user can read calendar items that have been marked private, false otherwise.- Returns:
- the canViewPrivateItems value.
-
withCanViewPrivateItems
public MicrosoftGraphCalendar withCanViewPrivateItems(Boolean canViewPrivateItems)
Set the canViewPrivateItems property: True if the user can read calendar items that have been marked private, false otherwise.- Parameters:
canViewPrivateItems
- the canViewPrivateItems value to set.- Returns:
- the MicrosoftGraphCalendar object itself.
-
changeKey
public String changeKey()
Get the changeKey property: Identifies the version of the calendar object. Every time the calendar is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only.- Returns:
- the changeKey value.
-
withChangeKey
public MicrosoftGraphCalendar withChangeKey(String changeKey)
Set the changeKey property: Identifies the version of the calendar object. Every time the calendar is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only.- Parameters:
changeKey
- the changeKey value to set.- Returns:
- the MicrosoftGraphCalendar object itself.
-
color
public MicrosoftGraphCalendarColor color()
Get the color property: The color property.- Returns:
- the color value.
-
withColor
public MicrosoftGraphCalendar withColor(MicrosoftGraphCalendarColor color)
Set the color property: The color property.- Parameters:
color
- the color value to set.- Returns:
- the MicrosoftGraphCalendar object itself.
-
defaultOnlineMeetingProvider
public MicrosoftGraphOnlineMeetingProviderType defaultOnlineMeetingProvider()
Get the defaultOnlineMeetingProvider property: The defaultOnlineMeetingProvider property.- Returns:
- the defaultOnlineMeetingProvider value.
-
withDefaultOnlineMeetingProvider
public MicrosoftGraphCalendar withDefaultOnlineMeetingProvider(MicrosoftGraphOnlineMeetingProviderType defaultOnlineMeetingProvider)
Set the defaultOnlineMeetingProvider property: The defaultOnlineMeetingProvider property.- Parameters:
defaultOnlineMeetingProvider
- the defaultOnlineMeetingProvider value to set.- Returns:
- the MicrosoftGraphCalendar object itself.
-
hexColor
public String hexColor()
Get the hexColor property: The hexColor property.- Returns:
- the hexColor value.
-
withHexColor
public MicrosoftGraphCalendar withHexColor(String hexColor)
Set the hexColor property: The hexColor property.- Parameters:
hexColor
- the hexColor value to set.- Returns:
- the MicrosoftGraphCalendar object itself.
-
isDefaultCalendar
public Boolean isDefaultCalendar()
Get the isDefaultCalendar property: The isDefaultCalendar property.- Returns:
- the isDefaultCalendar value.
-
withIsDefaultCalendar
public MicrosoftGraphCalendar withIsDefaultCalendar(Boolean isDefaultCalendar)
Set the isDefaultCalendar property: The isDefaultCalendar property.- Parameters:
isDefaultCalendar
- the isDefaultCalendar value to set.- Returns:
- the MicrosoftGraphCalendar object itself.
-
isRemovable
public Boolean isRemovable()
Get the isRemovable property: Indicates whether this user calendar can be deleted from the user mailbox.- Returns:
- the isRemovable value.
-
withIsRemovable
public MicrosoftGraphCalendar withIsRemovable(Boolean isRemovable)
Set the isRemovable property: Indicates whether this user calendar can be deleted from the user mailbox.- Parameters:
isRemovable
- the isRemovable value to set.- Returns:
- the MicrosoftGraphCalendar object itself.
-
isTallyingResponses
public Boolean isTallyingResponses()
Get the isTallyingResponses property: Indicates whether this user calendar supports tracking of meeting responses. Only meeting invites sent from users' primary calendars support tracking of meeting responses.- Returns:
- the isTallyingResponses value.
-
withIsTallyingResponses
public MicrosoftGraphCalendar withIsTallyingResponses(Boolean isTallyingResponses)
Set the isTallyingResponses property: Indicates whether this user calendar supports tracking of meeting responses. Only meeting invites sent from users' primary calendars support tracking of meeting responses.- Parameters:
isTallyingResponses
- the isTallyingResponses value to set.- Returns:
- the MicrosoftGraphCalendar object itself.
-
name
public String name()
Get the name property: The calendar name.- Returns:
- the name value.
-
withName
public MicrosoftGraphCalendar withName(String name)
Set the name property: The calendar name.- Parameters:
name
- the name value to set.- Returns:
- the MicrosoftGraphCalendar object itself.
-
owner
public MicrosoftGraphEmailAddress owner()
Get the owner property: emailAddress.- Returns:
- the owner value.
-
withOwner
public MicrosoftGraphCalendar withOwner(MicrosoftGraphEmailAddress owner)
Set the owner property: emailAddress.- Parameters:
owner
- the owner value to set.- Returns:
- the MicrosoftGraphCalendar object itself.
-
calendarPermissions
public List<MicrosoftGraphCalendarPermission> calendarPermissions()
Get the calendarPermissions property: The permissions of the users with whom the calendar is shared.- Returns:
- the calendarPermissions value.
-
withCalendarPermissions
public MicrosoftGraphCalendar withCalendarPermissions(List<MicrosoftGraphCalendarPermission> calendarPermissions)
Set the calendarPermissions property: The permissions of the users with whom the calendar is shared.- Parameters:
calendarPermissions
- the calendarPermissions value to set.- Returns:
- the MicrosoftGraphCalendar object itself.
-
calendarView
public List<MicrosoftGraphEvent> calendarView()
Get the calendarView property: The calendar view for the calendar. Navigation property. Read-only.- Returns:
- the calendarView value.
-
withCalendarView
public MicrosoftGraphCalendar withCalendarView(List<MicrosoftGraphEvent> calendarView)
Set the calendarView property: The calendar view for the calendar. Navigation property. Read-only.- Parameters:
calendarView
- the calendarView value to set.- Returns:
- the MicrosoftGraphCalendar object itself.
-
events
public List<MicrosoftGraphEvent> events()
Get the events property: The events in the calendar. Navigation property. Read-only.- Returns:
- the events value.
-
withEvents
public MicrosoftGraphCalendar withEvents(List<MicrosoftGraphEvent> events)
Set the events property: The events in the calendar. Navigation property. Read-only.- Parameters:
events
- the events value to set.- Returns:
- the MicrosoftGraphCalendar object itself.
-
multiValueExtendedProperties
public List<MicrosoftGraphMultiValueLegacyExtendedProperty> multiValueExtendedProperties()
Get the multiValueExtendedProperties property: The collection of multi-value extended properties defined for the calendar. Read-only. Nullable.- Returns:
- the multiValueExtendedProperties value.
-
withMultiValueExtendedProperties
public MicrosoftGraphCalendar withMultiValueExtendedProperties(List<MicrosoftGraphMultiValueLegacyExtendedProperty> multiValueExtendedProperties)
Set the multiValueExtendedProperties property: The collection of multi-value extended properties defined for the calendar. Read-only. Nullable.- Parameters:
multiValueExtendedProperties
- the multiValueExtendedProperties value to set.- Returns:
- the MicrosoftGraphCalendar object itself.
-
singleValueExtendedProperties
public List<MicrosoftGraphSingleValueLegacyExtendedProperty> singleValueExtendedProperties()
Get the singleValueExtendedProperties property: The collection of single-value extended properties defined for the calendar. Read-only. Nullable.- Returns:
- the singleValueExtendedProperties value.
-
withSingleValueExtendedProperties
public MicrosoftGraphCalendar withSingleValueExtendedProperties(List<MicrosoftGraphSingleValueLegacyExtendedProperty> singleValueExtendedProperties)
Set the singleValueExtendedProperties property: The collection of single-value extended properties defined for the calendar. Read-only. Nullable.- Parameters:
singleValueExtendedProperties
- the singleValueExtendedProperties value to set.- Returns:
- the MicrosoftGraphCalendar object itself.
-
additionalProperties
public Map<String,Object> additionalProperties()
Get the additionalProperties property: calendar.- Overrides:
additionalProperties
in classMicrosoftGraphEntity
- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphCalendar withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: calendar.- Overrides:
withAdditionalProperties
in classMicrosoftGraphEntity
- Parameters:
additionalProperties
- the additionalProperties value to set.- Returns:
- the MicrosoftGraphCalendar object itself.
-
withId
public MicrosoftGraphCalendar withId(String id)
Set the id property: Read-only.- Overrides:
withId
in classMicrosoftGraphEntity
- Parameters:
id
- the id value to set.- Returns:
- the MicrosoftGraphEntity object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classMicrosoftGraphEntity
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-