你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
MicrosoftGraphTimeOffReason Class
- java.
lang. Object - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphEntity - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphChangeTrackedEntity - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphTimeOffReason
- com.
- com.
- com.
public final class MicrosoftGraphTimeOffReason
extends MicrosoftGraphChangeTrackedEntity
timeOffReason.
Constructor Summary
Constructor | Description |
---|---|
MicrosoftGraphTimeOffReason() |
Creates an instance of Microsoft |
Method Summary
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
additionalProperties()
Get the additional |
String |
displayName()
Get the display |
static
Microsoft |
fromJson(JsonReader jsonReader)
Reads an instance of Microsoft |
Microsoft |
iconType()
Get the icon |
Boolean |
isActive()
Get the is |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Microsoft |
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additional |
Microsoft |
withCreatedDateTime(OffsetDateTime createdDateTime)
Set the created |
Microsoft |
withDisplayName(String displayName)
Set the display |
Microsoft |
withIconType(MicrosoftGraphTimeOffReasonIconType iconType)
Set the icon |
Microsoft |
withId(String id)
Set the id property: Read-only. |
Microsoft |
withIsActive(Boolean isActive)
Set the is |
Microsoft |
withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)
Set the last |
Microsoft |
withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
Set the last |
Methods inherited from MicrosoftGraphChangeTrackedEntity
Methods inherited from MicrosoftGraphEntity
Methods inherited from java.lang.Object
Constructor Details
MicrosoftGraphTimeOffReason
public MicrosoftGraphTimeOffReason()
Creates an instance of MicrosoftGraphTimeOffReason class.
Method Details
additionalProperties
public Map
Get the additionalProperties property: timeOffReason.
Overrides:
MicrosoftGraphTimeOffReason.additionalProperties()Returns:
displayName
public String displayName()
Get the displayName property: The name of the timeOffReason. Required.
Returns:
fromJson
public static MicrosoftGraphTimeOffReason fromJson(JsonReader jsonReader)
Reads an instance of MicrosoftGraphTimeOffReason from the JsonReader.
Parameters:
Returns:
Throws:
iconType
public MicrosoftGraphTimeOffReasonIconType iconType()
Get the iconType property: timeOffReasonIconType.
Returns:
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:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
MicrosoftGraphTimeOffReason.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
MicrosoftGraphTimeOffReason.validate()withAdditionalProperties
public MicrosoftGraphTimeOffReason withAdditionalProperties(Map
Set the additionalProperties property: timeOffReason.
Overrides:
MicrosoftGraphTimeOffReason.withAdditionalProperties(Map<String,Object> additionalProperties)Parameters:
Returns:
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:
withDisplayName
public MicrosoftGraphTimeOffReason withDisplayName(String displayName)
Set the displayName property: The name of the timeOffReason. Required.
Parameters:
Returns:
withIconType
public MicrosoftGraphTimeOffReason withIconType(MicrosoftGraphTimeOffReasonIconType iconType)
Set the iconType property: timeOffReasonIconType.
Parameters:
Returns:
withId
public MicrosoftGraphTimeOffReason withId(String id)
Set the id property: Read-only.
Overrides:
MicrosoftGraphTimeOffReason.withId(String id)Parameters:
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:
Returns:
withLastModifiedBy
public MicrosoftGraphTimeOffReason withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)
Set the lastModifiedBy property: identitySet.
Overrides:
MicrosoftGraphTimeOffReason.withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)Parameters:
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: