Class MicrosoftGraphShiftActivity
- java.lang.Object
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphShiftActivity
-
public final class MicrosoftGraphShiftActivity extends Object
shiftActivity.
-
-
Constructor Summary
Constructors Constructor Description MicrosoftGraphShiftActivity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
additionalProperties()
Get the additionalProperties property: shiftActivity.String
code()
Get the code property: Customer defined code for the shiftActivity.String
displayName()
Get the displayName property: The name of the shiftActivity.OffsetDateTime
endDateTime()
Get the endDateTime property: The end date and time for the shiftActivity.Boolean
isPaid()
Get the isPaid property: Indicates whether the microsoft.graph.user should be paid for the activity during their shift.OffsetDateTime
startDateTime()
Get the startDateTime property: The start date and time for the shiftActivity.MicrosoftGraphScheduleEntityTheme
theme()
Get the theme property: The theme property.void
validate()
Validates the instance.MicrosoftGraphShiftActivity
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: shiftActivity.MicrosoftGraphShiftActivity
withCode(String code)
Set the code property: Customer defined code for the shiftActivity.MicrosoftGraphShiftActivity
withDisplayName(String displayName)
Set the displayName property: The name of the shiftActivity.MicrosoftGraphShiftActivity
withEndDateTime(OffsetDateTime endDateTime)
Set the endDateTime property: The end date and time for the shiftActivity.MicrosoftGraphShiftActivity
withIsPaid(Boolean isPaid)
Set the isPaid property: Indicates whether the microsoft.graph.user should be paid for the activity during their shift.MicrosoftGraphShiftActivity
withStartDateTime(OffsetDateTime startDateTime)
Set the startDateTime property: The start date and time for the shiftActivity.MicrosoftGraphShiftActivity
withTheme(MicrosoftGraphScheduleEntityTheme theme)
Set the theme property: The theme property.
-
-
-
Method Detail
-
code
public String code()
Get the code property: Customer defined code for the shiftActivity. Required.- Returns:
- the code value.
-
withCode
public MicrosoftGraphShiftActivity withCode(String code)
Set the code property: Customer defined code for the shiftActivity. Required.- Parameters:
code
- the code value to set.- Returns:
- the MicrosoftGraphShiftActivity object itself.
-
displayName
public String displayName()
Get the displayName property: The name of the shiftActivity. Required.- Returns:
- the displayName value.
-
withDisplayName
public MicrosoftGraphShiftActivity withDisplayName(String displayName)
Set the displayName property: The name of the shiftActivity. Required.- Parameters:
displayName
- the displayName value to set.- Returns:
- the MicrosoftGraphShiftActivity object itself.
-
endDateTime
public OffsetDateTime endDateTime()
Get the endDateTime property: The end date and time for the shiftActivity. 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'. Required.- Returns:
- the endDateTime value.
-
withEndDateTime
public MicrosoftGraphShiftActivity withEndDateTime(OffsetDateTime endDateTime)
Set the endDateTime property: The end date and time for the shiftActivity. 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'. Required.- Parameters:
endDateTime
- the endDateTime value to set.- Returns:
- the MicrosoftGraphShiftActivity object itself.
-
isPaid
public Boolean isPaid()
Get the isPaid property: Indicates whether the microsoft.graph.user should be paid for the activity during their shift. Required.- Returns:
- the isPaid value.
-
withIsPaid
public MicrosoftGraphShiftActivity withIsPaid(Boolean isPaid)
Set the isPaid property: Indicates whether the microsoft.graph.user should be paid for the activity during their shift. Required.- Parameters:
isPaid
- the isPaid value to set.- Returns:
- the MicrosoftGraphShiftActivity object itself.
-
startDateTime
public OffsetDateTime startDateTime()
Get the startDateTime property: The start date and time for the shiftActivity. 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'. Required.- Returns:
- the startDateTime value.
-
withStartDateTime
public MicrosoftGraphShiftActivity withStartDateTime(OffsetDateTime startDateTime)
Set the startDateTime property: The start date and time for the shiftActivity. 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'. Required.- Parameters:
startDateTime
- the startDateTime value to set.- Returns:
- the MicrosoftGraphShiftActivity object itself.
-
theme
public MicrosoftGraphScheduleEntityTheme theme()
Get the theme property: The theme property.- Returns:
- the theme value.
-
withTheme
public MicrosoftGraphShiftActivity withTheme(MicrosoftGraphScheduleEntityTheme theme)
Set the theme property: The theme property.- Parameters:
theme
- the theme value to set.- Returns:
- the MicrosoftGraphShiftActivity object itself.
-
additionalProperties
public Map<String,Object> additionalProperties()
Get the additionalProperties property: shiftActivity.- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphShiftActivity withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: shiftActivity.- Parameters:
additionalProperties
- the additionalProperties value to set.- Returns:
- the MicrosoftGraphShiftActivity object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-