com.google.api.services.sqladmin.model.BackupConfiguration 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;
/**
* Database instance backup configuration.
*
* 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 BackupConfiguration extends com.google.api.client.json.GenericJson {
/**
* Backup retention settings.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private BackupRetentionSettings backupRetentionSettings;
/**
* (MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must
* be disabled as well.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean binaryLogEnabled;
/**
* Whether this configuration is enabled.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean enabled;
/**
* This is always `sql#backupConfiguration`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String kind;
/**
* Location of the backup
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String location;
/**
* Whether point in time recovery is enabled.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean pointInTimeRecoveryEnabled;
/**
* Reserved for future use.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean replicationLogArchivingEnabled;
/**
* Start time for the daily backup configuration in UTC timezone in the 24 hour format - `HH:MM`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String startTime;
/**
* The number of days of transaction logs we retain for point in time restore, from 1-7.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Integer transactionLogRetentionDays;
/**
* Output only. This value contains the storage location of transactional logs used to perform
* point-in-time recovery (PITR) for the database.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String transactionalLogStorageState;
/**
* Backup retention settings.
* @return value or {@code null} for none
*/
public BackupRetentionSettings getBackupRetentionSettings() {
return backupRetentionSettings;
}
/**
* Backup retention settings.
* @param backupRetentionSettings backupRetentionSettings or {@code null} for none
*/
public BackupConfiguration setBackupRetentionSettings(BackupRetentionSettings backupRetentionSettings) {
this.backupRetentionSettings = backupRetentionSettings;
return this;
}
/**
* (MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must
* be disabled as well.
* @return value or {@code null} for none
*/
public java.lang.Boolean getBinaryLogEnabled() {
return binaryLogEnabled;
}
/**
* (MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must
* be disabled as well.
* @param binaryLogEnabled binaryLogEnabled or {@code null} for none
*/
public BackupConfiguration setBinaryLogEnabled(java.lang.Boolean binaryLogEnabled) {
this.binaryLogEnabled = binaryLogEnabled;
return this;
}
/**
* Whether this configuration is enabled.
* @return value or {@code null} for none
*/
public java.lang.Boolean getEnabled() {
return enabled;
}
/**
* Whether this configuration is enabled.
* @param enabled enabled or {@code null} for none
*/
public BackupConfiguration setEnabled(java.lang.Boolean enabled) {
this.enabled = enabled;
return this;
}
/**
* This is always `sql#backupConfiguration`.
* @return value or {@code null} for none
*/
public java.lang.String getKind() {
return kind;
}
/**
* This is always `sql#backupConfiguration`.
* @param kind kind or {@code null} for none
*/
public BackupConfiguration setKind(java.lang.String kind) {
this.kind = kind;
return this;
}
/**
* Location of the backup
* @return value or {@code null} for none
*/
public java.lang.String getLocation() {
return location;
}
/**
* Location of the backup
* @param location location or {@code null} for none
*/
public BackupConfiguration setLocation(java.lang.String location) {
this.location = location;
return this;
}
/**
* Whether point in time recovery is enabled.
* @return value or {@code null} for none
*/
public java.lang.Boolean getPointInTimeRecoveryEnabled() {
return pointInTimeRecoveryEnabled;
}
/**
* Whether point in time recovery is enabled.
* @param pointInTimeRecoveryEnabled pointInTimeRecoveryEnabled or {@code null} for none
*/
public BackupConfiguration setPointInTimeRecoveryEnabled(java.lang.Boolean pointInTimeRecoveryEnabled) {
this.pointInTimeRecoveryEnabled = pointInTimeRecoveryEnabled;
return this;
}
/**
* Reserved for future use.
* @return value or {@code null} for none
*/
public java.lang.Boolean getReplicationLogArchivingEnabled() {
return replicationLogArchivingEnabled;
}
/**
* Reserved for future use.
* @param replicationLogArchivingEnabled replicationLogArchivingEnabled or {@code null} for none
*/
public BackupConfiguration setReplicationLogArchivingEnabled(java.lang.Boolean replicationLogArchivingEnabled) {
this.replicationLogArchivingEnabled = replicationLogArchivingEnabled;
return this;
}
/**
* Start time for the daily backup configuration in UTC timezone in the 24 hour format - `HH:MM`.
* @return value or {@code null} for none
*/
public java.lang.String getStartTime() {
return startTime;
}
/**
* Start time for the daily backup configuration in UTC timezone in the 24 hour format - `HH:MM`.
* @param startTime startTime or {@code null} for none
*/
public BackupConfiguration setStartTime(java.lang.String startTime) {
this.startTime = startTime;
return this;
}
/**
* The number of days of transaction logs we retain for point in time restore, from 1-7.
* @return value or {@code null} for none
*/
public java.lang.Integer getTransactionLogRetentionDays() {
return transactionLogRetentionDays;
}
/**
* The number of days of transaction logs we retain for point in time restore, from 1-7.
* @param transactionLogRetentionDays transactionLogRetentionDays or {@code null} for none
*/
public BackupConfiguration setTransactionLogRetentionDays(java.lang.Integer transactionLogRetentionDays) {
this.transactionLogRetentionDays = transactionLogRetentionDays;
return this;
}
/**
* Output only. This value contains the storage location of transactional logs used to perform
* point-in-time recovery (PITR) for the database.
* @return value or {@code null} for none
*/
public java.lang.String getTransactionalLogStorageState() {
return transactionalLogStorageState;
}
/**
* Output only. This value contains the storage location of transactional logs used to perform
* point-in-time recovery (PITR) for the database.
* @param transactionalLogStorageState transactionalLogStorageState or {@code null} for none
*/
public BackupConfiguration setTransactionalLogStorageState(java.lang.String transactionalLogStorageState) {
this.transactionalLogStorageState = transactionalLogStorageState;
return this;
}
@Override
public BackupConfiguration set(String fieldName, Object value) {
return (BackupConfiguration) super.set(fieldName, value);
}
@Override
public BackupConfiguration clone() {
return (BackupConfiguration) super.clone();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy