TimeInWeek Class

  • java.lang.Object
    • com.azure.resourcemanager.containerservice.models.TimeInWeek

Implements

public final class TimeInWeek
implements JsonSerializable<TimeInWeek>

Time in a week.

Constructor Summary

Constructor Description
TimeInWeek()

Creates an instance of TimeInWeek class.

Method Summary

Modifier and Type Method and Description
WeekDay day()

Get the day property: The day of the week.

static TimeInWeek fromJson(JsonReader jsonReader)

Reads an instance of TimeInWeek from the JsonReader.

List<Integer> hourSlots()

Get the hourSlots property: Each integer hour represents a time range beginning at 0m after the hour ending at the next hour (non-inclusive).

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

TimeInWeek withDay(WeekDay day)

Set the day property: The day of the week.

TimeInWeek withHourSlots(List<Integer> hourSlots)

Set the hourSlots property: Each integer hour represents a time range beginning at 0m after the hour ending at the next hour (non-inclusive).

Methods inherited from java.lang.Object

Constructor Details

TimeInWeek

public TimeInWeek()

Creates an instance of TimeInWeek class.

Method Details

day

public WeekDay day()

Get the day property: The day of the week.

Returns:

the day value.

fromJson

public static TimeInWeek fromJson(JsonReader jsonReader)

Reads an instance of TimeInWeek from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

hourSlots

public List hourSlots()

Get the hourSlots property: Each integer hour represents a time range beginning at 0m after the hour ending at the next hour (non-inclusive). 0 corresponds to 00:00 UTC, 23 corresponds to 23:00 UTC. Specifying [0, 1] means the 00:00 - 02:00 UTC time range.

Returns:

the hourSlots value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDay

public TimeInWeek withDay(WeekDay day)

Set the day property: The day of the week.

Parameters:

day - the day value to set.

Returns:

the TimeInWeek object itself.

withHourSlots

public TimeInWeek withHourSlots(List hourSlots)

Set the hourSlots property: Each integer hour represents a time range beginning at 0m after the hour ending at the next hour (non-inclusive). 0 corresponds to 00:00 UTC, 23 corresponds to 23:00 UTC. Specifying [0, 1] means the 00:00 - 02:00 UTC time range.

Parameters:

hourSlots - the hourSlots value to set.

Returns:

the TimeInWeek object itself.

Applies to