Class MicrosoftGraphTimeOffReason
- java.lang.Object
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphChangeTrackedEntity
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphTimeOffReason
-
public final class MicrosoftGraphTimeOffReason extends MicrosoftGraphChangeTrackedEntity
timeOffReason.
-
-
Constructor Summary
Constructors Constructor Description MicrosoftGraphTimeOffReason()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>additionalProperties()Get the additionalProperties property: timeOffReason.StringdisplayName()Get the displayName property: The name of the timeOffReason.MicrosoftGraphTimeOffReasonIconTypeiconType()Get the iconType property: The iconType property.BooleanisActive()Get the isActive property: Indicates whether the timeOffReason can be used when creating new entities or updating existing ones.voidvalidate()Validates the instance.MicrosoftGraphTimeOffReasonwithAdditionalProperties(Map<String,Object> additionalProperties)Set the additionalProperties property: timeOffReason.MicrosoftGraphTimeOffReasonwithCreatedDateTime(OffsetDateTime createdDateTime)Set the createdDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time.MicrosoftGraphTimeOffReasonwithDisplayName(String displayName)Set the displayName property: The name of the timeOffReason.MicrosoftGraphTimeOffReasonwithIconType(MicrosoftGraphTimeOffReasonIconType iconType)Set the iconType property: The iconType property.MicrosoftGraphTimeOffReasonwithId(String id)Set the id property: Read-only.MicrosoftGraphTimeOffReasonwithIsActive(Boolean isActive)Set the isActive property: Indicates whether the timeOffReason can be used when creating new entities or updating existing ones.MicrosoftGraphTimeOffReasonwithLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)Set the lastModifiedBy property: identitySet.MicrosoftGraphTimeOffReasonwithLastModifiedDateTime(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 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
-
displayName
public String displayName()
Get the displayName property: The name of the timeOffReason. Required.- Returns:
- the displayName value.
-
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.
-
iconType
public MicrosoftGraphTimeOffReasonIconType iconType()
Get the iconType property: The iconType property.- Returns:
- the iconType value.
-
withIconType
public MicrosoftGraphTimeOffReason withIconType(MicrosoftGraphTimeOffReasonIconType iconType)
Set the iconType property: The iconType property.- Parameters:
iconType- the iconType value to set.- Returns:
- the MicrosoftGraphTimeOffReason object itself.
-
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.
-
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.
-
additionalProperties
public Map<String,Object> additionalProperties()
Get the additionalProperties property: timeOffReason.- Overrides:
additionalPropertiesin classMicrosoftGraphChangeTrackedEntity- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphTimeOffReason withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: timeOffReason.- Overrides:
withAdditionalPropertiesin classMicrosoftGraphChangeTrackedEntity- 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:
withCreatedDateTimein classMicrosoftGraphChangeTrackedEntity- Parameters:
createdDateTime- the createdDateTime value to set.- Returns:
- the MicrosoftGraphChangeTrackedEntity object itself.
-
withLastModifiedBy
public MicrosoftGraphTimeOffReason 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 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:
withLastModifiedDateTimein classMicrosoftGraphChangeTrackedEntity- Parameters:
lastModifiedDateTime- the lastModifiedDateTime value to set.- Returns:
- the MicrosoftGraphChangeTrackedEntity object itself.
-
withId
public MicrosoftGraphTimeOffReason 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.
-
-