com.amazonaws.services.cleanrooms.model.BatchGetSchemaAnalysisRuleRequest 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.AmazonWebServiceRequest;
/**
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class BatchGetSchemaAnalysisRuleRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The unique identifier of the collaboration that contains the schema analysis rule.
*
*/
private String collaborationIdentifier;
/**
*
* The information that's necessary to retrieve a schema analysis rule.
*
*/
private java.util.List schemaAnalysisRuleRequests;
/**
*
* The unique identifier of the collaboration that contains the schema analysis rule.
*
*
* @param collaborationIdentifier
* The unique identifier of the collaboration that contains the schema analysis rule.
*/
public void setCollaborationIdentifier(String collaborationIdentifier) {
this.collaborationIdentifier = collaborationIdentifier;
}
/**
*
* The unique identifier of the collaboration that contains the schema analysis rule.
*
*
* @return The unique identifier of the collaboration that contains the schema analysis rule.
*/
public String getCollaborationIdentifier() {
return this.collaborationIdentifier;
}
/**
*
* The unique identifier of the collaboration that contains the schema analysis rule.
*
*
* @param collaborationIdentifier
* The unique identifier of the collaboration that contains the schema analysis rule.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BatchGetSchemaAnalysisRuleRequest withCollaborationIdentifier(String collaborationIdentifier) {
setCollaborationIdentifier(collaborationIdentifier);
return this;
}
/**
*
* The information that's necessary to retrieve a schema analysis rule.
*
*
* @return The information that's necessary to retrieve a schema analysis rule.
*/
public java.util.List getSchemaAnalysisRuleRequests() {
return schemaAnalysisRuleRequests;
}
/**
*
* The information that's necessary to retrieve a schema analysis rule.
*
*
* @param schemaAnalysisRuleRequests
* The information that's necessary to retrieve a schema analysis rule.
*/
public void setSchemaAnalysisRuleRequests(java.util.Collection schemaAnalysisRuleRequests) {
if (schemaAnalysisRuleRequests == null) {
this.schemaAnalysisRuleRequests = null;
return;
}
this.schemaAnalysisRuleRequests = new java.util.ArrayList(schemaAnalysisRuleRequests);
}
/**
*
* The information that's necessary to retrieve a schema analysis rule.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setSchemaAnalysisRuleRequests(java.util.Collection)} or
* {@link #withSchemaAnalysisRuleRequests(java.util.Collection)} if you want to override the existing values.
*
*
* @param schemaAnalysisRuleRequests
* The information that's necessary to retrieve a schema analysis rule.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BatchGetSchemaAnalysisRuleRequest withSchemaAnalysisRuleRequests(SchemaAnalysisRuleRequest... schemaAnalysisRuleRequests) {
if (this.schemaAnalysisRuleRequests == null) {
setSchemaAnalysisRuleRequests(new java.util.ArrayList(schemaAnalysisRuleRequests.length));
}
for (SchemaAnalysisRuleRequest ele : schemaAnalysisRuleRequests) {
this.schemaAnalysisRuleRequests.add(ele);
}
return this;
}
/**
*
* The information that's necessary to retrieve a schema analysis rule.
*
*
* @param schemaAnalysisRuleRequests
* The information that's necessary to retrieve a schema analysis rule.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BatchGetSchemaAnalysisRuleRequest withSchemaAnalysisRuleRequests(java.util.Collection schemaAnalysisRuleRequests) {
setSchemaAnalysisRuleRequests(schemaAnalysisRuleRequests);
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 (getCollaborationIdentifier() != null)
sb.append("CollaborationIdentifier: ").append(getCollaborationIdentifier()).append(",");
if (getSchemaAnalysisRuleRequests() != null)
sb.append("SchemaAnalysisRuleRequests: ").append(getSchemaAnalysisRuleRequests());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof BatchGetSchemaAnalysisRuleRequest == false)
return false;
BatchGetSchemaAnalysisRuleRequest other = (BatchGetSchemaAnalysisRuleRequest) obj;
if (other.getCollaborationIdentifier() == null ^ this.getCollaborationIdentifier() == null)
return false;
if (other.getCollaborationIdentifier() != null && other.getCollaborationIdentifier().equals(this.getCollaborationIdentifier()) == false)
return false;
if (other.getSchemaAnalysisRuleRequests() == null ^ this.getSchemaAnalysisRuleRequests() == null)
return false;
if (other.getSchemaAnalysisRuleRequests() != null && other.getSchemaAnalysisRuleRequests().equals(this.getSchemaAnalysisRuleRequests()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getCollaborationIdentifier() == null) ? 0 : getCollaborationIdentifier().hashCode());
hashCode = prime * hashCode + ((getSchemaAnalysisRuleRequests() == null) ? 0 : getSchemaAnalysisRuleRequests().hashCode());
return hashCode;
}
@Override
public BatchGetSchemaAnalysisRuleRequest clone() {
return (BatchGetSchemaAnalysisRuleRequest) super.clone();
}
}