
com.google.api.services.datastream.v1.model.SourceConfig 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.datastream.v1.model;
/**
* The configuration of the stream source.
*
* 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 Datastream 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 SourceConfig extends com.google.api.client.json.GenericJson {
/**
* MySQL data source configuration.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private MysqlSourceConfig mysqlSourceConfig;
/**
* Oracle data source configuration.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private OracleSourceConfig oracleSourceConfig;
/**
* PostgreSQL data source configuration.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private PostgresqlSourceConfig postgresqlSourceConfig;
/**
* Required. Source connection profile resoource. Format:
* `projects/{project}/locations/{location}/connectionProfiles/{name}`
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String sourceConnectionProfile;
/**
* SQLServer data source configuration.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private SqlServerSourceConfig sqlServerSourceConfig;
/**
* MySQL data source configuration.
* @return value or {@code null} for none
*/
public MysqlSourceConfig getMysqlSourceConfig() {
return mysqlSourceConfig;
}
/**
* MySQL data source configuration.
* @param mysqlSourceConfig mysqlSourceConfig or {@code null} for none
*/
public SourceConfig setMysqlSourceConfig(MysqlSourceConfig mysqlSourceConfig) {
this.mysqlSourceConfig = mysqlSourceConfig;
return this;
}
/**
* Oracle data source configuration.
* @return value or {@code null} for none
*/
public OracleSourceConfig getOracleSourceConfig() {
return oracleSourceConfig;
}
/**
* Oracle data source configuration.
* @param oracleSourceConfig oracleSourceConfig or {@code null} for none
*/
public SourceConfig setOracleSourceConfig(OracleSourceConfig oracleSourceConfig) {
this.oracleSourceConfig = oracleSourceConfig;
return this;
}
/**
* PostgreSQL data source configuration.
* @return value or {@code null} for none
*/
public PostgresqlSourceConfig getPostgresqlSourceConfig() {
return postgresqlSourceConfig;
}
/**
* PostgreSQL data source configuration.
* @param postgresqlSourceConfig postgresqlSourceConfig or {@code null} for none
*/
public SourceConfig setPostgresqlSourceConfig(PostgresqlSourceConfig postgresqlSourceConfig) {
this.postgresqlSourceConfig = postgresqlSourceConfig;
return this;
}
/**
* Required. Source connection profile resoource. Format:
* `projects/{project}/locations/{location}/connectionProfiles/{name}`
* @return value or {@code null} for none
*/
public java.lang.String getSourceConnectionProfile() {
return sourceConnectionProfile;
}
/**
* Required. Source connection profile resoource. Format:
* `projects/{project}/locations/{location}/connectionProfiles/{name}`
* @param sourceConnectionProfile sourceConnectionProfile or {@code null} for none
*/
public SourceConfig setSourceConnectionProfile(java.lang.String sourceConnectionProfile) {
this.sourceConnectionProfile = sourceConnectionProfile;
return this;
}
/**
* SQLServer data source configuration.
* @return value or {@code null} for none
*/
public SqlServerSourceConfig getSqlServerSourceConfig() {
return sqlServerSourceConfig;
}
/**
* SQLServer data source configuration.
* @param sqlServerSourceConfig sqlServerSourceConfig or {@code null} for none
*/
public SourceConfig setSqlServerSourceConfig(SqlServerSourceConfig sqlServerSourceConfig) {
this.sqlServerSourceConfig = sqlServerSourceConfig;
return this;
}
@Override
public SourceConfig set(String fieldName, Object value) {
return (SourceConfig) super.set(fieldName, value);
}
@Override
public SourceConfig clone() {
return (SourceConfig) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy