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

com.google.api.services.datamigration.v1.model.SqlServerHomogeneousMigrationJobConfig Maven / Gradle / Ivy

There is a newer version: v1-rev20241211-2.0.0
Show 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.datamigration.v1.model;

/**
 * Configuration for homogeneous migration to Cloud SQL for SQL Server.
 *
 * 

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 Database Migration 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 SqlServerHomogeneousMigrationJobConfig extends com.google.api.client.json.GenericJson { /** * Required. Pattern that describes the default backup naming strategy. The specified pattern * should ensure lexicographical order of backups. The pattern must define one of the following * capture group sets: Capture group set #1 yy/yyyy - year, 2 or 4 digits mm - month number, 1-12 * dd - day of month, 1-31 hh - hour of day, 00-23 mi - minutes, 00-59 ss - seconds, 00-59 * Example: For backup file TestDB_20230802_155400.trn, use pattern: * (?.*)_backup_(?\d{4})(?\d{2})(?\d{2})_(?\d{2})(?\d{2})(?\d{2}).trn Capture group set #2 * timestamp - unix timestamp Example: For backup file TestDB.1691448254.trn, use pattern: * (?.*)\.(?\d*).trn or (?.*)\.(?\d*).trn * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String backupFilePattern; /** * Required. Backup details per database in Cloud Storage. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List databaseBackups; static { // hack to force ProGuard to consider SqlServerDatabaseBackup used, since otherwise it would be stripped out // see https://github.com/google/google-api-java-client/issues/543 com.google.api.client.util.Data.nullOf(SqlServerDatabaseBackup.class); } /** * Optional. Promote databases when ready. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean promoteWhenReady; /** * Optional. Enable differential backups. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean useDiffBackup; /** * Required. Pattern that describes the default backup naming strategy. The specified pattern * should ensure lexicographical order of backups. The pattern must define one of the following * capture group sets: Capture group set #1 yy/yyyy - year, 2 or 4 digits mm - month number, 1-12 * dd - day of month, 1-31 hh - hour of day, 00-23 mi - minutes, 00-59 ss - seconds, 00-59 * Example: For backup file TestDB_20230802_155400.trn, use pattern: * (?.*)_backup_(?\d{4})(?\d{2})(?\d{2})_(?\d{2})(?\d{2})(?\d{2}).trn Capture group set #2 * timestamp - unix timestamp Example: For backup file TestDB.1691448254.trn, use pattern: * (?.*)\.(?\d*).trn or (?.*)\.(?\d*).trn * @return value or {@code null} for none */ public java.lang.String getBackupFilePattern() { return backupFilePattern; } /** * Required. Pattern that describes the default backup naming strategy. The specified pattern * should ensure lexicographical order of backups. The pattern must define one of the following * capture group sets: Capture group set #1 yy/yyyy - year, 2 or 4 digits mm - month number, 1-12 * dd - day of month, 1-31 hh - hour of day, 00-23 mi - minutes, 00-59 ss - seconds, 00-59 * Example: For backup file TestDB_20230802_155400.trn, use pattern: * (?.*)_backup_(?\d{4})(?\d{2})(?\d{2})_(?\d{2})(?\d{2})(?\d{2}).trn Capture group set #2 * timestamp - unix timestamp Example: For backup file TestDB.1691448254.trn, use pattern: * (?.*)\.(?\d*).trn or (?.*)\.(?\d*).trn * @param backupFilePattern backupFilePattern or {@code null} for none */ public SqlServerHomogeneousMigrationJobConfig setBackupFilePattern(java.lang.String backupFilePattern) { this.backupFilePattern = backupFilePattern; return this; } /** * Required. Backup details per database in Cloud Storage. * @return value or {@code null} for none */ public java.util.List getDatabaseBackups() { return databaseBackups; } /** * Required. Backup details per database in Cloud Storage. * @param databaseBackups databaseBackups or {@code null} for none */ public SqlServerHomogeneousMigrationJobConfig setDatabaseBackups(java.util.List databaseBackups) { this.databaseBackups = databaseBackups; return this; } /** * Optional. Promote databases when ready. * @return value or {@code null} for none */ public java.lang.Boolean getPromoteWhenReady() { return promoteWhenReady; } /** * Optional. Promote databases when ready. * @param promoteWhenReady promoteWhenReady or {@code null} for none */ public SqlServerHomogeneousMigrationJobConfig setPromoteWhenReady(java.lang.Boolean promoteWhenReady) { this.promoteWhenReady = promoteWhenReady; return this; } /** * Optional. Enable differential backups. * @return value or {@code null} for none */ public java.lang.Boolean getUseDiffBackup() { return useDiffBackup; } /** * Optional. Enable differential backups. * @param useDiffBackup useDiffBackup or {@code null} for none */ public SqlServerHomogeneousMigrationJobConfig setUseDiffBackup(java.lang.Boolean useDiffBackup) { this.useDiffBackup = useDiffBackup; return this; } @Override public SqlServerHomogeneousMigrationJobConfig set(String fieldName, Object value) { return (SqlServerHomogeneousMigrationJobConfig) super.set(fieldName, value); } @Override public SqlServerHomogeneousMigrationJobConfig clone() { return (SqlServerHomogeneousMigrationJobConfig) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy