Class MicrosoftGraphTimeOff
- java.lang.Object
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphChangeTrackedEntity
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphTimeOff
-
public final class MicrosoftGraphTimeOff extends MicrosoftGraphChangeTrackedEntity
timeOff.
-
-
Constructor Summary
Constructors Constructor Description MicrosoftGraphTimeOff()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
additionalProperties()
Get the additionalProperties property: timeOff.MicrosoftGraphTimeOffItem
draftTimeOff()
Get the draftTimeOff property: timeOffItem.MicrosoftGraphTimeOffItem
sharedTimeOff()
Get the sharedTimeOff property: timeOffItem.String
userId()
Get the userId property: ID of the user assigned to the timeOff.void
validate()
Validates the instance.MicrosoftGraphTimeOff
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: timeOff.MicrosoftGraphTimeOff
withCreatedDateTime(OffsetDateTime createdDateTime)
Set the createdDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time.MicrosoftGraphTimeOff
withDraftTimeOff(MicrosoftGraphTimeOffItem draftTimeOff)
Set the draftTimeOff property: timeOffItem.MicrosoftGraphTimeOff
withId(String id)
Set the id property: Read-only.MicrosoftGraphTimeOff
withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)
Set the lastModifiedBy property: identitySet.MicrosoftGraphTimeOff
withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
Set the lastModifiedDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time.MicrosoftGraphTimeOff
withSharedTimeOff(MicrosoftGraphTimeOffItem sharedTimeOff)
Set the sharedTimeOff property: timeOffItem.MicrosoftGraphTimeOff
withUserId(String userId)
Set the userId property: ID of the user assigned to the timeOff.-
Methods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphChangeTrackedEntity
createdDateTime, lastModifiedBy, lastModifiedDateTime
-
Methods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
id
-
-
-
-
Method Detail
-
draftTimeOff
public MicrosoftGraphTimeOffItem draftTimeOff()
Get the draftTimeOff property: timeOffItem.- Returns:
- the draftTimeOff value.
-
withDraftTimeOff
public MicrosoftGraphTimeOff withDraftTimeOff(MicrosoftGraphTimeOffItem draftTimeOff)
Set the draftTimeOff property: timeOffItem.- Parameters:
draftTimeOff
- the draftTimeOff value to set.- Returns:
- the MicrosoftGraphTimeOff object itself.
-
sharedTimeOff
public MicrosoftGraphTimeOffItem sharedTimeOff()
Get the sharedTimeOff property: timeOffItem.- Returns:
- the sharedTimeOff value.
-
withSharedTimeOff
public MicrosoftGraphTimeOff withSharedTimeOff(MicrosoftGraphTimeOffItem sharedTimeOff)
Set the sharedTimeOff property: timeOffItem.- Parameters:
sharedTimeOff
- the sharedTimeOff value to set.- Returns:
- the MicrosoftGraphTimeOff object itself.
-
userId
public String userId()
Get the userId property: ID of the user assigned to the timeOff. Required.- Returns:
- the userId value.
-
withUserId
public MicrosoftGraphTimeOff withUserId(String userId)
Set the userId property: ID of the user assigned to the timeOff. Required.- Parameters:
userId
- the userId value to set.- Returns:
- the MicrosoftGraphTimeOff object itself.
-
additionalProperties
public Map<String,Object> additionalProperties()
Get the additionalProperties property: timeOff.- Overrides:
additionalProperties
in classMicrosoftGraphChangeTrackedEntity
- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphTimeOff withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: timeOff.- Overrides:
withAdditionalProperties
in classMicrosoftGraphChangeTrackedEntity
- Parameters:
additionalProperties
- the additionalProperties value to set.- Returns:
- the MicrosoftGraphTimeOff object itself.
-
withCreatedDateTime
public MicrosoftGraphTimeOff withCreatedDateTime(OffsetDateTime createdDateTime)
Set the createdDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'.- Overrides:
withCreatedDateTime
in classMicrosoftGraphChangeTrackedEntity
- Parameters:
createdDateTime
- the createdDateTime value to set.- Returns:
- the MicrosoftGraphChangeTrackedEntity object itself.
-
withLastModifiedBy
public MicrosoftGraphTimeOff withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)
Set the lastModifiedBy property: identitySet.- Overrides:
withLastModifiedBy
in classMicrosoftGraphChangeTrackedEntity
- Parameters:
lastModifiedBy
- the lastModifiedBy value to set.- Returns:
- the MicrosoftGraphChangeTrackedEntity object itself.
-
withLastModifiedDateTime
public MicrosoftGraphTimeOff withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
Set the lastModifiedDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'.- Overrides:
withLastModifiedDateTime
in classMicrosoftGraphChangeTrackedEntity
- Parameters:
lastModifiedDateTime
- the lastModifiedDateTime value to set.- Returns:
- the MicrosoftGraphChangeTrackedEntity object itself.
-
withId
public MicrosoftGraphTimeOff withId(String id)
Set the id property: Read-only.- Overrides:
withId
in classMicrosoftGraphChangeTrackedEntity
- Parameters:
id
- the id value to set.- Returns:
- the MicrosoftGraphEntity object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classMicrosoftGraphChangeTrackedEntity
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-