All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.sqladmin.model.MaintenanceWindow Maven / Gradle / Ivy

The newest version!
/*
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
/*
 * This code was generated by https://github.com/googleapis/google-api-java-client-services/
 * Modify at your own risk.
 */

package com.google.api.services.sqladmin.model;

/**
 * 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. */ @SuppressWarnings("javadoc") public final class MaintenanceWindow extends com.google.api.client.json.GenericJson { /** * 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. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer day; /** * Hour of day - 0 to 23. Specify in the UTC time zone. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer hour; /** * This is always `sql#maintenanceWindow`. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** * 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). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String updateTrack; /** * 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. * @return value or {@code null} for none */ public java.lang.Integer getDay() { return 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. * @param day day or {@code null} for none */ public MaintenanceWindow setDay(java.lang.Integer day) { this.day = day; return this; } /** * Hour of day - 0 to 23. Specify in the UTC time zone. * @return value or {@code null} for none */ public java.lang.Integer getHour() { return hour; } /** * Hour of day - 0 to 23. Specify in the UTC time zone. * @param hour hour or {@code null} for none */ public MaintenanceWindow setHour(java.lang.Integer hour) { this.hour = hour; return this; } /** * This is always `sql#maintenanceWindow`. * @return value or {@code null} for none */ public java.lang.String getKind() { return kind; } /** * This is always `sql#maintenanceWindow`. * @param kind kind or {@code null} for none */ public MaintenanceWindow setKind(java.lang.String kind) { this.kind = kind; return this; } /** * 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). * @return value or {@code null} for none */ public java.lang.String getUpdateTrack() { return 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). * @param updateTrack updateTrack or {@code null} for none */ public MaintenanceWindow setUpdateTrack(java.lang.String updateTrack) { this.updateTrack = updateTrack; return this; } @Override public MaintenanceWindow set(String fieldName, Object value) { return (MaintenanceWindow) super.set(fieldName, value); } @Override public MaintenanceWindow clone() { return (MaintenanceWindow) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy