MicrosoftGraphShiftAvailability Class

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

Implements

public final class MicrosoftGraphShiftAvailability
implements JsonSerializable<MicrosoftGraphShiftAvailability>

shiftAvailability.

Constructor Summary

Constructor Description
MicrosoftGraphShiftAvailability()

Creates an instance of MicrosoftGraphShiftAvailability class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: shiftAvailability.

static MicrosoftGraphShiftAvailability fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphShiftAvailability from the JsonReader.

MicrosoftGraphPatternedRecurrence recurrence()

Get the recurrence property: patternedRecurrence.

List<MicrosoftGraphTimeRange> timeSlots()

Get the timeSlots property: The time slot(s) preferred by the user.

String timeZone()

Get the timeZone property: Specifies the time zone for the indicated time.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphShiftAvailability withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: shiftAvailability.

MicrosoftGraphShiftAvailability withRecurrence(MicrosoftGraphPatternedRecurrence recurrence)

Set the recurrence property: patternedRecurrence.

MicrosoftGraphShiftAvailability withTimeSlots(List<MicrosoftGraphTimeRange> timeSlots)

Set the timeSlots property: The time slot(s) preferred by the user.

MicrosoftGraphShiftAvailability withTimeZone(String timeZone)

Set the timeZone property: Specifies the time zone for the indicated time.

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphShiftAvailability

public MicrosoftGraphShiftAvailability()

Creates an instance of MicrosoftGraphShiftAvailability class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: shiftAvailability.

Returns:

the additionalProperties value.

fromJson

public static MicrosoftGraphShiftAvailability fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphShiftAvailability from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphShiftAvailability 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 MicrosoftGraphShiftAvailability.

recurrence

public MicrosoftGraphPatternedRecurrence recurrence()

Get the recurrence property: patternedRecurrence.

Returns:

the recurrence value.

timeSlots

public List timeSlots()

Get the timeSlots property: The time slot(s) preferred by the user.

Returns:

the timeSlots value.

timeZone

public String timeZone()

Get the timeZone property: Specifies the time zone for the indicated time.

Returns:

the timeZone value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdditionalProperties

public MicrosoftGraphShiftAvailability withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: shiftAvailability.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphShiftAvailability object itself.

withRecurrence

public MicrosoftGraphShiftAvailability withRecurrence(MicrosoftGraphPatternedRecurrence recurrence)

Set the recurrence property: patternedRecurrence.

Parameters:

recurrence - the recurrence value to set.

Returns:

the MicrosoftGraphShiftAvailability object itself.

withTimeSlots

public MicrosoftGraphShiftAvailability withTimeSlots(List timeSlots)

Set the timeSlots property: The time slot(s) preferred by the user.

Parameters:

timeSlots - the timeSlots value to set.

Returns:

the MicrosoftGraphShiftAvailability object itself.

withTimeZone

public MicrosoftGraphShiftAvailability withTimeZone(String timeZone)

Set the timeZone property: Specifies the time zone for the indicated time.

Parameters:

timeZone - the timeZone value to set.

Returns:

the MicrosoftGraphShiftAvailability object itself.

Applies to