Class MicrosoftGraphTimeOffItem
java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphScheduleEntity
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphTimeOffItem
timeOffItem.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MicrosoftGraphTimeOffItem class. -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalProperties property: timeOffItem.Get the timeOffReasonId property: ID of the timeOffReason for this timeOffItem.voidvalidate()Validates the instance.withAdditionalProperties(Map<String, Object> additionalProperties) Set the additionalProperties property: timeOffItem.withEndDateTime(OffsetDateTime endDateTime) Set the endDateTime property: The endDateTime property.withStartDateTime(OffsetDateTime startDateTime) Set the startDateTime property: The startDateTime property.Set the theme property: scheduleEntityTheme.withTimeOffReasonId(String timeOffReasonId) Set the timeOffReasonId property: ID of the timeOffReason for this timeOffItem.Methods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphScheduleEntity
endDateTime, startDateTime, theme
-
Constructor Details
-
MicrosoftGraphTimeOffItem
public MicrosoftGraphTimeOffItem()Creates an instance of MicrosoftGraphTimeOffItem class.
-
-
Method Details
-
timeOffReasonId
Get the timeOffReasonId property: ID of the timeOffReason for this timeOffItem. Required.- Returns:
- the timeOffReasonId value.
-
withTimeOffReasonId
Set the timeOffReasonId property: ID of the timeOffReason for this timeOffItem. Required.- Parameters:
timeOffReasonId- the timeOffReasonId value to set.- Returns:
- the MicrosoftGraphTimeOffItem object itself.
-
additionalProperties
Get the additionalProperties property: timeOffItem.- Overrides:
additionalPropertiesin classMicrosoftGraphScheduleEntity- Returns:
- the additionalProperties value.
-
withAdditionalProperties
Set the additionalProperties property: timeOffItem.- Overrides:
withAdditionalPropertiesin classMicrosoftGraphScheduleEntity- Parameters:
additionalProperties- the additionalProperties value to set.- Returns:
- the MicrosoftGraphTimeOffItem object itself.
-
withEndDateTime
Set the endDateTime property: The endDateTime property.- Overrides:
withEndDateTimein classMicrosoftGraphScheduleEntity- Parameters:
endDateTime- the endDateTime value to set.- Returns:
- the MicrosoftGraphScheduleEntity object itself.
-
withStartDateTime
Set the startDateTime property: The startDateTime property.- Overrides:
withStartDateTimein classMicrosoftGraphScheduleEntity- Parameters:
startDateTime- the startDateTime value to set.- Returns:
- the MicrosoftGraphScheduleEntity object itself.
-
withTheme
Set the theme property: scheduleEntityTheme.- Overrides:
withThemein classMicrosoftGraphScheduleEntity- Parameters:
theme- the theme value to set.- Returns:
- the MicrosoftGraphScheduleEntity object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classMicrosoftGraphScheduleEntity- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-