MicrosoftGraphTimeOffReason Class

public final class MicrosoftGraphTimeOffReason
extends MicrosoftGraphChangeTrackedEntity

timeOffReason.

Constructor Summary

Constructor Description
MicrosoftGraphTimeOffReason()

Creates an instance of MicrosoftGraphTimeOffReason class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: timeOffReason.

String displayName()

Get the displayName property: The name of the timeOffReason.

static MicrosoftGraphTimeOffReason fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphTimeOffReason from the JsonReader.

MicrosoftGraphTimeOffReasonIconType iconType()

Get the iconType property: timeOffReasonIconType.

Boolean isActive()

Get the isActive property: Indicates whether the timeOffReason can be used when creating new entities or updating existing ones.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphTimeOffReason withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: timeOffReason.

MicrosoftGraphTimeOffReason 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.

MicrosoftGraphTimeOffReason withDisplayName(String displayName)

Set the displayName property: The name of the timeOffReason.

MicrosoftGraphTimeOffReason withIconType(MicrosoftGraphTimeOffReasonIconType iconType)

Set the iconType property: timeOffReasonIconType.

MicrosoftGraphTimeOffReason withId(String id)

Set the id property: Read-only.

MicrosoftGraphTimeOffReason withIsActive(Boolean isActive)

Set the isActive property: Indicates whether the timeOffReason can be used when creating new entities or updating existing ones.

MicrosoftGraphTimeOffReason withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)

Set the lastModifiedBy property: identitySet.

MicrosoftGraphTimeOffReason 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.

Methods inherited from MicrosoftGraphChangeTrackedEntity

Methods inherited from MicrosoftGraphEntity

id

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphTimeOffReason

public MicrosoftGraphTimeOffReason()

Creates an instance of MicrosoftGraphTimeOffReason class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: timeOffReason.

Overrides:

MicrosoftGraphTimeOffReason.additionalProperties()

Returns:

the additionalProperties value.

displayName

public String displayName()

Get the displayName property: The name of the timeOffReason. Required.

Returns:

the displayName value.

fromJson

public static MicrosoftGraphTimeOffReason fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphTimeOffReason from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphTimeOffReason if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the MicrosoftGraphTimeOffReason.

iconType

public MicrosoftGraphTimeOffReasonIconType iconType()

Get the iconType property: timeOffReasonIconType.

Returns:

the iconType value.

isActive

public Boolean isActive()

Get the isActive property: Indicates whether the timeOffReason can be used when creating new entities or updating existing ones. Required.

Returns:

the isActive value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphTimeOffReason.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphTimeOffReason.validate()

withAdditionalProperties

public MicrosoftGraphTimeOffReason withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: timeOffReason.

Overrides:

MicrosoftGraphTimeOffReason.withAdditionalProperties(Map<String,Object> additionalProperties)

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphTimeOffReason object itself.

withCreatedDateTime

public MicrosoftGraphTimeOffReason 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:

MicrosoftGraphTimeOffReason.withCreatedDateTime(OffsetDateTime createdDateTime)

Parameters:

createdDateTime

withDisplayName

public MicrosoftGraphTimeOffReason withDisplayName(String displayName)

Set the displayName property: The name of the timeOffReason. Required.

Parameters:

displayName - the displayName value to set.

Returns:

the MicrosoftGraphTimeOffReason object itself.

withIconType

public MicrosoftGraphTimeOffReason withIconType(MicrosoftGraphTimeOffReasonIconType iconType)

Set the iconType property: timeOffReasonIconType.

Parameters:

iconType - the iconType value to set.

Returns:

the MicrosoftGraphTimeOffReason object itself.

withId

public MicrosoftGraphTimeOffReason withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphTimeOffReason.withId(String id)

Parameters:

id

withIsActive

public MicrosoftGraphTimeOffReason withIsActive(Boolean isActive)

Set the isActive property: Indicates whether the timeOffReason can be used when creating new entities or updating existing ones. Required.

Parameters:

isActive - the isActive value to set.

Returns:

the MicrosoftGraphTimeOffReason object itself.

withLastModifiedBy

public MicrosoftGraphTimeOffReason withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)

Set the lastModifiedBy property: identitySet.

Overrides:

MicrosoftGraphTimeOffReason.withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)

Parameters:

lastModifiedBy

withLastModifiedDateTime

public MicrosoftGraphTimeOffReason 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:

MicrosoftGraphTimeOffReason.withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)

Parameters:

lastModifiedDateTime

Applies to