Class MaintenanceWindowTimeRange
- java.lang.Object
-
- com.azure.resourcemanager.synapse.models.MaintenanceWindowTimeRange
-
public final class MaintenanceWindowTimeRange extends Object
Maintenance window time range.
-
-
Constructor Summary
Constructors Constructor Description MaintenanceWindowTimeRange()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DayOfWeek
dayOfWeek()
Get the dayOfWeek property: Day of maintenance window.String
duration()
Get the duration property: Duration of maintenance window in minutes.String
startTime()
Get the startTime property: Start time minutes offset from 12am.void
validate()
Validates the instance.MaintenanceWindowTimeRange
withDayOfWeek(DayOfWeek dayOfWeek)
Set the dayOfWeek property: Day of maintenance window.MaintenanceWindowTimeRange
withDuration(String duration)
Set the duration property: Duration of maintenance window in minutes.MaintenanceWindowTimeRange
withStartTime(String startTime)
Set the startTime property: Start time minutes offset from 12am.
-
-
-
Method Detail
-
dayOfWeek
public DayOfWeek dayOfWeek()
Get the dayOfWeek property: Day of maintenance window.- Returns:
- the dayOfWeek value.
-
withDayOfWeek
public MaintenanceWindowTimeRange withDayOfWeek(DayOfWeek dayOfWeek)
Set the dayOfWeek property: Day of maintenance window.- Parameters:
dayOfWeek
- the dayOfWeek value to set.- Returns:
- the MaintenanceWindowTimeRange object itself.
-
startTime
public String startTime()
Get the startTime property: Start time minutes offset from 12am.- Returns:
- the startTime value.
-
withStartTime
public MaintenanceWindowTimeRange withStartTime(String startTime)
Set the startTime property: Start time minutes offset from 12am.- Parameters:
startTime
- the startTime value to set.- Returns:
- the MaintenanceWindowTimeRange object itself.
-
duration
public String duration()
Get the duration property: Duration of maintenance window in minutes.- Returns:
- the duration value.
-
withDuration
public MaintenanceWindowTimeRange withDuration(String duration)
Set the duration property: Duration of maintenance window in minutes.- Parameters:
duration
- the duration value to set.- Returns:
- the MaintenanceWindowTimeRange object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-