TimeInWeek Class

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

public final class 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.

List<Integer> hourSlots()

Get the hourSlots property: A list of hours in the day used to identify a time range.

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: A list of hours in the day used to identify a time range.

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.

hourSlots

public List hourSlots()

Get the hourSlots property: A list of hours in the day used to identify a time range. 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.

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: A list of hours in the day used to identify a time range. 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