com.amazonaws.services.cleanrooms.model.DataEncryptionMetadata Maven / Gradle / Ivy
Show all versions of aws-java-sdk-cleanrooms Show documentation
/*
* Copyright 2019-2024 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.cleanrooms.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* The settings for client-side encryption for cryptographic computing.
*
*
* @see AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DataEncryptionMetadata implements Serializable, Cloneable, StructuredPojo {
/**
*
* Indicates whether encrypted tables can contain cleartext data (TRUE
) or are to cryptographically
* process every column (FALSE
).
*
*/
private Boolean allowCleartext;
/**
*
* Indicates whether Fingerprint columns can contain duplicate entries (TRUE
) or are to contain only
* non-repeated values (FALSE
).
*
*/
private Boolean allowDuplicates;
/**
*
* Indicates whether Fingerprint columns can be joined on any other Fingerprint column with a different name (
* TRUE
) or can only be joined on Fingerprint columns of the same name (FALSE
).
*
*/
private Boolean allowJoinsOnColumnsWithDifferentNames;
/**
*
* Indicates whether NULL values are to be copied as NULL to encrypted tables (TRUE
) or
* cryptographically processed (FALSE
).
*
*/
private Boolean preserveNulls;
/**
*
* Indicates whether encrypted tables can contain cleartext data (TRUE
) or are to cryptographically
* process every column (FALSE
).
*
*
* @param allowCleartext
* Indicates whether encrypted tables can contain cleartext data (TRUE
) or are to
* cryptographically process every column (FALSE
).
*/
public void setAllowCleartext(Boolean allowCleartext) {
this.allowCleartext = allowCleartext;
}
/**
*
* Indicates whether encrypted tables can contain cleartext data (TRUE
) or are to cryptographically
* process every column (FALSE
).
*
*
* @return Indicates whether encrypted tables can contain cleartext data (TRUE
) or are to
* cryptographically process every column (FALSE
).
*/
public Boolean getAllowCleartext() {
return this.allowCleartext;
}
/**
*
* Indicates whether encrypted tables can contain cleartext data (TRUE
) or are to cryptographically
* process every column (FALSE
).
*
*
* @param allowCleartext
* Indicates whether encrypted tables can contain cleartext data (TRUE
) or are to
* cryptographically process every column (FALSE
).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DataEncryptionMetadata withAllowCleartext(Boolean allowCleartext) {
setAllowCleartext(allowCleartext);
return this;
}
/**
*
* Indicates whether encrypted tables can contain cleartext data (TRUE
) or are to cryptographically
* process every column (FALSE
).
*
*
* @return Indicates whether encrypted tables can contain cleartext data (TRUE
) or are to
* cryptographically process every column (FALSE
).
*/
public Boolean isAllowCleartext() {
return this.allowCleartext;
}
/**
*
* Indicates whether Fingerprint columns can contain duplicate entries (TRUE
) or are to contain only
* non-repeated values (FALSE
).
*
*
* @param allowDuplicates
* Indicates whether Fingerprint columns can contain duplicate entries (TRUE
) or are to contain
* only non-repeated values (FALSE
).
*/
public void setAllowDuplicates(Boolean allowDuplicates) {
this.allowDuplicates = allowDuplicates;
}
/**
*
* Indicates whether Fingerprint columns can contain duplicate entries (TRUE
) or are to contain only
* non-repeated values (FALSE
).
*
*
* @return Indicates whether Fingerprint columns can contain duplicate entries (TRUE
) or are to contain
* only non-repeated values (FALSE
).
*/
public Boolean getAllowDuplicates() {
return this.allowDuplicates;
}
/**
*
* Indicates whether Fingerprint columns can contain duplicate entries (TRUE
) or are to contain only
* non-repeated values (FALSE
).
*
*
* @param allowDuplicates
* Indicates whether Fingerprint columns can contain duplicate entries (TRUE
) or are to contain
* only non-repeated values (FALSE
).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DataEncryptionMetadata withAllowDuplicates(Boolean allowDuplicates) {
setAllowDuplicates(allowDuplicates);
return this;
}
/**
*
* Indicates whether Fingerprint columns can contain duplicate entries (TRUE
) or are to contain only
* non-repeated values (FALSE
).
*
*
* @return Indicates whether Fingerprint columns can contain duplicate entries (TRUE
) or are to contain
* only non-repeated values (FALSE
).
*/
public Boolean isAllowDuplicates() {
return this.allowDuplicates;
}
/**
*
* Indicates whether Fingerprint columns can be joined on any other Fingerprint column with a different name (
* TRUE
) or can only be joined on Fingerprint columns of the same name (FALSE
).
*
*
* @param allowJoinsOnColumnsWithDifferentNames
* Indicates whether Fingerprint columns can be joined on any other Fingerprint column with a different name
* (TRUE
) or can only be joined on Fingerprint columns of the same name (FALSE
).
*/
public void setAllowJoinsOnColumnsWithDifferentNames(Boolean allowJoinsOnColumnsWithDifferentNames) {
this.allowJoinsOnColumnsWithDifferentNames = allowJoinsOnColumnsWithDifferentNames;
}
/**
*
* Indicates whether Fingerprint columns can be joined on any other Fingerprint column with a different name (
* TRUE
) or can only be joined on Fingerprint columns of the same name (FALSE
).
*
*
* @return Indicates whether Fingerprint columns can be joined on any other Fingerprint column with a different name
* (TRUE
) or can only be joined on Fingerprint columns of the same name (FALSE
).
*/
public Boolean getAllowJoinsOnColumnsWithDifferentNames() {
return this.allowJoinsOnColumnsWithDifferentNames;
}
/**
*
* Indicates whether Fingerprint columns can be joined on any other Fingerprint column with a different name (
* TRUE
) or can only be joined on Fingerprint columns of the same name (FALSE
).
*
*
* @param allowJoinsOnColumnsWithDifferentNames
* Indicates whether Fingerprint columns can be joined on any other Fingerprint column with a different name
* (TRUE
) or can only be joined on Fingerprint columns of the same name (FALSE
).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DataEncryptionMetadata withAllowJoinsOnColumnsWithDifferentNames(Boolean allowJoinsOnColumnsWithDifferentNames) {
setAllowJoinsOnColumnsWithDifferentNames(allowJoinsOnColumnsWithDifferentNames);
return this;
}
/**
*
* Indicates whether Fingerprint columns can be joined on any other Fingerprint column with a different name (
* TRUE
) or can only be joined on Fingerprint columns of the same name (FALSE
).
*
*
* @return Indicates whether Fingerprint columns can be joined on any other Fingerprint column with a different name
* (TRUE
) or can only be joined on Fingerprint columns of the same name (FALSE
).
*/
public Boolean isAllowJoinsOnColumnsWithDifferentNames() {
return this.allowJoinsOnColumnsWithDifferentNames;
}
/**
*
* Indicates whether NULL values are to be copied as NULL to encrypted tables (TRUE
) or
* cryptographically processed (FALSE
).
*
*
* @param preserveNulls
* Indicates whether NULL values are to be copied as NULL to encrypted tables (TRUE
) or
* cryptographically processed (FALSE
).
*/
public void setPreserveNulls(Boolean preserveNulls) {
this.preserveNulls = preserveNulls;
}
/**
*
* Indicates whether NULL values are to be copied as NULL to encrypted tables (TRUE
) or
* cryptographically processed (FALSE
).
*
*
* @return Indicates whether NULL values are to be copied as NULL to encrypted tables (TRUE
) or
* cryptographically processed (FALSE
).
*/
public Boolean getPreserveNulls() {
return this.preserveNulls;
}
/**
*
* Indicates whether NULL values are to be copied as NULL to encrypted tables (TRUE
) or
* cryptographically processed (FALSE
).
*
*
* @param preserveNulls
* Indicates whether NULL values are to be copied as NULL to encrypted tables (TRUE
) or
* cryptographically processed (FALSE
).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DataEncryptionMetadata withPreserveNulls(Boolean preserveNulls) {
setPreserveNulls(preserveNulls);
return this;
}
/**
*
* Indicates whether NULL values are to be copied as NULL to encrypted tables (TRUE
) or
* cryptographically processed (FALSE
).
*
*
* @return Indicates whether NULL values are to be copied as NULL to encrypted tables (TRUE
) or
* cryptographically processed (FALSE
).
*/
public Boolean isPreserveNulls() {
return this.preserveNulls;
}
/**
* 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 (getAllowCleartext() != null)
sb.append("AllowCleartext: ").append(getAllowCleartext()).append(",");
if (getAllowDuplicates() != null)
sb.append("AllowDuplicates: ").append(getAllowDuplicates()).append(",");
if (getAllowJoinsOnColumnsWithDifferentNames() != null)
sb.append("AllowJoinsOnColumnsWithDifferentNames: ").append(getAllowJoinsOnColumnsWithDifferentNames()).append(",");
if (getPreserveNulls() != null)
sb.append("PreserveNulls: ").append(getPreserveNulls());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DataEncryptionMetadata == false)
return false;
DataEncryptionMetadata other = (DataEncryptionMetadata) obj;
if (other.getAllowCleartext() == null ^ this.getAllowCleartext() == null)
return false;
if (other.getAllowCleartext() != null && other.getAllowCleartext().equals(this.getAllowCleartext()) == false)
return false;
if (other.getAllowDuplicates() == null ^ this.getAllowDuplicates() == null)
return false;
if (other.getAllowDuplicates() != null && other.getAllowDuplicates().equals(this.getAllowDuplicates()) == false)
return false;
if (other.getAllowJoinsOnColumnsWithDifferentNames() == null ^ this.getAllowJoinsOnColumnsWithDifferentNames() == null)
return false;
if (other.getAllowJoinsOnColumnsWithDifferentNames() != null
&& other.getAllowJoinsOnColumnsWithDifferentNames().equals(this.getAllowJoinsOnColumnsWithDifferentNames()) == false)
return false;
if (other.getPreserveNulls() == null ^ this.getPreserveNulls() == null)
return false;
if (other.getPreserveNulls() != null && other.getPreserveNulls().equals(this.getPreserveNulls()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getAllowCleartext() == null) ? 0 : getAllowCleartext().hashCode());
hashCode = prime * hashCode + ((getAllowDuplicates() == null) ? 0 : getAllowDuplicates().hashCode());
hashCode = prime * hashCode + ((getAllowJoinsOnColumnsWithDifferentNames() == null) ? 0 : getAllowJoinsOnColumnsWithDifferentNames().hashCode());
hashCode = prime * hashCode + ((getPreserveNulls() == null) ? 0 : getPreserveNulls().hashCode());
return hashCode;
}
@Override
public DataEncryptionMetadata clone() {
try {
return (DataEncryptionMetadata) 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.cleanrooms.model.transform.DataEncryptionMetadataMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}