com.amazonaws.services.cleanrooms.model.ConfiguredTableAssociationAnalysisRule 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;
/**
*
* An analysis rule for a configured table association. This analysis rule specifies how data from the table can be used
* within its associated collaboration. In the console, the ConfiguredTableAssociationAnalysisRule
is
* referred to as the collaboration analysis rule.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ConfiguredTableAssociationAnalysisRule implements Serializable, Cloneable, StructuredPojo {
/**
*
* The membership identifier for the configured table association analysis rule.
*
*/
private String membershipIdentifier;
/**
*
* The unique identifier for the configured table association.
*
*/
private String configuredTableAssociationId;
/**
*
* The Amazon Resource Name (ARN) of the configured table association.
*
*/
private String configuredTableAssociationArn;
/**
*
* The policy of the configured table association analysis rule.
*
*/
private ConfiguredTableAssociationAnalysisRulePolicy policy;
/**
*
* The type of the configured table association analysis rule.
*
*/
private String type;
/**
*
* The creation time of the configured table association analysis rule.
*
*/
private java.util.Date createTime;
/**
*
* The update time of the configured table association analysis rule.
*
*/
private java.util.Date updateTime;
/**
*
* The membership identifier for the configured table association analysis rule.
*
*
* @param membershipIdentifier
* The membership identifier for the configured table association analysis rule.
*/
public void setMembershipIdentifier(String membershipIdentifier) {
this.membershipIdentifier = membershipIdentifier;
}
/**
*
* The membership identifier for the configured table association analysis rule.
*
*
* @return The membership identifier for the configured table association analysis rule.
*/
public String getMembershipIdentifier() {
return this.membershipIdentifier;
}
/**
*
* The membership identifier for the configured table association analysis rule.
*
*
* @param membershipIdentifier
* The membership identifier for the configured table association analysis rule.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ConfiguredTableAssociationAnalysisRule withMembershipIdentifier(String membershipIdentifier) {
setMembershipIdentifier(membershipIdentifier);
return this;
}
/**
*
* The unique identifier for the configured table association.
*
*
* @param configuredTableAssociationId
* The unique identifier for the configured table association.
*/
public void setConfiguredTableAssociationId(String configuredTableAssociationId) {
this.configuredTableAssociationId = configuredTableAssociationId;
}
/**
*
* The unique identifier for the configured table association.
*
*
* @return The unique identifier for the configured table association.
*/
public String getConfiguredTableAssociationId() {
return this.configuredTableAssociationId;
}
/**
*
* The unique identifier for the configured table association.
*
*
* @param configuredTableAssociationId
* The unique identifier for the configured table association.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ConfiguredTableAssociationAnalysisRule withConfiguredTableAssociationId(String configuredTableAssociationId) {
setConfiguredTableAssociationId(configuredTableAssociationId);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the configured table association.
*
*
* @param configuredTableAssociationArn
* The Amazon Resource Name (ARN) of the configured table association.
*/
public void setConfiguredTableAssociationArn(String configuredTableAssociationArn) {
this.configuredTableAssociationArn = configuredTableAssociationArn;
}
/**
*
* The Amazon Resource Name (ARN) of the configured table association.
*
*
* @return The Amazon Resource Name (ARN) of the configured table association.
*/
public String getConfiguredTableAssociationArn() {
return this.configuredTableAssociationArn;
}
/**
*
* The Amazon Resource Name (ARN) of the configured table association.
*
*
* @param configuredTableAssociationArn
* The Amazon Resource Name (ARN) of the configured table association.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ConfiguredTableAssociationAnalysisRule withConfiguredTableAssociationArn(String configuredTableAssociationArn) {
setConfiguredTableAssociationArn(configuredTableAssociationArn);
return this;
}
/**
*
* The policy of the configured table association analysis rule.
*
*
* @param policy
* The policy of the configured table association analysis rule.
*/
public void setPolicy(ConfiguredTableAssociationAnalysisRulePolicy policy) {
this.policy = policy;
}
/**
*
* The policy of the configured table association analysis rule.
*
*
* @return The policy of the configured table association analysis rule.
*/
public ConfiguredTableAssociationAnalysisRulePolicy getPolicy() {
return this.policy;
}
/**
*
* The policy of the configured table association analysis rule.
*
*
* @param policy
* The policy of the configured table association analysis rule.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ConfiguredTableAssociationAnalysisRule withPolicy(ConfiguredTableAssociationAnalysisRulePolicy policy) {
setPolicy(policy);
return this;
}
/**
*
* The type of the configured table association analysis rule.
*
*
* @param type
* The type of the configured table association analysis rule.
* @see ConfiguredTableAssociationAnalysisRuleType
*/
public void setType(String type) {
this.type = type;
}
/**
*
* The type of the configured table association analysis rule.
*
*
* @return The type of the configured table association analysis rule.
* @see ConfiguredTableAssociationAnalysisRuleType
*/
public String getType() {
return this.type;
}
/**
*
* The type of the configured table association analysis rule.
*
*
* @param type
* The type of the configured table association analysis rule.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ConfiguredTableAssociationAnalysisRuleType
*/
public ConfiguredTableAssociationAnalysisRule withType(String type) {
setType(type);
return this;
}
/**
*
* The type of the configured table association analysis rule.
*
*
* @param type
* The type of the configured table association analysis rule.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ConfiguredTableAssociationAnalysisRuleType
*/
public ConfiguredTableAssociationAnalysisRule withType(ConfiguredTableAssociationAnalysisRuleType type) {
this.type = type.toString();
return this;
}
/**
*
* The creation time of the configured table association analysis rule.
*
*
* @param createTime
* The creation time of the configured table association analysis rule.
*/
public void setCreateTime(java.util.Date createTime) {
this.createTime = createTime;
}
/**
*
* The creation time of the configured table association analysis rule.
*
*
* @return The creation time of the configured table association analysis rule.
*/
public java.util.Date getCreateTime() {
return this.createTime;
}
/**
*
* The creation time of the configured table association analysis rule.
*
*
* @param createTime
* The creation time of the configured table association analysis rule.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ConfiguredTableAssociationAnalysisRule withCreateTime(java.util.Date createTime) {
setCreateTime(createTime);
return this;
}
/**
*
* The update time of the configured table association analysis rule.
*
*
* @param updateTime
* The update time of the configured table association analysis rule.
*/
public void setUpdateTime(java.util.Date updateTime) {
this.updateTime = updateTime;
}
/**
*
* The update time of the configured table association analysis rule.
*
*
* @return The update time of the configured table association analysis rule.
*/
public java.util.Date getUpdateTime() {
return this.updateTime;
}
/**
*
* The update time of the configured table association analysis rule.
*
*
* @param updateTime
* The update time of the configured table association analysis rule.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ConfiguredTableAssociationAnalysisRule withUpdateTime(java.util.Date updateTime) {
setUpdateTime(updateTime);
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 (getMembershipIdentifier() != null)
sb.append("MembershipIdentifier: ").append(getMembershipIdentifier()).append(",");
if (getConfiguredTableAssociationId() != null)
sb.append("ConfiguredTableAssociationId: ").append(getConfiguredTableAssociationId()).append(",");
if (getConfiguredTableAssociationArn() != null)
sb.append("ConfiguredTableAssociationArn: ").append(getConfiguredTableAssociationArn()).append(",");
if (getPolicy() != null)
sb.append("Policy: ").append(getPolicy()).append(",");
if (getType() != null)
sb.append("Type: ").append(getType()).append(",");
if (getCreateTime() != null)
sb.append("CreateTime: ").append(getCreateTime()).append(",");
if (getUpdateTime() != null)
sb.append("UpdateTime: ").append(getUpdateTime());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ConfiguredTableAssociationAnalysisRule == false)
return false;
ConfiguredTableAssociationAnalysisRule other = (ConfiguredTableAssociationAnalysisRule) obj;
if (other.getMembershipIdentifier() == null ^ this.getMembershipIdentifier() == null)
return false;
if (other.getMembershipIdentifier() != null && other.getMembershipIdentifier().equals(this.getMembershipIdentifier()) == false)
return false;
if (other.getConfiguredTableAssociationId() == null ^ this.getConfiguredTableAssociationId() == null)
return false;
if (other.getConfiguredTableAssociationId() != null && other.getConfiguredTableAssociationId().equals(this.getConfiguredTableAssociationId()) == false)
return false;
if (other.getConfiguredTableAssociationArn() == null ^ this.getConfiguredTableAssociationArn() == null)
return false;
if (other.getConfiguredTableAssociationArn() != null
&& other.getConfiguredTableAssociationArn().equals(this.getConfiguredTableAssociationArn()) == false)
return false;
if (other.getPolicy() == null ^ this.getPolicy() == null)
return false;
if (other.getPolicy() != null && other.getPolicy().equals(this.getPolicy()) == false)
return false;
if (other.getType() == null ^ this.getType() == null)
return false;
if (other.getType() != null && other.getType().equals(this.getType()) == false)
return false;
if (other.getCreateTime() == null ^ this.getCreateTime() == null)
return false;
if (other.getCreateTime() != null && other.getCreateTime().equals(this.getCreateTime()) == false)
return false;
if (other.getUpdateTime() == null ^ this.getUpdateTime() == null)
return false;
if (other.getUpdateTime() != null && other.getUpdateTime().equals(this.getUpdateTime()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getMembershipIdentifier() == null) ? 0 : getMembershipIdentifier().hashCode());
hashCode = prime * hashCode + ((getConfiguredTableAssociationId() == null) ? 0 : getConfiguredTableAssociationId().hashCode());
hashCode = prime * hashCode + ((getConfiguredTableAssociationArn() == null) ? 0 : getConfiguredTableAssociationArn().hashCode());
hashCode = prime * hashCode + ((getPolicy() == null) ? 0 : getPolicy().hashCode());
hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode());
hashCode = prime * hashCode + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
hashCode = prime * hashCode + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
return hashCode;
}
@Override
public ConfiguredTableAssociationAnalysisRule clone() {
try {
return (ConfiguredTableAssociationAnalysisRule) 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.ConfiguredTableAssociationAnalysisRuleMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}