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.MicrosoftGraphTimeOffItemdraftTimeOff()Get the draftTimeOff property: timeOffItem.MicrosoftGraphTimeOffItemsharedTimeOff()Get the sharedTimeOff property: timeOffItem.StringuserId()Get the userId property: ID of the user assigned to the timeOff.voidvalidate()Validates the instance.MicrosoftGraphTimeOffwithAdditionalProperties(Map<String,Object> additionalProperties)Set the additionalProperties property: timeOff.MicrosoftGraphTimeOffwithCreatedDateTime(OffsetDateTime createdDateTime)Set the createdDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time.MicrosoftGraphTimeOffwithDraftTimeOff(MicrosoftGraphTimeOffItem draftTimeOff)Set the draftTimeOff property: timeOffItem.MicrosoftGraphTimeOffwithId(String id)Set the id property: Read-only.MicrosoftGraphTimeOffwithLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)Set the lastModifiedBy property: identitySet.MicrosoftGraphTimeOffwithLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)Set the lastModifiedDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time.MicrosoftGraphTimeOffwithSharedTimeOff(MicrosoftGraphTimeOffItem sharedTimeOff)Set the sharedTimeOff property: timeOffItem.MicrosoftGraphTimeOffwithUserId(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:
additionalPropertiesin classMicrosoftGraphChangeTrackedEntity- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphTimeOff withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: timeOff.- Overrides:
withAdditionalPropertiesin 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:
withCreatedDateTimein 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:
withLastModifiedByin 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:
withLastModifiedDateTimein 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:
withIdin classMicrosoftGraphChangeTrackedEntity- Parameters:
id- the id value to set.- Returns:
- the MicrosoftGraphEntity object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classMicrosoftGraphChangeTrackedEntity- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-