你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MicrosoftGraphShiftActivity Class

  • java.lang.Object
    • com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphShiftActivity

Implements

public final class MicrosoftGraphShiftActivity
implements JsonSerializable<MicrosoftGraphShiftActivity>

shiftActivity.

Constructor Summary

Constructor Description
MicrosoftGraphShiftActivity()

Creates an instance of MicrosoftGraphShiftActivity class.

Method Summary

Modifier and Type Method and 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.

static MicrosoftGraphShiftActivity fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphShiftActivity from the JsonReader.

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: scheduleEntityTheme.

JsonWriter toJson(JsonWriter jsonWriter)
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: scheduleEntityTheme.

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphShiftActivity

public MicrosoftGraphShiftActivity()

Creates an instance of MicrosoftGraphShiftActivity class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: shiftActivity.

Returns:

the additionalProperties value.

code

public String code()

Get the code property: Customer defined code for the shiftActivity. Required.

Returns:

the code value.

displayName

public String displayName()

Get the displayName property: The name of the shiftActivity. Required.

Returns:

the displayName value.

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.

fromJson

public static MicrosoftGraphShiftActivity fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphShiftActivity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphShiftActivity if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the MicrosoftGraphShiftActivity.

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.

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.

theme

public MicrosoftGraphScheduleEntityTheme theme()

Get the theme property: scheduleEntityTheme.

Returns:

the theme value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdditionalProperties

public MicrosoftGraphShiftActivity withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: shiftActivity.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphShiftActivity object itself.

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.

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.

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.

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.

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.

withTheme

public MicrosoftGraphShiftActivity withTheme(MicrosoftGraphScheduleEntityTheme theme)

Set the theme property: scheduleEntityTheme.

Parameters:

theme - the theme value to set.

Returns:

the MicrosoftGraphShiftActivity object itself.

Applies to