com.google.api.services.bigqueryconnection.v1beta1.model.CloudSqlProperties Maven / Gradle / Ivy
/*
* 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.bigqueryconnection.v1beta1.model;
/**
* Connection properties specific to the Cloud SQL.
*
* 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 BigQuery Connection 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 CloudSqlProperties extends com.google.api.client.json.GenericJson {
/**
* Input only. Cloud SQL credential.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private CloudSqlCredential credential;
/**
* Database name.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String database;
/**
* Cloud SQL instance ID in the form `project:location:instance`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String instanceId;
/**
* Type of the Cloud SQL database.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String type;
/**
* Input only. Cloud SQL credential.
* @return value or {@code null} for none
*/
public CloudSqlCredential getCredential() {
return credential;
}
/**
* Input only. Cloud SQL credential.
* @param credential credential or {@code null} for none
*/
public CloudSqlProperties setCredential(CloudSqlCredential credential) {
this.credential = credential;
return this;
}
/**
* Database name.
* @return value or {@code null} for none
*/
public java.lang.String getDatabase() {
return database;
}
/**
* Database name.
* @param database database or {@code null} for none
*/
public CloudSqlProperties setDatabase(java.lang.String database) {
this.database = database;
return this;
}
/**
* Cloud SQL instance ID in the form `project:location:instance`.
* @return value or {@code null} for none
*/
public java.lang.String getInstanceId() {
return instanceId;
}
/**
* Cloud SQL instance ID in the form `project:location:instance`.
* @param instanceId instanceId or {@code null} for none
*/
public CloudSqlProperties setInstanceId(java.lang.String instanceId) {
this.instanceId = instanceId;
return this;
}
/**
* Type of the Cloud SQL database.
* @return value or {@code null} for none
*/
public java.lang.String getType() {
return type;
}
/**
* Type of the Cloud SQL database.
* @param type type or {@code null} for none
*/
public CloudSqlProperties setType(java.lang.String type) {
this.type = type;
return this;
}
@Override
public CloudSqlProperties set(String fieldName, Object value) {
return (CloudSqlProperties) super.set(fieldName, value);
}
@Override
public CloudSqlProperties clone() {
return (CloudSqlProperties) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy