/* * Copyright 2018-2023 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.omics.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; import com.amazonaws.auth.SignerTypeAware; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class StartVariantImportJobRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable, SignerTypeAware { /** *

* The destination variant store for the job. *

*/ private String destinationName; /** *

* A service role for the job. *

*/ private String roleArn; /** *

* Items to import. *

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

* The job's left normalization setting. *

*/ private Boolean runLeftNormalization; /** *

* The annotation schema generated by the parsed annotation data. *

*/ private java.util.Map annotationFields; /** *

* The destination variant store for the job. *

* * @param destinationName * The destination variant store for the job. */ public void setDestinationName(String destinationName) { this.destinationName = destinationName; } /** *

* The destination variant store for the job. *

* * @return The destination variant store for the job. */ public String getDestinationName() { return this.destinationName; } /** *

* The destination variant store for the job. *

* * @param destinationName * The destination variant store for the job. * @return Returns a reference to this object so that method calls can be chained together. */ public StartVariantImportJobRequest withDestinationName(String destinationName) { setDestinationName(destinationName); return this; } /** *

* A service role for the job. *

* * @param roleArn * A service role for the job. */ public void setRoleArn(String roleArn) { this.roleArn = roleArn; } /** *

* A service role for the job. *

* * @return A service role for the job. */ public String getRoleArn() { return this.roleArn; } /** *

* A service role for the job. *

* * @param roleArn * A service role for the job. * @return Returns a reference to this object so that method calls can be chained together. */ public StartVariantImportJobRequest withRoleArn(String roleArn) { setRoleArn(roleArn); return this; } /** *

* Items to import. *

* * @return Items to import. */ public java.util.List getItems() { return items; } /** *

* Items to import. *

* * @param items * Items to import. */ public void setItems(java.util.Collection items) { if (items == null) { this.items = null; return; } this.items = new java.util.ArrayList(items); } /** *

* Items to import. *

*

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

* * @param items * Items to import. * @return Returns a reference to this object so that method calls can be chained together. */ public StartVariantImportJobRequest withItems(VariantImportItemSource... items) { if (this.items == null) { setItems(new java.util.ArrayList(items.length)); } for (VariantImportItemSource ele : items) { this.items.add(ele); } return this; } /** *

* Items to import. *

* * @param items * Items to import. * @return Returns a reference to this object so that method calls can be chained together. */ public StartVariantImportJobRequest withItems(java.util.Collection items) { setItems(items); return this; } /** *

* The job's left normalization setting. *

* * @param runLeftNormalization * The job's left normalization setting. */ public void setRunLeftNormalization(Boolean runLeftNormalization) { this.runLeftNormalization = runLeftNormalization; } /** *

* The job's left normalization setting. *

* * @return The job's left normalization setting. */ public Boolean getRunLeftNormalization() { return this.runLeftNormalization; } /** *

* The job's left normalization setting. *

* * @param runLeftNormalization * The job's left normalization setting. * @return Returns a reference to this object so that method calls can be chained together. */ public StartVariantImportJobRequest withRunLeftNormalization(Boolean runLeftNormalization) { setRunLeftNormalization(runLeftNormalization); return this; } /** *

* The job's left normalization setting. *

* * @return The job's left normalization setting. */ public Boolean isRunLeftNormalization() { return this.runLeftNormalization; } /** *

* The annotation schema generated by the parsed annotation data. *

* * @return The annotation schema generated by the parsed annotation data. */ public java.util.Map getAnnotationFields() { return annotationFields; } /** *

* The annotation schema generated by the parsed annotation data. *

* * @param annotationFields * The annotation schema generated by the parsed annotation data. */ public void setAnnotationFields(java.util.Map annotationFields) { this.annotationFields = annotationFields; } /** *

* The annotation schema generated by the parsed annotation data. *

* * @param annotationFields * The annotation schema generated by the parsed annotation data. * @return Returns a reference to this object so that method calls can be chained together. */ public StartVariantImportJobRequest withAnnotationFields(java.util.Map annotationFields) { setAnnotationFields(annotationFields); return this; } /** * Add a single AnnotationFields entry * * @see StartVariantImportJobRequest#withAnnotationFields * @returns a reference to this object so that method calls can be chained together. */ public StartVariantImportJobRequest addAnnotationFieldsEntry(String key, String value) { if (null == this.annotationFields) { this.annotationFields = new java.util.HashMap(); } if (this.annotationFields.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.annotationFields.put(key, value); return this; } /** * Removes all the entries added into AnnotationFields. * * @return Returns a reference to this object so that method calls can be chained together. */ public StartVariantImportJobRequest clearAnnotationFieldsEntries() { this.annotationFields = null; 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 (getDestinationName() != null) sb.append("DestinationName: ").append(getDestinationName()).append(","); if (getRoleArn() != null) sb.append("RoleArn: ").append(getRoleArn()).append(","); if (getItems() != null) sb.append("Items: ").append(getItems()).append(","); if (getRunLeftNormalization() != null) sb.append("RunLeftNormalization: ").append(getRunLeftNormalization()).append(","); if (getAnnotationFields() != null) sb.append("AnnotationFields: ").append(getAnnotationFields()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof StartVariantImportJobRequest == false) return false; StartVariantImportJobRequest other = (StartVariantImportJobRequest) obj; if (other.getDestinationName() == null ^ this.getDestinationName() == null) return false; if (other.getDestinationName() != null && other.getDestinationName().equals(this.getDestinationName()) == false) return false; if (other.getRoleArn() == null ^ this.getRoleArn() == null) return false; if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == false) return false; if (other.getItems() == null ^ this.getItems() == null) return false; if (other.getItems() != null && other.getItems().equals(this.getItems()) == false) return false; if (other.getRunLeftNormalization() == null ^ this.getRunLeftNormalization() == null) return false; if (other.getRunLeftNormalization() != null && other.getRunLeftNormalization().equals(this.getRunLeftNormalization()) == false) return false; if (other.getAnnotationFields() == null ^ this.getAnnotationFields() == null) return false; if (other.getAnnotationFields() != null && other.getAnnotationFields().equals(this.getAnnotationFields()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDestinationName() == null) ? 0 : getDestinationName().hashCode()); hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); hashCode = prime * hashCode + ((getItems() == null) ? 0 : getItems().hashCode()); hashCode = prime * hashCode + ((getRunLeftNormalization() == null) ? 0 : getRunLeftNormalization().hashCode()); hashCode = prime * hashCode + ((getAnnotationFields() == null) ? 0 : getAnnotationFields().hashCode()); return hashCode; } @Override public StartVariantImportJobRequest clone() { return (StartVariantImportJobRequest) super.clone(); } @Override public String getSignerType() { return "AWS4SignerType"; } }