com.google.api.services.dataplex.v1.model.GoogleCloudDataplexV1DataQualityRuleSqlAssertion 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.dataplex.v1.model;
/**
* A SQL statement that is evaluated to return rows that match an invalid state. If any rows are are
* returned, this rule fails.The SQL statement must use BigQuery standard SQL syntax, and must not
* contain any semicolons.You can use the data reference parameter ${data()} to reference the source
* table with all of its precondition filters applied. Examples of precondition filters include row
* filters, incremental data filters, and sampling. For more information, see Data reference
* parameter (https://cloud.google.com/dataplex/docs/auto-data-quality-overview#data-reference-
* parameter).Example: SELECT * FROM ${data()} WHERE price < 0
*
* 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 Cloud Dataplex 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 GoogleCloudDataplexV1DataQualityRuleSqlAssertion extends com.google.api.client.json.GenericJson {
/**
* Optional. The SQL statement.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String sqlStatement;
/**
* Optional. The SQL statement.
* @return value or {@code null} for none
*/
public java.lang.String getSqlStatement() {
return sqlStatement;
}
/**
* Optional. The SQL statement.
* @param sqlStatement sqlStatement or {@code null} for none
*/
public GoogleCloudDataplexV1DataQualityRuleSqlAssertion setSqlStatement(java.lang.String sqlStatement) {
this.sqlStatement = sqlStatement;
return this;
}
@Override
public GoogleCloudDataplexV1DataQualityRuleSqlAssertion set(String fieldName, Object value) {
return (GoogleCloudDataplexV1DataQualityRuleSqlAssertion) super.set(fieldName, value);
}
@Override
public GoogleCloudDataplexV1DataQualityRuleSqlAssertion clone() {
return (GoogleCloudDataplexV1DataQualityRuleSqlAssertion) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy