com.google.api.services.datamigration.v1.model.ConditionalColumnSetValue 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.datamigration.v1.model;
/**
* Options to configure rule type ConditionalColumnSetValue. The rule is used to transform the data
* which is being replicated/migrated. The rule filter field can refer to one or more entities. The
* rule scope can be one of: Column.
*
* 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 ConditionalColumnSetValue extends com.google.api.client.json.GenericJson {
/**
* Optional. Custom engine specific features.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.Map customFeatures;
/**
* Optional. Optional filter on source column precision and scale. Used for fixed point numbers
* such as NUMERIC/NUMBER data types.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private SourceNumericFilter sourceNumericFilter;
/**
* Optional. Optional filter on source column length. Used for text based data types like varchar.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private SourceTextFilter sourceTextFilter;
/**
* Required. Description of data transformation during migration.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private ValueTransformation valueTransformation;
/**
* Optional. Custom engine specific features.
* @return value or {@code null} for none
*/
public java.util.Map getCustomFeatures() {
return customFeatures;
}
/**
* Optional. Custom engine specific features.
* @param customFeatures customFeatures or {@code null} for none
*/
public ConditionalColumnSetValue setCustomFeatures(java.util.Map customFeatures) {
this.customFeatures = customFeatures;
return this;
}
/**
* Optional. Optional filter on source column precision and scale. Used for fixed point numbers
* such as NUMERIC/NUMBER data types.
* @return value or {@code null} for none
*/
public SourceNumericFilter getSourceNumericFilter() {
return sourceNumericFilter;
}
/**
* Optional. Optional filter on source column precision and scale. Used for fixed point numbers
* such as NUMERIC/NUMBER data types.
* @param sourceNumericFilter sourceNumericFilter or {@code null} for none
*/
public ConditionalColumnSetValue setSourceNumericFilter(SourceNumericFilter sourceNumericFilter) {
this.sourceNumericFilter = sourceNumericFilter;
return this;
}
/**
* Optional. Optional filter on source column length. Used for text based data types like varchar.
* @return value or {@code null} for none
*/
public SourceTextFilter getSourceTextFilter() {
return sourceTextFilter;
}
/**
* Optional. Optional filter on source column length. Used for text based data types like varchar.
* @param sourceTextFilter sourceTextFilter or {@code null} for none
*/
public ConditionalColumnSetValue setSourceTextFilter(SourceTextFilter sourceTextFilter) {
this.sourceTextFilter = sourceTextFilter;
return this;
}
/**
* Required. Description of data transformation during migration.
* @return value or {@code null} for none
*/
public ValueTransformation getValueTransformation() {
return valueTransformation;
}
/**
* Required. Description of data transformation during migration.
* @param valueTransformation valueTransformation or {@code null} for none
*/
public ConditionalColumnSetValue setValueTransformation(ValueTransformation valueTransformation) {
this.valueTransformation = valueTransformation;
return this;
}
@Override
public ConditionalColumnSetValue set(String fieldName, Object value) {
return (ConditionalColumnSetValue) super.set(fieldName, value);
}
@Override
public ConditionalColumnSetValue clone() {
return (ConditionalColumnSetValue) super.clone();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy