/* * 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 StartAnnotationImportJobRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable, SignerTypeAware { /** *

* A destination annotation store for the job. *

*/ private String destinationName; /** *

* A service role for the job. *

*/ private String roleArn; /** *

* Items to import. *

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

* Formatting options for the annotation file. *

*/ private FormatOptions formatOptions; /** *

* The job's left normalization setting. *

*/ private Boolean runLeftNormalization; /** *

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

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

* A destination annotation store for the job. *

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

* A destination annotation store for the job. *

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

* A destination annotation store for the job. *

* * @param destinationName * A destination annotation store for the job. * @return Returns a reference to this object so that method calls can be chained together. */ public StartAnnotationImportJobRequest 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 StartAnnotationImportJobRequest 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 StartAnnotationImportJobRequest withItems(AnnotationImportItemSource... items) { if (this.items == null) { setItems(new java.util.ArrayList(items.length)); } for (AnnotationImportItemSource 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 StartAnnotationImportJobRequest withItems(java.util.Collection items) { setItems(items); return this; } /** *

* Formatting options for the annotation file. *

* * @param formatOptions * Formatting options for the annotation file. */ public void setFormatOptions(FormatOptions formatOptions) { this.formatOptions = formatOptions; } /** *

* Formatting options for the annotation file. *

* * @return Formatting options for the annotation file. */ public FormatOptions getFormatOptions() { return this.formatOptions; } /** *

* Formatting options for the annotation file. *

* * @param formatOptions * Formatting options for the annotation file. * @return Returns a reference to this object so that method calls can be chained together. */ public StartAnnotationImportJobRequest withFormatOptions(FormatOptions formatOptions) { setFormatOptions(formatOptions); 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 StartAnnotationImportJobRequest 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 StartAnnotationImportJobRequest withAnnotationFields(java.util.Map annotationFields) { setAnnotationFields(annotationFields); return this; } /** * Add a single AnnotationFields entry * * @see StartAnnotationImportJobRequest#withAnnotationFields * @returns a reference to this object so that method calls can be chained together. */ public StartAnnotationImportJobRequest 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 StartAnnotationImportJobRequest 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 (getFormatOptions() != null) sb.append("FormatOptions: ").append(getFormatOptions()).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 StartAnnotationImportJobRequest == false) return false; StartAnnotationImportJobRequest other = (StartAnnotationImportJobRequest) 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.getFormatOptions() == null ^ this.getFormatOptions() == null) return false; if (other.getFormatOptions() != null && other.getFormatOptions().equals(this.getFormatOptions()) == 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 + ((getFormatOptions() == null) ? 0 : getFormatOptions().hashCode()); hashCode = prime * hashCode + ((getRunLeftNormalization() == null) ? 0 : getRunLeftNormalization().hashCode()); hashCode = prime * hashCode + ((getAnnotationFields() == null) ? 0 : getAnnotationFields().hashCode()); return hashCode; } @Override public StartAnnotationImportJobRequest clone() { return (StartAnnotationImportJobRequest) super.clone(); } @Override public String getSignerType() { return "AWS4SignerType"; } }