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

com.amazonaws.services.cleanrooms.model.AnalysisTemplateValidationStatusDetail 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;

/**
 * 

* The status details of the analysis template validation. Clean Rooms Differential Privacy uses a general-purpose query * structure to support complex SQL queries and validates whether an analysis template fits that general-purpose query * structure. Validation is performed when analysis templates are created and fetched. Because analysis templates are * immutable by design, we recommend that you create analysis templates after you associate the configured tables with * their analysis rule to your collaboration. *

*

* For more information, see https://docs.aws.amazon.com/clean-rooms/latest/userguide/analysis-rules-custom.html#custom-diff-privacy. *

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

* The type of validation that was performed. *

*/ private String type; /** *

* The status of the validation. *

*/ private String status; /** *

* The reasons for the validation results. *

*/ private java.util.List reasons; /** *

* The type of validation that was performed. *

* * @param type * The type of validation that was performed. * @see AnalysisTemplateValidationType */ public void setType(String type) { this.type = type; } /** *

* The type of validation that was performed. *

* * @return The type of validation that was performed. * @see AnalysisTemplateValidationType */ public String getType() { return this.type; } /** *

* The type of validation that was performed. *

* * @param type * The type of validation that was performed. * @return Returns a reference to this object so that method calls can be chained together. * @see AnalysisTemplateValidationType */ public AnalysisTemplateValidationStatusDetail withType(String type) { setType(type); return this; } /** *

* The type of validation that was performed. *

* * @param type * The type of validation that was performed. * @return Returns a reference to this object so that method calls can be chained together. * @see AnalysisTemplateValidationType */ public AnalysisTemplateValidationStatusDetail withType(AnalysisTemplateValidationType type) { this.type = type.toString(); return this; } /** *

* The status of the validation. *

* * @param status * The status of the validation. * @see AnalysisTemplateValidationStatus */ public void setStatus(String status) { this.status = status; } /** *

* The status of the validation. *

* * @return The status of the validation. * @see AnalysisTemplateValidationStatus */ public String getStatus() { return this.status; } /** *

* The status of the validation. *

* * @param status * The status of the validation. * @return Returns a reference to this object so that method calls can be chained together. * @see AnalysisTemplateValidationStatus */ public AnalysisTemplateValidationStatusDetail withStatus(String status) { setStatus(status); return this; } /** *

* The status of the validation. *

* * @param status * The status of the validation. * @return Returns a reference to this object so that method calls can be chained together. * @see AnalysisTemplateValidationStatus */ public AnalysisTemplateValidationStatusDetail withStatus(AnalysisTemplateValidationStatus status) { this.status = status.toString(); return this; } /** *

* The reasons for the validation results. *

* * @return The reasons for the validation results. */ public java.util.List getReasons() { return reasons; } /** *

* The reasons for the validation results. *

* * @param reasons * The reasons for the validation results. */ public void setReasons(java.util.Collection reasons) { if (reasons == null) { this.reasons = null; return; } this.reasons = new java.util.ArrayList(reasons); } /** *

* The reasons for the validation results. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setReasons(java.util.Collection)} or {@link #withReasons(java.util.Collection)} if you want to override * the existing values. *

* * @param reasons * The reasons for the validation results. * @return Returns a reference to this object so that method calls can be chained together. */ public AnalysisTemplateValidationStatusDetail withReasons(AnalysisTemplateValidationStatusReason... reasons) { if (this.reasons == null) { setReasons(new java.util.ArrayList(reasons.length)); } for (AnalysisTemplateValidationStatusReason ele : reasons) { this.reasons.add(ele); } return this; } /** *

* The reasons for the validation results. *

* * @param reasons * The reasons for the validation results. * @return Returns a reference to this object so that method calls can be chained together. */ public AnalysisTemplateValidationStatusDetail withReasons(java.util.Collection reasons) { setReasons(reasons); 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 (getType() != null) sb.append("Type: ").append(getType()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getReasons() != null) sb.append("Reasons: ").append(getReasons()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AnalysisTemplateValidationStatusDetail == false) return false; AnalysisTemplateValidationStatusDetail other = (AnalysisTemplateValidationStatusDetail) obj; if (other.getType() == null ^ this.getType() == null) return false; if (other.getType() != null && other.getType().equals(this.getType()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getReasons() == null ^ this.getReasons() == null) return false; if (other.getReasons() != null && other.getReasons().equals(this.getReasons()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getReasons() == null) ? 0 : getReasons().hashCode()); return hashCode; } @Override public AnalysisTemplateValidationStatusDetail clone() { try { return (AnalysisTemplateValidationStatusDetail) 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.AnalysisTemplateValidationStatusDetailMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy