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

com.google.api.services.sqladmin.model.OnPremisesConfiguration 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;

/**
 * On-premises instance 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 OnPremisesConfiguration extends com.google.api.client.json.GenericJson { /** * PEM representation of the trusted CA's x509 certificate. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String caCertificate; /** * PEM representation of the replica's x509 certificate. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String clientCertificate; /** * PEM representation of the replica's private key. The corresponsing public key is encoded in the * client's certificate. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String clientKey; /** * The dump file to create the Cloud SQL replica. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String dumpFilePath; /** * The host and port of the on-premises instance in host:port format * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String hostPort; /** * This is always `sql#onPremisesConfiguration`. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** * The password for connecting to on-premises instance. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String password; /** * Optional. A list of objects that the user selects for replication from an external source * instance. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List selectedObjects; /** * The reference to Cloud SQL instance if the source is Cloud SQL. * The value may be {@code null}. */ @com.google.api.client.util.Key private InstanceReference sourceInstance; /** * Optional. SSL option for replica connection to the on-premises source. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String sslOption; /** * The username for connecting to on-premises instance. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String username; /** * PEM representation of the trusted CA's x509 certificate. * @return value or {@code null} for none */ public java.lang.String getCaCertificate() { return caCertificate; } /** * PEM representation of the trusted CA's x509 certificate. * @param caCertificate caCertificate or {@code null} for none */ public OnPremisesConfiguration setCaCertificate(java.lang.String caCertificate) { this.caCertificate = caCertificate; return this; } /** * PEM representation of the replica's x509 certificate. * @return value or {@code null} for none */ public java.lang.String getClientCertificate() { return clientCertificate; } /** * PEM representation of the replica's x509 certificate. * @param clientCertificate clientCertificate or {@code null} for none */ public OnPremisesConfiguration setClientCertificate(java.lang.String clientCertificate) { this.clientCertificate = clientCertificate; return this; } /** * PEM representation of the replica's private key. The corresponsing public key is encoded in the * client's certificate. * @return value or {@code null} for none */ public java.lang.String getClientKey() { return clientKey; } /** * PEM representation of the replica's private key. The corresponsing public key is encoded in the * client's certificate. * @param clientKey clientKey or {@code null} for none */ public OnPremisesConfiguration setClientKey(java.lang.String clientKey) { this.clientKey = clientKey; return this; } /** * The dump file to create the Cloud SQL replica. * @return value or {@code null} for none */ public java.lang.String getDumpFilePath() { return dumpFilePath; } /** * The dump file to create the Cloud SQL replica. * @param dumpFilePath dumpFilePath or {@code null} for none */ public OnPremisesConfiguration setDumpFilePath(java.lang.String dumpFilePath) { this.dumpFilePath = dumpFilePath; return this; } /** * The host and port of the on-premises instance in host:port format * @return value or {@code null} for none */ public java.lang.String getHostPort() { return hostPort; } /** * The host and port of the on-premises instance in host:port format * @param hostPort hostPort or {@code null} for none */ public OnPremisesConfiguration setHostPort(java.lang.String hostPort) { this.hostPort = hostPort; return this; } /** * This is always `sql#onPremisesConfiguration`. * @return value or {@code null} for none */ public java.lang.String getKind() { return kind; } /** * This is always `sql#onPremisesConfiguration`. * @param kind kind or {@code null} for none */ public OnPremisesConfiguration setKind(java.lang.String kind) { this.kind = kind; return this; } /** * The password for connecting to on-premises instance. * @return value or {@code null} for none */ public java.lang.String getPassword() { return password; } /** * The password for connecting to on-premises instance. * @param password password or {@code null} for none */ public OnPremisesConfiguration setPassword(java.lang.String password) { this.password = password; return this; } /** * Optional. A list of objects that the user selects for replication from an external source * instance. * @return value or {@code null} for none */ public java.util.List getSelectedObjects() { return selectedObjects; } /** * Optional. A list of objects that the user selects for replication from an external source * instance. * @param selectedObjects selectedObjects or {@code null} for none */ public OnPremisesConfiguration setSelectedObjects(java.util.List selectedObjects) { this.selectedObjects = selectedObjects; return this; } /** * The reference to Cloud SQL instance if the source is Cloud SQL. * @return value or {@code null} for none */ public InstanceReference getSourceInstance() { return sourceInstance; } /** * The reference to Cloud SQL instance if the source is Cloud SQL. * @param sourceInstance sourceInstance or {@code null} for none */ public OnPremisesConfiguration setSourceInstance(InstanceReference sourceInstance) { this.sourceInstance = sourceInstance; return this; } /** * Optional. SSL option for replica connection to the on-premises source. * @return value or {@code null} for none */ public java.lang.String getSslOption() { return sslOption; } /** * Optional. SSL option for replica connection to the on-premises source. * @param sslOption sslOption or {@code null} for none */ public OnPremisesConfiguration setSslOption(java.lang.String sslOption) { this.sslOption = sslOption; return this; } /** * The username for connecting to on-premises instance. * @return value or {@code null} for none */ public java.lang.String getUsername() { return username; } /** * The username for connecting to on-premises instance. * @param username username or {@code null} for none */ public OnPremisesConfiguration setUsername(java.lang.String username) { this.username = username; return this; } @Override public OnPremisesConfiguration set(String fieldName, Object value) { return (OnPremisesConfiguration) super.set(fieldName, value); } @Override public OnPremisesConfiguration clone() { return (OnPremisesConfiguration) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy