Class MicrosoftGraphTimeOffItem
- java.lang.Object
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphScheduleEntity
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphTimeOffItem
-
public final class MicrosoftGraphTimeOffItem extends MicrosoftGraphScheduleEntity
timeOffItem.
-
-
Constructor Summary
Constructors Constructor Description MicrosoftGraphTimeOffItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
additionalProperties()
Get the additionalProperties property: timeOffItem.String
timeOffReasonId()
Get the timeOffReasonId property: ID of the timeOffReason for this timeOffItem.void
validate()
Validates the instance.MicrosoftGraphTimeOffItem
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: timeOffItem.MicrosoftGraphTimeOffItem
withEndDateTime(OffsetDateTime endDateTime)
Set the endDateTime property: The endDateTime property.MicrosoftGraphTimeOffItem
withStartDateTime(OffsetDateTime startDateTime)
Set the startDateTime property: The startDateTime property.MicrosoftGraphTimeOffItem
withTheme(MicrosoftGraphScheduleEntityTheme theme)
Set the theme property: The theme property.MicrosoftGraphTimeOffItem
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
-
-
-
-
Method Detail
-
timeOffReasonId
public String timeOffReasonId()
Get the timeOffReasonId property: ID of the timeOffReason for this timeOffItem. Required.- Returns:
- the timeOffReasonId value.
-
withTimeOffReasonId
public MicrosoftGraphTimeOffItem withTimeOffReasonId(String timeOffReasonId)
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
public Map<String,Object> additionalProperties()
Get the additionalProperties property: timeOffItem.- Overrides:
additionalProperties
in classMicrosoftGraphScheduleEntity
- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphTimeOffItem withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: timeOffItem.- Overrides:
withAdditionalProperties
in classMicrosoftGraphScheduleEntity
- Parameters:
additionalProperties
- the additionalProperties value to set.- Returns:
- the MicrosoftGraphTimeOffItem object itself.
-
withEndDateTime
public MicrosoftGraphTimeOffItem withEndDateTime(OffsetDateTime endDateTime)
Set the endDateTime property: The endDateTime property.- Overrides:
withEndDateTime
in classMicrosoftGraphScheduleEntity
- Parameters:
endDateTime
- the endDateTime value to set.- Returns:
- the MicrosoftGraphScheduleEntity object itself.
-
withStartDateTime
public MicrosoftGraphTimeOffItem withStartDateTime(OffsetDateTime startDateTime)
Set the startDateTime property: The startDateTime property.- Overrides:
withStartDateTime
in classMicrosoftGraphScheduleEntity
- Parameters:
startDateTime
- the startDateTime value to set.- Returns:
- the MicrosoftGraphScheduleEntity object itself.
-
withTheme
public MicrosoftGraphTimeOffItem withTheme(MicrosoftGraphScheduleEntityTheme theme)
Set the theme property: The theme property.- Overrides:
withTheme
in classMicrosoftGraphScheduleEntity
- Parameters:
theme
- the theme value to set.- Returns:
- the MicrosoftGraphScheduleEntity object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classMicrosoftGraphScheduleEntity
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-