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

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

/**
 * PostgreSQL data source 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 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 PostgresqlSourceConfig extends com.google.api.client.json.GenericJson { /** * PostgreSQL objects to exclude from the stream. * The value may be {@code null}. */ @com.google.api.client.util.Key private PostgresqlRdbms excludeObjects; /** * PostgreSQL objects to include in the stream. * The value may be {@code null}. */ @com.google.api.client.util.Key private PostgresqlRdbms includeObjects; /** * Maximum number of concurrent backfill tasks. The number should be non negative. If not set (or * set to 0), the system's default value will be used. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer maxConcurrentBackfillTasks; /** * Required. The name of the publication that includes the set of all tables that are defined in * the stream's include_objects. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String publication; /** * Required. Immutable. The name of the logical replication slot that's configured with the * pgoutput plugin. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String replicationSlot; /** * PostgreSQL objects to exclude from the stream. * @return value or {@code null} for none */ public PostgresqlRdbms getExcludeObjects() { return excludeObjects; } /** * PostgreSQL objects to exclude from the stream. * @param excludeObjects excludeObjects or {@code null} for none */ public PostgresqlSourceConfig setExcludeObjects(PostgresqlRdbms excludeObjects) { this.excludeObjects = excludeObjects; return this; } /** * PostgreSQL objects to include in the stream. * @return value or {@code null} for none */ public PostgresqlRdbms getIncludeObjects() { return includeObjects; } /** * PostgreSQL objects to include in the stream. * @param includeObjects includeObjects or {@code null} for none */ public PostgresqlSourceConfig setIncludeObjects(PostgresqlRdbms includeObjects) { this.includeObjects = includeObjects; return this; } /** * Maximum number of concurrent backfill tasks. The number should be non negative. If not set (or * set to 0), the system's default value will be used. * @return value or {@code null} for none */ public java.lang.Integer getMaxConcurrentBackfillTasks() { return maxConcurrentBackfillTasks; } /** * Maximum number of concurrent backfill tasks. The number should be non negative. If not set (or * set to 0), the system's default value will be used. * @param maxConcurrentBackfillTasks maxConcurrentBackfillTasks or {@code null} for none */ public PostgresqlSourceConfig setMaxConcurrentBackfillTasks(java.lang.Integer maxConcurrentBackfillTasks) { this.maxConcurrentBackfillTasks = maxConcurrentBackfillTasks; return this; } /** * Required. The name of the publication that includes the set of all tables that are defined in * the stream's include_objects. * @return value or {@code null} for none */ public java.lang.String getPublication() { return publication; } /** * Required. The name of the publication that includes the set of all tables that are defined in * the stream's include_objects. * @param publication publication or {@code null} for none */ public PostgresqlSourceConfig setPublication(java.lang.String publication) { this.publication = publication; return this; } /** * Required. Immutable. The name of the logical replication slot that's configured with the * pgoutput plugin. * @return value or {@code null} for none */ public java.lang.String getReplicationSlot() { return replicationSlot; } /** * Required. Immutable. The name of the logical replication slot that's configured with the * pgoutput plugin. * @param replicationSlot replicationSlot or {@code null} for none */ public PostgresqlSourceConfig setReplicationSlot(java.lang.String replicationSlot) { this.replicationSlot = replicationSlot; return this; } @Override public PostgresqlSourceConfig set(String fieldName, Object value) { return (PostgresqlSourceConfig) super.set(fieldName, value); } @Override public PostgresqlSourceConfig clone() { return (PostgresqlSourceConfig) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy