target.apidocs.com.google.api.services.sqladmin.model.MaintenanceWindow.html Maven / Gradle / Ivy
MaintenanceWindow (Cloud SQL Admin API v1-rev20240925-2.0.0)
com.google.api.services.sqladmin.model
Class MaintenanceWindow
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.sqladmin.model.MaintenanceWindow
-
public final class MaintenanceWindow
extends com.google.api.client.json.GenericJson
Maintenance window. This specifies when a Cloud SQL instance is restarted for system maintenance
purposes.
This is the Java data model class that specifies how to parse/serialize into the JSON that is
transmitted over HTTP when working with the Cloud SQL Admin API. For a detailed explanation see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
MaintenanceWindow()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
MaintenanceWindow
clone()
Integer
getDay()
Day of week - `MONDAY`, `TUESDAY`, `WEDNESDAY`, `THURSDAY`, `FRIDAY`, `SATURDAY`, or `SUNDAY`.
Integer
getHour()
Hour of day - 0 to 23.
String
getKind()
This is always `sql#maintenanceWindow`.
String
getUpdateTrack()
Maintenance timing settings: `canary`, `stable`, or `week5`.
MaintenanceWindow
set(String fieldName,
Object value)
MaintenanceWindow
setDay(Integer day)
Day of week - `MONDAY`, `TUESDAY`, `WEDNESDAY`, `THURSDAY`, `FRIDAY`, `SATURDAY`, or `SUNDAY`.
MaintenanceWindow
setHour(Integer hour)
Hour of day - 0 to 23.
MaintenanceWindow
setKind(String kind)
This is always `sql#maintenanceWindow`.
MaintenanceWindow
setUpdateTrack(String updateTrack)
Maintenance timing settings: `canary`, `stable`, or `week5`.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getDay
public Integer getDay()
Day of week - `MONDAY`, `TUESDAY`, `WEDNESDAY`, `THURSDAY`, `FRIDAY`, `SATURDAY`, or `SUNDAY`.
Specify in the UTC time zone. Returned in output as an integer, 1 to 7, where `1` equals
Monday.
- Returns:
- value or
null
for none
-
setDay
public MaintenanceWindow setDay(Integer day)
Day of week - `MONDAY`, `TUESDAY`, `WEDNESDAY`, `THURSDAY`, `FRIDAY`, `SATURDAY`, or `SUNDAY`.
Specify in the UTC time zone. Returned in output as an integer, 1 to 7, where `1` equals
Monday.
- Parameters:
day
- day or null
for none
-
getHour
public Integer getHour()
Hour of day - 0 to 23. Specify in the UTC time zone.
- Returns:
- value or
null
for none
-
setHour
public MaintenanceWindow setHour(Integer hour)
Hour of day - 0 to 23. Specify in the UTC time zone.
- Parameters:
hour
- hour or null
for none
-
getKind
public String getKind()
This is always `sql#maintenanceWindow`.
- Returns:
- value or
null
for none
-
setKind
public MaintenanceWindow setKind(String kind)
This is always `sql#maintenanceWindow`.
- Parameters:
kind
- kind or null
for none
-
getUpdateTrack
public String getUpdateTrack()
Maintenance timing settings: `canary`, `stable`, or `week5`. For more information, see [About
maintenance on Cloud SQL instances](https://cloud.google.com/sql/docs/mysql/maintenance).
- Returns:
- value or
null
for none
-
setUpdateTrack
public MaintenanceWindow setUpdateTrack(String updateTrack)
Maintenance timing settings: `canary`, `stable`, or `week5`. For more information, see [About
maintenance on Cloud SQL instances](https://cloud.google.com/sql/docs/mysql/maintenance).
- Parameters:
updateTrack
- updateTrack or null
for none
-
set
public MaintenanceWindow set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public MaintenanceWindow clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.