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

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

/**
 * Specifies connection parameters required specifically for PostgreSQL databases.
 *
 * 

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 PostgreSqlConnectionProfile extends com.google.api.client.json.GenericJson { /** * Optional. If the destination is an AlloyDB database, use this field to provide the AlloyDB * cluster ID. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String alloydbClusterId; /** * If the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of * the source. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String cloudSqlId; /** * Required. The IP or hostname of the source PostgreSQL database. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String host; /** * Output only. If the source is a Cloud SQL database, this field indicates the network * architecture it's associated with. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String networkArchitecture; /** * Required. Input only. The password for the user that Database Migration Service will be using * to connect to the database. This field is not returned on request, and the value is encrypted * when stored in Database Migration Service. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String password; /** * Output only. Indicates If this connection profile password is stored. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean passwordSet; /** * Required. The network port of the source PostgreSQL database. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer port; /** * Private service connect connectivity. * The value may be {@code null}. */ @com.google.api.client.util.Key private PrivateServiceConnectConnectivity privateServiceConnectConnectivity; /** * SSL configuration for the destination to connect to the source database. * The value may be {@code null}. */ @com.google.api.client.util.Key private SslConfig ssl; /** * Static ip connectivity data (default, no additional details needed). * The value may be {@code null}. */ @com.google.api.client.util.Key private StaticIpConnectivity staticIpConnectivity; /** * Required. The username that Database Migration Service will use to connect to the database. The * value is encrypted when stored in Database Migration Service. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String username; /** * Optional. If the destination is an AlloyDB database, use this field to provide the AlloyDB * cluster ID. * @return value or {@code null} for none */ public java.lang.String getAlloydbClusterId() { return alloydbClusterId; } /** * Optional. If the destination is an AlloyDB database, use this field to provide the AlloyDB * cluster ID. * @param alloydbClusterId alloydbClusterId or {@code null} for none */ public PostgreSqlConnectionProfile setAlloydbClusterId(java.lang.String alloydbClusterId) { this.alloydbClusterId = alloydbClusterId; return this; } /** * If the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of * the source. * @return value or {@code null} for none */ public java.lang.String getCloudSqlId() { return cloudSqlId; } /** * If the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of * the source. * @param cloudSqlId cloudSqlId or {@code null} for none */ public PostgreSqlConnectionProfile setCloudSqlId(java.lang.String cloudSqlId) { this.cloudSqlId = cloudSqlId; return this; } /** * Required. The IP or hostname of the source PostgreSQL database. * @return value or {@code null} for none */ public java.lang.String getHost() { return host; } /** * Required. The IP or hostname of the source PostgreSQL database. * @param host host or {@code null} for none */ public PostgreSqlConnectionProfile setHost(java.lang.String host) { this.host = host; return this; } /** * Output only. If the source is a Cloud SQL database, this field indicates the network * architecture it's associated with. * @return value or {@code null} for none */ public java.lang.String getNetworkArchitecture() { return networkArchitecture; } /** * Output only. If the source is a Cloud SQL database, this field indicates the network * architecture it's associated with. * @param networkArchitecture networkArchitecture or {@code null} for none */ public PostgreSqlConnectionProfile setNetworkArchitecture(java.lang.String networkArchitecture) { this.networkArchitecture = networkArchitecture; return this; } /** * Required. Input only. The password for the user that Database Migration Service will be using * to connect to the database. This field is not returned on request, and the value is encrypted * when stored in Database Migration Service. * @return value or {@code null} for none */ public java.lang.String getPassword() { return password; } /** * Required. Input only. The password for the user that Database Migration Service will be using * to connect to the database. This field is not returned on request, and the value is encrypted * when stored in Database Migration Service. * @param password password or {@code null} for none */ public PostgreSqlConnectionProfile setPassword(java.lang.String password) { this.password = password; return this; } /** * Output only. Indicates If this connection profile password is stored. * @return value or {@code null} for none */ public java.lang.Boolean getPasswordSet() { return passwordSet; } /** * Output only. Indicates If this connection profile password is stored. * @param passwordSet passwordSet or {@code null} for none */ public PostgreSqlConnectionProfile setPasswordSet(java.lang.Boolean passwordSet) { this.passwordSet = passwordSet; return this; } /** * Required. The network port of the source PostgreSQL database. * @return value or {@code null} for none */ public java.lang.Integer getPort() { return port; } /** * Required. The network port of the source PostgreSQL database. * @param port port or {@code null} for none */ public PostgreSqlConnectionProfile setPort(java.lang.Integer port) { this.port = port; return this; } /** * Private service connect connectivity. * @return value or {@code null} for none */ public PrivateServiceConnectConnectivity getPrivateServiceConnectConnectivity() { return privateServiceConnectConnectivity; } /** * Private service connect connectivity. * @param privateServiceConnectConnectivity privateServiceConnectConnectivity or {@code null} for none */ public PostgreSqlConnectionProfile setPrivateServiceConnectConnectivity(PrivateServiceConnectConnectivity privateServiceConnectConnectivity) { this.privateServiceConnectConnectivity = privateServiceConnectConnectivity; return this; } /** * SSL configuration for the destination to connect to the source database. * @return value or {@code null} for none */ public SslConfig getSsl() { return ssl; } /** * SSL configuration for the destination to connect to the source database. * @param ssl ssl or {@code null} for none */ public PostgreSqlConnectionProfile setSsl(SslConfig ssl) { this.ssl = ssl; return this; } /** * Static ip connectivity data (default, no additional details needed). * @return value or {@code null} for none */ public StaticIpConnectivity getStaticIpConnectivity() { return staticIpConnectivity; } /** * Static ip connectivity data (default, no additional details needed). * @param staticIpConnectivity staticIpConnectivity or {@code null} for none */ public PostgreSqlConnectionProfile setStaticIpConnectivity(StaticIpConnectivity staticIpConnectivity) { this.staticIpConnectivity = staticIpConnectivity; return this; } /** * Required. The username that Database Migration Service will use to connect to the database. The * value is encrypted when stored in Database Migration Service. * @return value or {@code null} for none */ public java.lang.String getUsername() { return username; } /** * Required. The username that Database Migration Service will use to connect to the database. The * value is encrypted when stored in Database Migration Service. * @param username username or {@code null} for none */ public PostgreSqlConnectionProfile setUsername(java.lang.String username) { this.username = username; return this; } @Override public PostgreSqlConnectionProfile set(String fieldName, Object value) { return (PostgreSqlConnectionProfile) super.set(fieldName, value); } @Override public PostgreSqlConnectionProfile clone() { return (PostgreSqlConnectionProfile) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy