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

com.google.api.services.datamigration.v1.model.AlloyDbSettings 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;

/**
 * Settings for creating an AlloyDB cluster.
 *
 * 

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 AlloyDbSettings extends com.google.api.client.json.GenericJson { /** * Optional. The database engine major version. This is an optional field. If a database version * is not supplied at cluster creation time, then a default database version will be used. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String databaseVersion; /** * Optional. The encryption config can be specified to encrypt the data disks and other persistent * data resources of a cluster with a customer-managed encryption key (CMEK). When this field is * not specified, the cluster will then use default encryption scheme to protect the user data. * The value may be {@code null}. */ @com.google.api.client.util.Key private EncryptionConfig encryptionConfig; /** * Required. Input only. Initial user to setup during cluster creation. Required. * The value may be {@code null}. */ @com.google.api.client.util.Key private UserPassword initialUser; /** * Labels for the AlloyDB cluster created by DMS. An object containing a list of 'key', 'value' * pairs. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.Map labels; /** * The value may be {@code null}. */ @com.google.api.client.util.Key private PrimaryInstanceSettings primaryInstanceSettings; /** * Required. The resource link for the VPC network in which cluster resources are created and from * which they are accessible via Private IP. The network must belong to the same project as the * cluster. It is specified in the form: "projects/{project_number}/global/networks/{network_id}". * This is required to create a cluster. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String vpcNetwork; /** * Optional. The database engine major version. This is an optional field. If a database version * is not supplied at cluster creation time, then a default database version will be used. * @return value or {@code null} for none */ public java.lang.String getDatabaseVersion() { return databaseVersion; } /** * Optional. The database engine major version. This is an optional field. If a database version * is not supplied at cluster creation time, then a default database version will be used. * @param databaseVersion databaseVersion or {@code null} for none */ public AlloyDbSettings setDatabaseVersion(java.lang.String databaseVersion) { this.databaseVersion = databaseVersion; return this; } /** * Optional. The encryption config can be specified to encrypt the data disks and other persistent * data resources of a cluster with a customer-managed encryption key (CMEK). When this field is * not specified, the cluster will then use default encryption scheme to protect the user data. * @return value or {@code null} for none */ public EncryptionConfig getEncryptionConfig() { return encryptionConfig; } /** * Optional. The encryption config can be specified to encrypt the data disks and other persistent * data resources of a cluster with a customer-managed encryption key (CMEK). When this field is * not specified, the cluster will then use default encryption scheme to protect the user data. * @param encryptionConfig encryptionConfig or {@code null} for none */ public AlloyDbSettings setEncryptionConfig(EncryptionConfig encryptionConfig) { this.encryptionConfig = encryptionConfig; return this; } /** * Required. Input only. Initial user to setup during cluster creation. Required. * @return value or {@code null} for none */ public UserPassword getInitialUser() { return initialUser; } /** * Required. Input only. Initial user to setup during cluster creation. Required. * @param initialUser initialUser or {@code null} for none */ public AlloyDbSettings setInitialUser(UserPassword initialUser) { this.initialUser = initialUser; return this; } /** * Labels for the AlloyDB cluster created by DMS. An object containing a list of 'key', 'value' * pairs. * @return value or {@code null} for none */ public java.util.Map getLabels() { return labels; } /** * Labels for the AlloyDB cluster created by DMS. An object containing a list of 'key', 'value' * pairs. * @param labels labels or {@code null} for none */ public AlloyDbSettings setLabels(java.util.Map labels) { this.labels = labels; return this; } /** * @return value or {@code null} for none */ public PrimaryInstanceSettings getPrimaryInstanceSettings() { return primaryInstanceSettings; } /** * @param primaryInstanceSettings primaryInstanceSettings or {@code null} for none */ public AlloyDbSettings setPrimaryInstanceSettings(PrimaryInstanceSettings primaryInstanceSettings) { this.primaryInstanceSettings = primaryInstanceSettings; return this; } /** * Required. The resource link for the VPC network in which cluster resources are created and from * which they are accessible via Private IP. The network must belong to the same project as the * cluster. It is specified in the form: "projects/{project_number}/global/networks/{network_id}". * This is required to create a cluster. * @return value or {@code null} for none */ public java.lang.String getVpcNetwork() { return vpcNetwork; } /** * Required. The resource link for the VPC network in which cluster resources are created and from * which they are accessible via Private IP. The network must belong to the same project as the * cluster. It is specified in the form: "projects/{project_number}/global/networks/{network_id}". * This is required to create a cluster. * @param vpcNetwork vpcNetwork or {@code null} for none */ public AlloyDbSettings setVpcNetwork(java.lang.String vpcNetwork) { this.vpcNetwork = vpcNetwork; return this; } @Override public AlloyDbSettings set(String fieldName, Object value) { return (AlloyDbSettings) super.set(fieldName, value); } @Override public AlloyDbSettings clone() { return (AlloyDbSettings) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy