MaintenanceWindowTimeRange Class
- java.
lang. Object - com.
azure. resourcemanager. sql. models. MaintenanceWindowTimeRange
- com.
Implements
public final class MaintenanceWindowTimeRange
implements JsonSerializable<MaintenanceWindowTimeRange>
Maintenance window time range.
Constructor Summary
Constructor | Description |
---|---|
MaintenanceWindowTimeRange() |
Creates an instance of Maintenance |
Method Summary
Modifier and Type | Method and Description |
---|---|
Day |
dayOfWeek()
Get the day |
String |
duration()
Get the duration property: Duration of maintenance window in minutes. |
static
Maintenance |
fromJson(JsonReader jsonReader)
Reads an instance of Maintenance |
String |
startTime()
Get the start |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Maintenance |
withDayOfWeek(DayOfWeek dayOfWeek)
Set the day |
Maintenance |
withDuration(String duration)
Set the duration property: Duration of maintenance window in minutes. |
Maintenance |
withStartTime(String startTime)
Set the start |
Methods inherited from java.lang.Object
Constructor Details
MaintenanceWindowTimeRange
public MaintenanceWindowTimeRange()
Creates an instance of MaintenanceWindowTimeRange class.
Method Details
dayOfWeek
public DayOfWeek dayOfWeek()
Get the dayOfWeek property: Day of maintenance window.
Returns:
duration
public String duration()
Get the duration property: Duration of maintenance window in minutes.
Returns:
fromJson
public static MaintenanceWindowTimeRange fromJson(JsonReader jsonReader)
Reads an instance of MaintenanceWindowTimeRange from the JsonReader.
Parameters:
Returns:
Throws:
startTime
public String startTime()
Get the startTime property: Start time minutes offset from 12am.
Returns:
toJson
validate
public void validate()
Validates the instance.
withDayOfWeek
public MaintenanceWindowTimeRange withDayOfWeek(DayOfWeek dayOfWeek)
Set the dayOfWeek property: Day of maintenance window.
Parameters:
Returns:
withDuration
public MaintenanceWindowTimeRange withDuration(String duration)
Set the duration property: Duration of maintenance window in minutes.
Parameters:
Returns:
withStartTime
public MaintenanceWindowTimeRange withStartTime(String startTime)
Set the startTime property: Start time minutes offset from 12am.
Parameters:
Returns:
Applies to
Azure SDK for Java