你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
MicrosoftGraphShiftActivity Class
- java.
lang. Object - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphShiftActivity
- com.
Implements
public final class MicrosoftGraphShiftActivity
implements JsonSerializable<MicrosoftGraphShiftActivity>
shiftActivity.
Constructor Summary
Constructor | Description |
---|---|
MicrosoftGraphShiftActivity() |
Creates an instance of Microsoft |
Method Summary
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
additionalProperties()
Get the additional |
String |
code()
Get the code property: Customer defined code for the shift |
String |
displayName()
Get the display |
Offset |
endDateTime()
Get the end |
static
Microsoft |
fromJson(JsonReader jsonReader)
Reads an instance of Microsoft |
Boolean |
isPaid()
Get the is |
Offset |
startDateTime()
Get the start |
Microsoft |
theme()
Get the theme property: schedule |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Microsoft |
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additional |
Microsoft |
withCode(String code)
Set the code property: Customer defined code for the shift |
Microsoft |
withDisplayName(String displayName)
Set the display |
Microsoft |
withEndDateTime(OffsetDateTime endDateTime)
Set the end |
Microsoft |
withIsPaid(Boolean isPaid)
Set the is |
Microsoft |
withStartDateTime(OffsetDateTime startDateTime)
Set the start |
Microsoft |
withTheme(MicrosoftGraphScheduleEntityTheme theme)
Set the theme property: schedule |
Methods inherited from java.lang.Object
Constructor Details
MicrosoftGraphShiftActivity
public MicrosoftGraphShiftActivity()
Creates an instance of MicrosoftGraphShiftActivity class.
Method Details
additionalProperties
public Map
Get the additionalProperties property: shiftActivity.
Returns:
code
public String code()
Get the code property: Customer defined code for the shiftActivity. Required.
Returns:
displayName
public String displayName()
Get the displayName property: The name of the shiftActivity. Required.
Returns:
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:
fromJson
public static MicrosoftGraphShiftActivity fromJson(JsonReader jsonReader)
Reads an instance of MicrosoftGraphShiftActivity from the JsonReader.
Parameters:
Returns:
Throws:
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:
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:
theme
public MicrosoftGraphScheduleEntityTheme theme()
Get the theme property: scheduleEntityTheme.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAdditionalProperties
public MicrosoftGraphShiftActivity withAdditionalProperties(Map
Set the additionalProperties property: shiftActivity.
Parameters:
Returns:
withCode
public MicrosoftGraphShiftActivity withCode(String code)
Set the code property: Customer defined code for the shiftActivity. Required.
Parameters:
Returns:
withDisplayName
public MicrosoftGraphShiftActivity withDisplayName(String displayName)
Set the displayName property: The name of the shiftActivity. Required.
Parameters:
Returns:
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:
Returns:
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:
Returns:
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:
Returns:
withTheme
public MicrosoftGraphShiftActivity withTheme(MicrosoftGraphScheduleEntityTheme theme)
Set the theme property: scheduleEntityTheme.
Parameters:
Returns: