com.amazonaws.services.cleanrooms.model.AnalysisTemplate 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 analysis template.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class AnalysisTemplate implements Serializable, Cloneable, StructuredPojo {
/**
*
* The identifier for the analysis template.
*
*/
private String id;
/**
*
* The Amazon Resource Name (ARN) of the analysis template.
*
*/
private String arn;
/**
*
* The unique ID for the associated collaboration of the analysis template.
*
*/
private String collaborationId;
/**
*
* The unique ARN for the analysis template’s associated collaboration.
*
*/
private String collaborationArn;
/**
*
* The identifier of a member who created the analysis template.
*
*/
private String membershipId;
/**
*
* The Amazon Resource Name (ARN) of the member who created the analysis template.
*
*/
private String membershipArn;
/**
*
* The description of the analysis template.
*
*/
private String description;
/**
*
* The name of the analysis template.
*
*/
private String name;
/**
*
* The time that the analysis template was created.
*
*/
private java.util.Date createTime;
/**
*
* The time that the analysis template was last updated.
*
*/
private java.util.Date updateTime;
/**
*
* The entire schema object.
*
*/
private AnalysisSchema schema;
/**
*
* The format of the analysis template.
*
*/
private String format;
/**
*
* The source of the analysis template.
*
*/
private AnalysisSource source;
/**
*
* The parameters of the analysis template.
*
*/
private java.util.List analysisParameters;
/**
*
* Information about the validations performed on the analysis template.
*
*/
private java.util.List validations;
/**
*
* The identifier for the analysis template.
*
*
* @param id
* The identifier for the analysis template.
*/
public void setId(String id) {
this.id = id;
}
/**
*
* The identifier for the analysis template.
*
*
* @return The identifier for the analysis template.
*/
public String getId() {
return this.id;
}
/**
*
* The identifier for the analysis template.
*
*
* @param id
* The identifier for the analysis template.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AnalysisTemplate withId(String id) {
setId(id);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the analysis template.
*
*
* @param arn
* The Amazon Resource Name (ARN) of the analysis template.
*/
public void setArn(String arn) {
this.arn = arn;
}
/**
*
* The Amazon Resource Name (ARN) of the analysis template.
*
*
* @return The Amazon Resource Name (ARN) of the analysis template.
*/
public String getArn() {
return this.arn;
}
/**
*
* The Amazon Resource Name (ARN) of the analysis template.
*
*
* @param arn
* The Amazon Resource Name (ARN) of the analysis template.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AnalysisTemplate withArn(String arn) {
setArn(arn);
return this;
}
/**
*
* The unique ID for the associated collaboration of the analysis template.
*
*
* @param collaborationId
* The unique ID for the associated collaboration of the analysis template.
*/
public void setCollaborationId(String collaborationId) {
this.collaborationId = collaborationId;
}
/**
*
* The unique ID for the associated collaboration of the analysis template.
*
*
* @return The unique ID for the associated collaboration of the analysis template.
*/
public String getCollaborationId() {
return this.collaborationId;
}
/**
*
* The unique ID for the associated collaboration of the analysis template.
*
*
* @param collaborationId
* The unique ID for the associated collaboration of the analysis template.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AnalysisTemplate withCollaborationId(String collaborationId) {
setCollaborationId(collaborationId);
return this;
}
/**
*
* The unique ARN for the analysis template’s associated collaboration.
*
*
* @param collaborationArn
* The unique ARN for the analysis template’s associated collaboration.
*/
public void setCollaborationArn(String collaborationArn) {
this.collaborationArn = collaborationArn;
}
/**
*
* The unique ARN for the analysis template’s associated collaboration.
*
*
* @return The unique ARN for the analysis template’s associated collaboration.
*/
public String getCollaborationArn() {
return this.collaborationArn;
}
/**
*
* The unique ARN for the analysis template’s associated collaboration.
*
*
* @param collaborationArn
* The unique ARN for the analysis template’s associated collaboration.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AnalysisTemplate withCollaborationArn(String collaborationArn) {
setCollaborationArn(collaborationArn);
return this;
}
/**
*
* The identifier of a member who created the analysis template.
*
*
* @param membershipId
* The identifier of a member who created the analysis template.
*/
public void setMembershipId(String membershipId) {
this.membershipId = membershipId;
}
/**
*
* The identifier of a member who created the analysis template.
*
*
* @return The identifier of a member who created the analysis template.
*/
public String getMembershipId() {
return this.membershipId;
}
/**
*
* The identifier of a member who created the analysis template.
*
*
* @param membershipId
* The identifier of a member who created the analysis template.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AnalysisTemplate withMembershipId(String membershipId) {
setMembershipId(membershipId);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the member who created the analysis template.
*
*
* @param membershipArn
* The Amazon Resource Name (ARN) of the member who created the analysis template.
*/
public void setMembershipArn(String membershipArn) {
this.membershipArn = membershipArn;
}
/**
*
* The Amazon Resource Name (ARN) of the member who created the analysis template.
*
*
* @return The Amazon Resource Name (ARN) of the member who created the analysis template.
*/
public String getMembershipArn() {
return this.membershipArn;
}
/**
*
* The Amazon Resource Name (ARN) of the member who created the analysis template.
*
*
* @param membershipArn
* The Amazon Resource Name (ARN) of the member who created the analysis template.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AnalysisTemplate withMembershipArn(String membershipArn) {
setMembershipArn(membershipArn);
return this;
}
/**
*
* The description of the analysis template.
*
*
* @param description
* The description of the analysis template.
*/
public void setDescription(String description) {
this.description = description;
}
/**
*
* The description of the analysis template.
*
*
* @return The description of the analysis template.
*/
public String getDescription() {
return this.description;
}
/**
*
* The description of the analysis template.
*
*
* @param description
* The description of the analysis template.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AnalysisTemplate withDescription(String description) {
setDescription(description);
return this;
}
/**
*
* The name of the analysis template.
*
*
* @param name
* The name of the analysis template.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* The name of the analysis template.
*
*
* @return The name of the analysis template.
*/
public String getName() {
return this.name;
}
/**
*
* The name of the analysis template.
*
*
* @param name
* The name of the analysis template.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AnalysisTemplate withName(String name) {
setName(name);
return this;
}
/**
*
* The time that the analysis template was created.
*
*
* @param createTime
* The time that the analysis template was created.
*/
public void setCreateTime(java.util.Date createTime) {
this.createTime = createTime;
}
/**
*
* The time that the analysis template was created.
*
*
* @return The time that the analysis template was created.
*/
public java.util.Date getCreateTime() {
return this.createTime;
}
/**
*
* The time that the analysis template was created.
*
*
* @param createTime
* The time that the analysis template was created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AnalysisTemplate withCreateTime(java.util.Date createTime) {
setCreateTime(createTime);
return this;
}
/**
*
* The time that the analysis template was last updated.
*
*
* @param updateTime
* The time that the analysis template was last updated.
*/
public void setUpdateTime(java.util.Date updateTime) {
this.updateTime = updateTime;
}
/**
*
* The time that the analysis template was last updated.
*
*
* @return The time that the analysis template was last updated.
*/
public java.util.Date getUpdateTime() {
return this.updateTime;
}
/**
*
* The time that the analysis template was last updated.
*
*
* @param updateTime
* The time that the analysis template was last updated.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AnalysisTemplate withUpdateTime(java.util.Date updateTime) {
setUpdateTime(updateTime);
return this;
}
/**
*
* The entire schema object.
*
*
* @param schema
* The entire schema object.
*/
public void setSchema(AnalysisSchema schema) {
this.schema = schema;
}
/**
*
* The entire schema object.
*
*
* @return The entire schema object.
*/
public AnalysisSchema getSchema() {
return this.schema;
}
/**
*
* The entire schema object.
*
*
* @param schema
* The entire schema object.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AnalysisTemplate withSchema(AnalysisSchema schema) {
setSchema(schema);
return this;
}
/**
*
* The format of the analysis template.
*
*
* @param format
* The format of the analysis template.
* @see AnalysisFormat
*/
public void setFormat(String format) {
this.format = format;
}
/**
*
* The format of the analysis template.
*
*
* @return The format of the analysis template.
* @see AnalysisFormat
*/
public String getFormat() {
return this.format;
}
/**
*
* The format of the analysis template.
*
*
* @param format
* The format of the analysis template.
* @return Returns a reference to this object so that method calls can be chained together.
* @see AnalysisFormat
*/
public AnalysisTemplate withFormat(String format) {
setFormat(format);
return this;
}
/**
*
* The format of the analysis template.
*
*
* @param format
* The format of the analysis template.
* @return Returns a reference to this object so that method calls can be chained together.
* @see AnalysisFormat
*/
public AnalysisTemplate withFormat(AnalysisFormat format) {
this.format = format.toString();
return this;
}
/**
*
* The source of the analysis template.
*
*
* @param source
* The source of the analysis template.
*/
public void setSource(AnalysisSource source) {
this.source = source;
}
/**
*
* The source of the analysis template.
*
*
* @return The source of the analysis template.
*/
public AnalysisSource getSource() {
return this.source;
}
/**
*
* The source of the analysis template.
*
*
* @param source
* The source of the analysis template.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AnalysisTemplate withSource(AnalysisSource source) {
setSource(source);
return this;
}
/**
*
* The parameters of the analysis template.
*
*
* @return The parameters of the analysis template.
*/
public java.util.List getAnalysisParameters() {
return analysisParameters;
}
/**
*
* The parameters of the analysis template.
*
*
* @param analysisParameters
* The parameters of the analysis template.
*/
public void setAnalysisParameters(java.util.Collection analysisParameters) {
if (analysisParameters == null) {
this.analysisParameters = null;
return;
}
this.analysisParameters = new java.util.ArrayList(analysisParameters);
}
/**
*
* The parameters of the analysis template.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setAnalysisParameters(java.util.Collection)} or {@link #withAnalysisParameters(java.util.Collection)} if
* you want to override the existing values.
*
*
* @param analysisParameters
* The parameters of the analysis template.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AnalysisTemplate withAnalysisParameters(AnalysisParameter... analysisParameters) {
if (this.analysisParameters == null) {
setAnalysisParameters(new java.util.ArrayList(analysisParameters.length));
}
for (AnalysisParameter ele : analysisParameters) {
this.analysisParameters.add(ele);
}
return this;
}
/**
*
* The parameters of the analysis template.
*
*
* @param analysisParameters
* The parameters of the analysis template.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AnalysisTemplate withAnalysisParameters(java.util.Collection analysisParameters) {
setAnalysisParameters(analysisParameters);
return this;
}
/**
*
* Information about the validations performed on the analysis template.
*
*
* @return Information about the validations performed on the analysis template.
*/
public java.util.List getValidations() {
return validations;
}
/**
*
* Information about the validations performed on the analysis template.
*
*
* @param validations
* Information about the validations performed on the analysis template.
*/
public void setValidations(java.util.Collection validations) {
if (validations == null) {
this.validations = null;
return;
}
this.validations = new java.util.ArrayList(validations);
}
/**
*
* Information about the validations performed on the analysis template.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setValidations(java.util.Collection)} or {@link #withValidations(java.util.Collection)} if you want to
* override the existing values.
*
*
* @param validations
* Information about the validations performed on the analysis template.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AnalysisTemplate withValidations(AnalysisTemplateValidationStatusDetail... validations) {
if (this.validations == null) {
setValidations(new java.util.ArrayList(validations.length));
}
for (AnalysisTemplateValidationStatusDetail ele : validations) {
this.validations.add(ele);
}
return this;
}
/**
*
* Information about the validations performed on the analysis template.
*
*
* @param validations
* Information about the validations performed on the analysis template.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AnalysisTemplate withValidations(java.util.Collection validations) {
setValidations(validations);
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 (getId() != null)
sb.append("Id: ").append(getId()).append(",");
if (getArn() != null)
sb.append("Arn: ").append(getArn()).append(",");
if (getCollaborationId() != null)
sb.append("CollaborationId: ").append(getCollaborationId()).append(",");
if (getCollaborationArn() != null)
sb.append("CollaborationArn: ").append(getCollaborationArn()).append(",");
if (getMembershipId() != null)
sb.append("MembershipId: ").append(getMembershipId()).append(",");
if (getMembershipArn() != null)
sb.append("MembershipArn: ").append(getMembershipArn()).append(",");
if (getDescription() != null)
sb.append("Description: ").append(getDescription()).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 (getSchema() != null)
sb.append("Schema: ").append(getSchema()).append(",");
if (getFormat() != null)
sb.append("Format: ").append(getFormat()).append(",");
if (getSource() != null)
sb.append("Source: ").append("***Sensitive Data Redacted***").append(",");
if (getAnalysisParameters() != null)
sb.append("AnalysisParameters: ").append("***Sensitive Data Redacted***").append(",");
if (getValidations() != null)
sb.append("Validations: ").append(getValidations());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof AnalysisTemplate == false)
return false;
AnalysisTemplate other = (AnalysisTemplate) obj;
if (other.getId() == null ^ this.getId() == null)
return false;
if (other.getId() != null && other.getId().equals(this.getId()) == false)
return false;
if (other.getArn() == null ^ this.getArn() == null)
return false;
if (other.getArn() != null && other.getArn().equals(this.getArn()) == false)
return false;
if (other.getCollaborationId() == null ^ this.getCollaborationId() == null)
return false;
if (other.getCollaborationId() != null && other.getCollaborationId().equals(this.getCollaborationId()) == false)
return false;
if (other.getCollaborationArn() == null ^ this.getCollaborationArn() == null)
return false;
if (other.getCollaborationArn() != null && other.getCollaborationArn().equals(this.getCollaborationArn()) == false)
return false;
if (other.getMembershipId() == null ^ this.getMembershipId() == null)
return false;
if (other.getMembershipId() != null && other.getMembershipId().equals(this.getMembershipId()) == false)
return false;
if (other.getMembershipArn() == null ^ this.getMembershipArn() == null)
return false;
if (other.getMembershipArn() != null && other.getMembershipArn().equals(this.getMembershipArn()) == false)
return false;
if (other.getDescription() == null ^ this.getDescription() == null)
return false;
if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == 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.getSchema() == null ^ this.getSchema() == null)
return false;
if (other.getSchema() != null && other.getSchema().equals(this.getSchema()) == false)
return false;
if (other.getFormat() == null ^ this.getFormat() == null)
return false;
if (other.getFormat() != null && other.getFormat().equals(this.getFormat()) == false)
return false;
if (other.getSource() == null ^ this.getSource() == null)
return false;
if (other.getSource() != null && other.getSource().equals(this.getSource()) == false)
return false;
if (other.getAnalysisParameters() == null ^ this.getAnalysisParameters() == null)
return false;
if (other.getAnalysisParameters() != null && other.getAnalysisParameters().equals(this.getAnalysisParameters()) == false)
return false;
if (other.getValidations() == null ^ this.getValidations() == null)
return false;
if (other.getValidations() != null && other.getValidations().equals(this.getValidations()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode());
hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode());
hashCode = prime * hashCode + ((getCollaborationId() == null) ? 0 : getCollaborationId().hashCode());
hashCode = prime * hashCode + ((getCollaborationArn() == null) ? 0 : getCollaborationArn().hashCode());
hashCode = prime * hashCode + ((getMembershipId() == null) ? 0 : getMembershipId().hashCode());
hashCode = prime * hashCode + ((getMembershipArn() == null) ? 0 : getMembershipArn().hashCode());
hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().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 + ((getSchema() == null) ? 0 : getSchema().hashCode());
hashCode = prime * hashCode + ((getFormat() == null) ? 0 : getFormat().hashCode());
hashCode = prime * hashCode + ((getSource() == null) ? 0 : getSource().hashCode());
hashCode = prime * hashCode + ((getAnalysisParameters() == null) ? 0 : getAnalysisParameters().hashCode());
hashCode = prime * hashCode + ((getValidations() == null) ? 0 : getValidations().hashCode());
return hashCode;
}
@Override
public AnalysisTemplate clone() {
try {
return (AnalysisTemplate) 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.AnalysisTemplateMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}