MicrosoftGraphTimeOff Class
- java.
lang. Object - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphEntity - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphChangeTrackedEntity - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphTimeOff
- com.
- com.
- com.
public final class MicrosoftGraphTimeOff
extends MicrosoftGraphChangeTrackedEntity
timeOff.
Constructor Summary
Constructor | Description |
---|---|
MicrosoftGraphTimeOff() |
Creates an instance of Microsoft |
Method Summary
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
additionalProperties()
Get the additional |
Microsoft |
draftTimeOff()
Get the draft |
static
Microsoft |
fromJson(JsonReader jsonReader)
Reads an instance of Microsoft |
Microsoft |
sharedTimeOff()
Get the shared |
Json |
toJson(JsonWriter jsonWriter) |
String |
userId()
Get the user |
void |
validate()
Validates the instance. |
Microsoft |
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additional |
Microsoft |
withCreatedDateTime(OffsetDateTime createdDateTime)
Set the created |
Microsoft |
withDraftTimeOff(MicrosoftGraphTimeOffItem draftTimeOff)
Set the draft |
Microsoft |
withId(String id)
Set the id property: Read-only. |
Microsoft |
withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)
Set the last |
Microsoft |
withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
Set the last |
Microsoft |
withSharedTimeOff(MicrosoftGraphTimeOffItem sharedTimeOff)
Set the shared |
Microsoft |
withUserId(String userId)
Set the user |
Methods inherited from MicrosoftGraphChangeTrackedEntity
Methods inherited from MicrosoftGraphEntity
Methods inherited from java.lang.Object
Constructor Details
MicrosoftGraphTimeOff
public MicrosoftGraphTimeOff()
Creates an instance of MicrosoftGraphTimeOff class.
Method Details
additionalProperties
public Map
Get the additionalProperties property: timeOff.
Overrides:
MicrosoftGraphTimeOff.additionalProperties()Returns:
draftTimeOff
public MicrosoftGraphTimeOffItem draftTimeOff()
Get the draftTimeOff property: timeOffItem.
Returns:
fromJson
public static MicrosoftGraphTimeOff fromJson(JsonReader jsonReader)
Reads an instance of MicrosoftGraphTimeOff from the JsonReader.
Parameters:
Returns:
Throws:
sharedTimeOff
public MicrosoftGraphTimeOffItem sharedTimeOff()
Get the sharedTimeOff property: timeOffItem.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
MicrosoftGraphTimeOff.toJson(JsonWriter jsonWriter)Parameters:
Throws:
userId
public String userId()
Get the userId property: ID of the user assigned to the timeOff. Required.
Returns:
validate
public void validate()
Validates the instance.
Overrides:
MicrosoftGraphTimeOff.validate()withAdditionalProperties
public MicrosoftGraphTimeOff withAdditionalProperties(Map
Set the additionalProperties property: timeOff.
Overrides:
MicrosoftGraphTimeOff.withAdditionalProperties(Map<String,Object> additionalProperties)Parameters:
Returns:
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:
MicrosoftGraphTimeOff.withCreatedDateTime(OffsetDateTime createdDateTime)Parameters:
withDraftTimeOff
public MicrosoftGraphTimeOff withDraftTimeOff(MicrosoftGraphTimeOffItem draftTimeOff)
Set the draftTimeOff property: timeOffItem.
Parameters:
Returns:
withId
public MicrosoftGraphTimeOff withId(String id)
Set the id property: Read-only.
Overrides:
MicrosoftGraphTimeOff.withId(String id)Parameters:
withLastModifiedBy
public MicrosoftGraphTimeOff withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)
Set the lastModifiedBy property: identitySet.
Overrides:
MicrosoftGraphTimeOff.withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)Parameters:
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:
MicrosoftGraphTimeOff.withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)Parameters:
withSharedTimeOff
public MicrosoftGraphTimeOff withSharedTimeOff(MicrosoftGraphTimeOffItem sharedTimeOff)
Set the sharedTimeOff property: timeOffItem.
Parameters:
Returns:
withUserId
public MicrosoftGraphTimeOff withUserId(String userId)
Set the userId property: ID of the user assigned to the timeOff. Required.
Parameters:
Returns:
Applies to
Azure SDK for Java