Class MicrosoftGraphShift
- java.lang.Object
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphChangeTrackedEntity
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphShift
-
public final class MicrosoftGraphShift extends MicrosoftGraphChangeTrackedEntity
shift.
-
-
Constructor Summary
Constructors Constructor Description MicrosoftGraphShift()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
additionalProperties()
Get the additionalProperties property: shift.MicrosoftGraphShiftItem
draftShift()
Get the draftShift property: shiftItem.String
schedulingGroupId()
Get the schedulingGroupId property: ID of the scheduling group the shift is part of.MicrosoftGraphShiftItem
sharedShift()
Get the sharedShift property: shiftItem.String
userId()
Get the userId property: ID of the user assigned to the shift.void
validate()
Validates the instance.MicrosoftGraphShift
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: shift.MicrosoftGraphShift
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.MicrosoftGraphShift
withDraftShift(MicrosoftGraphShiftItem draftShift)
Set the draftShift property: shiftItem.MicrosoftGraphShift
withId(String id)
Set the id property: Read-only.MicrosoftGraphShift
withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)
Set the lastModifiedBy property: identitySet.MicrosoftGraphShift
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.MicrosoftGraphShift
withSchedulingGroupId(String schedulingGroupId)
Set the schedulingGroupId property: ID of the scheduling group the shift is part of.MicrosoftGraphShift
withSharedShift(MicrosoftGraphShiftItem sharedShift)
Set the sharedShift property: shiftItem.MicrosoftGraphShift
withUserId(String userId)
Set the userId property: ID of the user assigned to the shift.-
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
-
draftShift
public MicrosoftGraphShiftItem draftShift()
Get the draftShift property: shiftItem.- Returns:
- the draftShift value.
-
withDraftShift
public MicrosoftGraphShift withDraftShift(MicrosoftGraphShiftItem draftShift)
Set the draftShift property: shiftItem.- Parameters:
draftShift
- the draftShift value to set.- Returns:
- the MicrosoftGraphShift object itself.
-
schedulingGroupId
public String schedulingGroupId()
Get the schedulingGroupId property: ID of the scheduling group the shift is part of. Required.- Returns:
- the schedulingGroupId value.
-
withSchedulingGroupId
public MicrosoftGraphShift withSchedulingGroupId(String schedulingGroupId)
Set the schedulingGroupId property: ID of the scheduling group the shift is part of. Required.- Parameters:
schedulingGroupId
- the schedulingGroupId value to set.- Returns:
- the MicrosoftGraphShift object itself.
-
sharedShift
public MicrosoftGraphShiftItem sharedShift()
Get the sharedShift property: shiftItem.- Returns:
- the sharedShift value.
-
withSharedShift
public MicrosoftGraphShift withSharedShift(MicrosoftGraphShiftItem sharedShift)
Set the sharedShift property: shiftItem.- Parameters:
sharedShift
- the sharedShift value to set.- Returns:
- the MicrosoftGraphShift object itself.
-
userId
public String userId()
Get the userId property: ID of the user assigned to the shift. Required.- Returns:
- the userId value.
-
withUserId
public MicrosoftGraphShift withUserId(String userId)
Set the userId property: ID of the user assigned to the shift. Required.- Parameters:
userId
- the userId value to set.- Returns:
- the MicrosoftGraphShift object itself.
-
additionalProperties
public Map<String,Object> additionalProperties()
Get the additionalProperties property: shift.- Overrides:
additionalProperties
in classMicrosoftGraphChangeTrackedEntity
- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphShift withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: shift.- Overrides:
withAdditionalProperties
in classMicrosoftGraphChangeTrackedEntity
- Parameters:
additionalProperties
- the additionalProperties value to set.- Returns:
- the MicrosoftGraphShift object itself.
-
withCreatedDateTime
public MicrosoftGraphShift 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 classMicrosoftGraphChangeTrackedEntity
- Parameters:
createdDateTime
- the createdDateTime value to set.- Returns:
- the MicrosoftGraphChangeTrackedEntity object itself.
-
withLastModifiedBy
public MicrosoftGraphShift withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)
Set the lastModifiedBy property: identitySet.- Overrides:
withLastModifiedBy
in classMicrosoftGraphChangeTrackedEntity
- Parameters:
lastModifiedBy
- the lastModifiedBy value to set.- Returns:
- the MicrosoftGraphChangeTrackedEntity object itself.
-
withLastModifiedDateTime
public MicrosoftGraphShift 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 classMicrosoftGraphChangeTrackedEntity
- Parameters:
lastModifiedDateTime
- the lastModifiedDateTime value to set.- Returns:
- the MicrosoftGraphChangeTrackedEntity object itself.
-
withId
public MicrosoftGraphShift withId(String id)
Set the id property: Read-only.- Overrides:
withId
in classMicrosoftGraphChangeTrackedEntity
- Parameters:
id
- the id value to set.- Returns:
- the MicrosoftGraphEntity object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classMicrosoftGraphChangeTrackedEntity
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-