All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.cleanrooms.model.AnalysisRule Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Clean Rooms module holds the client classes that are used for communicating with AWS Clean Rooms Service

There is a newer version: 1.12.778
Show newest version
/*
 * 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;

/**
 * 

* A specification about how data from the configured table can be used in a query. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AnalysisRule implements Serializable, Cloneable, StructuredPojo { /** *

* The unique ID for the associated collaboration. *

*/ private String collaborationId; /** *

* The type of analysis rule. *

*/ private String type; /** *

* The name for the analysis rule. *

*/ private String name; /** *

* The time the analysis rule was created. *

*/ private java.util.Date createTime; /** *

* The time the analysis rule was last updated. *

*/ private java.util.Date updateTime; /** *

* A policy that describes the associated data usage limitations. *

*/ private AnalysisRulePolicy policy; /** *

* The unique ID for the associated collaboration. *

* * @param collaborationId * The unique ID for the associated collaboration. */ public void setCollaborationId(String collaborationId) { this.collaborationId = collaborationId; } /** *

* The unique ID for the associated collaboration. *

* * @return The unique ID for the associated collaboration. */ public String getCollaborationId() { return this.collaborationId; } /** *

* The unique ID for the associated collaboration. *

* * @param collaborationId * The unique ID for the associated collaboration. * @return Returns a reference to this object so that method calls can be chained together. */ public AnalysisRule withCollaborationId(String collaborationId) { setCollaborationId(collaborationId); return this; } /** *

* The type of analysis rule. *

* * @param type * The type of analysis rule. * @see AnalysisRuleType */ public void setType(String type) { this.type = type; } /** *

* The type of analysis rule. *

* * @return The type of analysis rule. * @see AnalysisRuleType */ public String getType() { return this.type; } /** *

* The type of analysis rule. *

* * @param type * The type of analysis rule. * @return Returns a reference to this object so that method calls can be chained together. * @see AnalysisRuleType */ public AnalysisRule withType(String type) { setType(type); return this; } /** *

* The type of analysis rule. *

* * @param type * The type of analysis rule. * @return Returns a reference to this object so that method calls can be chained together. * @see AnalysisRuleType */ public AnalysisRule withType(AnalysisRuleType type) { this.type = type.toString(); return this; } /** *

* The name for the analysis rule. *

* * @param name * The name for the analysis rule. */ public void setName(String name) { this.name = name; } /** *

* The name for the analysis rule. *

* * @return The name for the analysis rule. */ public String getName() { return this.name; } /** *

* The name for the analysis rule. *

* * @param name * The name for the analysis rule. * @return Returns a reference to this object so that method calls can be chained together. */ public AnalysisRule withName(String name) { setName(name); return this; } /** *

* The time the analysis rule was created. *

* * @param createTime * The time the analysis rule was created. */ public void setCreateTime(java.util.Date createTime) { this.createTime = createTime; } /** *

* The time the analysis rule was created. *

* * @return The time the analysis rule was created. */ public java.util.Date getCreateTime() { return this.createTime; } /** *

* The time the analysis rule was created. *

* * @param createTime * The time the analysis rule was created. * @return Returns a reference to this object so that method calls can be chained together. */ public AnalysisRule withCreateTime(java.util.Date createTime) { setCreateTime(createTime); return this; } /** *

* The time the analysis rule was last updated. *

* * @param updateTime * The time the analysis rule was last updated. */ public void setUpdateTime(java.util.Date updateTime) { this.updateTime = updateTime; } /** *

* The time the analysis rule was last updated. *

* * @return The time the analysis rule was last updated. */ public java.util.Date getUpdateTime() { return this.updateTime; } /** *

* The time the analysis rule was last updated. *

* * @param updateTime * The time the analysis rule was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public AnalysisRule withUpdateTime(java.util.Date updateTime) { setUpdateTime(updateTime); return this; } /** *

* A policy that describes the associated data usage limitations. *

* * @param policy * A policy that describes the associated data usage limitations. */ public void setPolicy(AnalysisRulePolicy policy) { this.policy = policy; } /** *

* A policy that describes the associated data usage limitations. *

* * @return A policy that describes the associated data usage limitations. */ public AnalysisRulePolicy getPolicy() { return this.policy; } /** *

* A policy that describes the associated data usage limitations. *

* * @param policy * A policy that describes the associated data usage limitations. * @return Returns a reference to this object so that method calls can be chained together. */ public AnalysisRule withPolicy(AnalysisRulePolicy policy) { setPolicy(policy); 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 (getCollaborationId() != null) sb.append("CollaborationId: ").append(getCollaborationId()).append(","); if (getType() != null) sb.append("Type: ").append(getType()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getCreateTime() != null) sb.append("CreateTime: ").append(getCreateTime()).append(","); if (getUpdateTime() != null) sb.append("UpdateTime: ").append(getUpdateTime()).append(","); if (getPolicy() != null) sb.append("Policy: ").append(getPolicy()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AnalysisRule == false) return false; AnalysisRule other = (AnalysisRule) obj; if (other.getCollaborationId() == null ^ this.getCollaborationId() == null) return false; if (other.getCollaborationId() != null && other.getCollaborationId().equals(this.getCollaborationId()) == 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.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == 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; if (other.getPolicy() == null ^ this.getPolicy() == null) return false; if (other.getPolicy() != null && other.getPolicy().equals(this.getPolicy()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCollaborationId() == null) ? 0 : getCollaborationId().hashCode()); hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); hashCode = prime * hashCode + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode()); hashCode = prime * hashCode + ((getPolicy() == null) ? 0 : getPolicy().hashCode()); return hashCode; } @Override public AnalysisRule clone() { try { return (AnalysisRule) 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.AnalysisRuleMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy