/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file 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. */ package com.amazonaws.services.entityresolution.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* An object containing InputSourceARN
, SchemaName
, and ApplyNormalization
.
*
* Normalizes the attributes defined in the schema in the input data. For example, if an attribute has an
* AttributeType
of PHONE_NUMBER
, and the data in the input table is in a format of
* 1234567890, Entity Resolution will normalize this field in the output to (123)-456-7890.
*
* An Glue table ARN for the input source table. *
*/ private String inputSourceARN; /** ** The name of the schema to be retrieved. *
*/ private String schemaName; /** *
* Normalizes the attributes defined in the schema in the input data. For example, if an attribute has an
* AttributeType
of PHONE_NUMBER
, and the data in the input table is in a format of
* 1234567890, Entity Resolution will normalize this field in the output to (123)-456-7890.
*
AttributeType
of PHONE_NUMBER
, and the data in the input table is in a format of
* 1234567890, Entity Resolution will normalize this field in the output to (123)-456-7890.
*/
public void setApplyNormalization(Boolean applyNormalization) {
this.applyNormalization = applyNormalization;
}
/**
*
* Normalizes the attributes defined in the schema in the input data. For example, if an attribute has an
* AttributeType
of PHONE_NUMBER
, and the data in the input table is in a format of
* 1234567890, Entity Resolution will normalize this field in the output to (123)-456-7890.
*
AttributeType
of PHONE_NUMBER
, and the data in the input table is in a format
* of 1234567890, Entity Resolution will normalize this field in the output to (123)-456-7890.
*/
public Boolean getApplyNormalization() {
return this.applyNormalization;
}
/**
*
* Normalizes the attributes defined in the schema in the input data. For example, if an attribute has an
* AttributeType
of PHONE_NUMBER
, and the data in the input table is in a format of
* 1234567890, Entity Resolution will normalize this field in the output to (123)-456-7890.
*
AttributeType
of PHONE_NUMBER
, and the data in the input table is in a format of
* 1234567890, Entity Resolution will normalize this field in the output to (123)-456-7890.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public InputSource withApplyNormalization(Boolean applyNormalization) {
setApplyNormalization(applyNormalization);
return this;
}
/**
*
* Normalizes the attributes defined in the schema in the input data. For example, if an attribute has an
* AttributeType
of PHONE_NUMBER
, and the data in the input table is in a format of
* 1234567890, Entity Resolution will normalize this field in the output to (123)-456-7890.
*
AttributeType
of PHONE_NUMBER
, and the data in the input table is in a format
* of 1234567890, Entity Resolution will normalize this field in the output to (123)-456-7890.
*/
public Boolean isApplyNormalization() {
return this.applyNormalization;
}
/**
* * An Glue table ARN for the input source table. *
* * @param inputSourceARN * An Glue table ARN for the input source table. */ public void setInputSourceARN(String inputSourceARN) { this.inputSourceARN = inputSourceARN; } /** ** An Glue table ARN for the input source table. *
* * @return An Glue table ARN for the input source table. */ public String getInputSourceARN() { return this.inputSourceARN; } /** ** An Glue table ARN for the input source table. *
* * @param inputSourceARN * An Glue table ARN for the input source table. * @return Returns a reference to this object so that method calls can be chained together. */ public InputSource withInputSourceARN(String inputSourceARN) { setInputSourceARN(inputSourceARN); return this; } /** ** The name of the schema to be retrieved. *
* * @param schemaName * The name of the schema to be retrieved. */ public void setSchemaName(String schemaName) { this.schemaName = schemaName; } /** ** The name of the schema to be retrieved. *
* * @return The name of the schema to be retrieved. */ public String getSchemaName() { return this.schemaName; } /** ** The name of the schema to be retrieved. *
* * @param schemaName * The name of the schema to be retrieved. * @return Returns a reference to this object so that method calls can be chained together. */ public InputSource withSchemaName(String schemaName) { setSchemaName(schemaName); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getApplyNormalization() != null) sb.append("ApplyNormalization: ").append(getApplyNormalization()).append(","); if (getInputSourceARN() != null) sb.append("InputSourceARN: ").append(getInputSourceARN()).append(","); if (getSchemaName() != null) sb.append("SchemaName: ").append(getSchemaName()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof InputSource == false) return false; InputSource other = (InputSource) obj; if (other.getApplyNormalization() == null ^ this.getApplyNormalization() == null) return false; if (other.getApplyNormalization() != null && other.getApplyNormalization().equals(this.getApplyNormalization()) == false) return false; if (other.getInputSourceARN() == null ^ this.getInputSourceARN() == null) return false; if (other.getInputSourceARN() != null && other.getInputSourceARN().equals(this.getInputSourceARN()) == false) return false; if (other.getSchemaName() == null ^ this.getSchemaName() == null) return false; if (other.getSchemaName() != null && other.getSchemaName().equals(this.getSchemaName()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getApplyNormalization() == null) ? 0 : getApplyNormalization().hashCode()); hashCode = prime * hashCode + ((getInputSourceARN() == null) ? 0 : getInputSourceARN().hashCode()); hashCode = prime * hashCode + ((getSchemaName() == null) ? 0 : getSchemaName().hashCode()); return hashCode; } @Override public InputSource clone() { try { return (InputSource) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.entityresolution.model.transform.InputSourceMarshaller.getInstance().marshall(this, protocolMarshaller); } }