Class MicrosoftGraphTimeOffRequest
- java.lang.Object
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphChangeTrackedEntity
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphScheduleChangeRequest
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphTimeOffRequest
-
public final class MicrosoftGraphTimeOffRequest extends MicrosoftGraphScheduleChangeRequest
timeOffRequest.
-
-
Constructor Summary
Constructors Constructor Description MicrosoftGraphTimeOffRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>additionalProperties()Get the additionalProperties property: timeOffRequest.OffsetDateTimeendDateTime()Get the endDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time.OffsetDateTimestartDateTime()Get the startDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time.StringtimeOffReasonId()Get the timeOffReasonId property: The reason for the time off.voidvalidate()Validates the instance.MicrosoftGraphTimeOffRequestwithAdditionalProperties(Map<String,Object> additionalProperties)Set the additionalProperties property: timeOffRequest.MicrosoftGraphTimeOffRequestwithAssignedTo(MicrosoftGraphScheduleChangeRequestActor assignedTo)Set the assignedTo property: The assignedTo property.MicrosoftGraphTimeOffRequestwithCreatedDateTime(OffsetDateTime createdDateTime)Set the createdDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time.MicrosoftGraphTimeOffRequestwithEndDateTime(OffsetDateTime endDateTime)Set the endDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time.MicrosoftGraphTimeOffRequestwithId(String id)Set the id property: Read-only.MicrosoftGraphTimeOffRequestwithLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)Set the lastModifiedBy property: identitySet.MicrosoftGraphTimeOffRequestwithLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)Set the lastModifiedDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time.MicrosoftGraphTimeOffRequestwithManagerActionDateTime(OffsetDateTime managerActionDateTime)Set the managerActionDateTime property: The managerActionDateTime property.MicrosoftGraphTimeOffRequestwithManagerActionMessage(String managerActionMessage)Set the managerActionMessage property: The managerActionMessage property.MicrosoftGraphTimeOffRequestwithManagerUserId(String managerUserId)Set the managerUserId property: The managerUserId property.MicrosoftGraphTimeOffRequestwithSenderDateTime(OffsetDateTime senderDateTime)Set the senderDateTime property: The senderDateTime property.MicrosoftGraphTimeOffRequestwithSenderMessage(String senderMessage)Set the senderMessage property: The senderMessage property.MicrosoftGraphTimeOffRequestwithSenderUserId(String senderUserId)Set the senderUserId property: The senderUserId property.MicrosoftGraphTimeOffRequestwithStartDateTime(OffsetDateTime startDateTime)Set the startDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time.MicrosoftGraphTimeOffRequestwithState(MicrosoftGraphScheduleChangeState state)Set the state property: The state property.MicrosoftGraphTimeOffRequestwithTimeOffReasonId(String timeOffReasonId)Set the timeOffReasonId property: The reason for the time off.-
Methods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphScheduleChangeRequest
assignedTo, managerActionDateTime, managerActionMessage, managerUserId, senderDateTime, senderMessage, senderUserId, state
-
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
-
endDateTime
public OffsetDateTime endDateTime()
Get the endDateTime 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'.- Returns:
- the endDateTime value.
-
withEndDateTime
public MicrosoftGraphTimeOffRequest withEndDateTime(OffsetDateTime endDateTime)
Set the endDateTime 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'.- Parameters:
endDateTime- the endDateTime value to set.- Returns:
- the MicrosoftGraphTimeOffRequest object itself.
-
startDateTime
public OffsetDateTime startDateTime()
Get the startDateTime 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'.- Returns:
- the startDateTime value.
-
withStartDateTime
public MicrosoftGraphTimeOffRequest withStartDateTime(OffsetDateTime startDateTime)
Set the startDateTime 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'.- Parameters:
startDateTime- the startDateTime value to set.- Returns:
- the MicrosoftGraphTimeOffRequest object itself.
-
timeOffReasonId
public String timeOffReasonId()
Get the timeOffReasonId property: The reason for the time off.- Returns:
- the timeOffReasonId value.
-
withTimeOffReasonId
public MicrosoftGraphTimeOffRequest withTimeOffReasonId(String timeOffReasonId)
Set the timeOffReasonId property: The reason for the time off.- Parameters:
timeOffReasonId- the timeOffReasonId value to set.- Returns:
- the MicrosoftGraphTimeOffRequest object itself.
-
additionalProperties
public Map<String,Object> additionalProperties()
Get the additionalProperties property: timeOffRequest.- Overrides:
additionalPropertiesin classMicrosoftGraphScheduleChangeRequest- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphTimeOffRequest withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: timeOffRequest.- Overrides:
withAdditionalPropertiesin classMicrosoftGraphScheduleChangeRequest- Parameters:
additionalProperties- the additionalProperties value to set.- Returns:
- the MicrosoftGraphTimeOffRequest object itself.
-
withAssignedTo
public MicrosoftGraphTimeOffRequest withAssignedTo(MicrosoftGraphScheduleChangeRequestActor assignedTo)
Set the assignedTo property: The assignedTo property.- Overrides:
withAssignedToin classMicrosoftGraphScheduleChangeRequest- Parameters:
assignedTo- the assignedTo value to set.- Returns:
- the MicrosoftGraphScheduleChangeRequest object itself.
-
withManagerActionDateTime
public MicrosoftGraphTimeOffRequest withManagerActionDateTime(OffsetDateTime managerActionDateTime)
Set the managerActionDateTime property: The managerActionDateTime property.- Overrides:
withManagerActionDateTimein classMicrosoftGraphScheduleChangeRequest- Parameters:
managerActionDateTime- the managerActionDateTime value to set.- Returns:
- the MicrosoftGraphScheduleChangeRequest object itself.
-
withManagerActionMessage
public MicrosoftGraphTimeOffRequest withManagerActionMessage(String managerActionMessage)
Set the managerActionMessage property: The managerActionMessage property.- Overrides:
withManagerActionMessagein classMicrosoftGraphScheduleChangeRequest- Parameters:
managerActionMessage- the managerActionMessage value to set.- Returns:
- the MicrosoftGraphScheduleChangeRequest object itself.
-
withManagerUserId
public MicrosoftGraphTimeOffRequest withManagerUserId(String managerUserId)
Set the managerUserId property: The managerUserId property.- Overrides:
withManagerUserIdin classMicrosoftGraphScheduleChangeRequest- Parameters:
managerUserId- the managerUserId value to set.- Returns:
- the MicrosoftGraphScheduleChangeRequest object itself.
-
withSenderDateTime
public MicrosoftGraphTimeOffRequest withSenderDateTime(OffsetDateTime senderDateTime)
Set the senderDateTime property: The senderDateTime property.- Overrides:
withSenderDateTimein classMicrosoftGraphScheduleChangeRequest- Parameters:
senderDateTime- the senderDateTime value to set.- Returns:
- the MicrosoftGraphScheduleChangeRequest object itself.
-
withSenderMessage
public MicrosoftGraphTimeOffRequest withSenderMessage(String senderMessage)
Set the senderMessage property: The senderMessage property.- Overrides:
withSenderMessagein classMicrosoftGraphScheduleChangeRequest- Parameters:
senderMessage- the senderMessage value to set.- Returns:
- the MicrosoftGraphScheduleChangeRequest object itself.
-
withSenderUserId
public MicrosoftGraphTimeOffRequest withSenderUserId(String senderUserId)
Set the senderUserId property: The senderUserId property.- Overrides:
withSenderUserIdin classMicrosoftGraphScheduleChangeRequest- Parameters:
senderUserId- the senderUserId value to set.- Returns:
- the MicrosoftGraphScheduleChangeRequest object itself.
-
withState
public MicrosoftGraphTimeOffRequest withState(MicrosoftGraphScheduleChangeState state)
Set the state property: The state property.- Overrides:
withStatein classMicrosoftGraphScheduleChangeRequest- Parameters:
state- the state value to set.- Returns:
- the MicrosoftGraphScheduleChangeRequest object itself.
-
withCreatedDateTime
public MicrosoftGraphTimeOffRequest 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 classMicrosoftGraphScheduleChangeRequest- Parameters:
createdDateTime- the createdDateTime value to set.- Returns:
- the MicrosoftGraphChangeTrackedEntity object itself.
-
withLastModifiedBy
public MicrosoftGraphTimeOffRequest withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)
Set the lastModifiedBy property: identitySet.- Overrides:
withLastModifiedByin classMicrosoftGraphScheduleChangeRequest- Parameters:
lastModifiedBy- the lastModifiedBy value to set.- Returns:
- the MicrosoftGraphChangeTrackedEntity object itself.
-
withLastModifiedDateTime
public MicrosoftGraphTimeOffRequest 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 classMicrosoftGraphScheduleChangeRequest- Parameters:
lastModifiedDateTime- the lastModifiedDateTime value to set.- Returns:
- the MicrosoftGraphChangeTrackedEntity object itself.
-
withId
public MicrosoftGraphTimeOffRequest withId(String id)
Set the id property: Read-only.- Overrides:
withIdin classMicrosoftGraphScheduleChangeRequest- Parameters:
id- the id value to set.- Returns:
- the MicrosoftGraphEntity object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classMicrosoftGraphScheduleChangeRequest- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-