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.OffsetDateTime
endDateTime()
Get the endDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time.OffsetDateTime
startDateTime()
Get the startDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time.String
timeOffReasonId()
Get the timeOffReasonId property: The reason for the time off.void
validate()
Validates the instance.MicrosoftGraphTimeOffRequest
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: timeOffRequest.MicrosoftGraphTimeOffRequest
withAssignedTo(MicrosoftGraphScheduleChangeRequestActor assignedTo)
Set the assignedTo property: The assignedTo property.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.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.MicrosoftGraphTimeOffRequest
withId(String id)
Set the id property: Read-only.MicrosoftGraphTimeOffRequest
withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)
Set the lastModifiedBy property: identitySet.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.MicrosoftGraphTimeOffRequest
withManagerActionDateTime(OffsetDateTime managerActionDateTime)
Set the managerActionDateTime property: The managerActionDateTime property.MicrosoftGraphTimeOffRequest
withManagerActionMessage(String managerActionMessage)
Set the managerActionMessage property: The managerActionMessage property.MicrosoftGraphTimeOffRequest
withManagerUserId(String managerUserId)
Set the managerUserId property: The managerUserId property.MicrosoftGraphTimeOffRequest
withSenderDateTime(OffsetDateTime senderDateTime)
Set the senderDateTime property: The senderDateTime property.MicrosoftGraphTimeOffRequest
withSenderMessage(String senderMessage)
Set the senderMessage property: The senderMessage property.MicrosoftGraphTimeOffRequest
withSenderUserId(String senderUserId)
Set the senderUserId property: The senderUserId property.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.MicrosoftGraphTimeOffRequest
withState(MicrosoftGraphScheduleChangeState state)
Set the state property: The state property.MicrosoftGraphTimeOffRequest
withTimeOffReasonId(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:
additionalProperties
in classMicrosoftGraphScheduleChangeRequest
- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphTimeOffRequest withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: timeOffRequest.- Overrides:
withAdditionalProperties
in 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:
withAssignedTo
in 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:
withManagerActionDateTime
in 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:
withManagerActionMessage
in 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:
withManagerUserId
in 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:
withSenderDateTime
in 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:
withSenderMessage
in 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:
withSenderUserId
in 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:
withState
in 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:
withCreatedDateTime
in 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:
withLastModifiedBy
in 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:
withLastModifiedDateTime
in 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:
withId
in classMicrosoftGraphScheduleChangeRequest
- Parameters:
id
- the id value to set.- Returns:
- the MicrosoftGraphEntity object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classMicrosoftGraphScheduleChangeRequest
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-