/* * 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.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* A variant import job. *

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

* The job's ID. *

*/ private String id; /** *

* The job's destination variant store. *

*/ private String destinationName; /** *

* The job's service role ARN. *

*/ private String roleArn; /** *

* The job's status. *

*/ private String status; /** *

* When the job was created. *

*/ private java.util.Date creationTime; /** *

* When the job was updated. *

*/ private java.util.Date updateTime; /** *

* When the job completed. *

*/ private java.util.Date completionTime; /** *

* The job's left normalization setting. *

*/ private Boolean runLeftNormalization; /** *

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

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

* The job's ID. *

* * @param id * The job's ID. */ public void setId(String id) { this.id = id; } /** *

* The job's ID. *

* * @return The job's ID. */ public String getId() { return this.id; } /** *

* The job's ID. *

* * @param id * The job's ID. * @return Returns a reference to this object so that method calls can be chained together. */ public VariantImportJobItem withId(String id) { setId(id); return this; } /** *

* The job's destination variant store. *

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

* The job's destination variant store. *

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

* The job's destination variant store. *

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

* The job's service role ARN. *

* * @param roleArn * The job's service role ARN. */ public void setRoleArn(String roleArn) { this.roleArn = roleArn; } /** *

* The job's service role ARN. *

* * @return The job's service role ARN. */ public String getRoleArn() { return this.roleArn; } /** *

* The job's service role ARN. *

* * @param roleArn * The job's service role ARN. * @return Returns a reference to this object so that method calls can be chained together. */ public VariantImportJobItem withRoleArn(String roleArn) { setRoleArn(roleArn); return this; } /** *

* The job's status. *

* * @param status * The job's status. * @see JobStatus */ public void setStatus(String status) { this.status = status; } /** *

* The job's status. *

* * @return The job's status. * @see JobStatus */ public String getStatus() { return this.status; } /** *

* The job's status. *

* * @param status * The job's status. * @return Returns a reference to this object so that method calls can be chained together. * @see JobStatus */ public VariantImportJobItem withStatus(String status) { setStatus(status); return this; } /** *

* The job's status. *

* * @param status * The job's status. * @return Returns a reference to this object so that method calls can be chained together. * @see JobStatus */ public VariantImportJobItem withStatus(JobStatus status) { this.status = status.toString(); return this; } /** *

* When the job was created. *

* * @param creationTime * When the job was created. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** *

* When the job was created. *

* * @return When the job was created. */ public java.util.Date getCreationTime() { return this.creationTime; } /** *

* When the job was created. *

* * @param creationTime * When the job was created. * @return Returns a reference to this object so that method calls can be chained together. */ public VariantImportJobItem withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** *

* When the job was updated. *

* * @param updateTime * When the job was updated. */ public void setUpdateTime(java.util.Date updateTime) { this.updateTime = updateTime; } /** *

* When the job was updated. *

* * @return When the job was updated. */ public java.util.Date getUpdateTime() { return this.updateTime; } /** *

* When the job was updated. *

* * @param updateTime * When the job was updated. * @return Returns a reference to this object so that method calls can be chained together. */ public VariantImportJobItem withUpdateTime(java.util.Date updateTime) { setUpdateTime(updateTime); return this; } /** *

* When the job completed. *

* * @param completionTime * When the job completed. */ public void setCompletionTime(java.util.Date completionTime) { this.completionTime = completionTime; } /** *

* When the job completed. *

* * @return When the job completed. */ public java.util.Date getCompletionTime() { return this.completionTime; } /** *

* When the job completed. *

* * @param completionTime * When the job completed. * @return Returns a reference to this object so that method calls can be chained together. */ public VariantImportJobItem withCompletionTime(java.util.Date completionTime) { setCompletionTime(completionTime); 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 VariantImportJobItem 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 VariantImportJobItem withAnnotationFields(java.util.Map annotationFields) { setAnnotationFields(annotationFields); return this; } /** * Add a single AnnotationFields entry * * @see VariantImportJobItem#withAnnotationFields * @returns a reference to this object so that method calls can be chained together. */ public VariantImportJobItem 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 VariantImportJobItem 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 (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getDestinationName() != null) sb.append("DestinationName: ").append(getDestinationName()).append(","); if (getRoleArn() != null) sb.append("RoleArn: ").append(getRoleArn()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getUpdateTime() != null) sb.append("UpdateTime: ").append(getUpdateTime()).append(","); if (getCompletionTime() != null) sb.append("CompletionTime: ").append(getCompletionTime()).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 VariantImportJobItem == false) return false; VariantImportJobItem other = (VariantImportJobItem) obj; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; 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.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getCreationTime() == null ^ this.getCreationTime() == null) return false; if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == 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.getCompletionTime() == null ^ this.getCompletionTime() == null) return false; if (other.getCompletionTime() != null && other.getCompletionTime().equals(this.getCompletionTime()) == 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 + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getDestinationName() == null) ? 0 : getDestinationName().hashCode()); hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode()); hashCode = prime * hashCode + ((getCompletionTime() == null) ? 0 : getCompletionTime().hashCode()); hashCode = prime * hashCode + ((getRunLeftNormalization() == null) ? 0 : getRunLeftNormalization().hashCode()); hashCode = prime * hashCode + ((getAnnotationFields() == null) ? 0 : getAnnotationFields().hashCode()); return hashCode; } @Override public VariantImportJobItem clone() { try { return (VariantImportJobItem) 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.omics.model.transform.VariantImportJobItemMarshaller.getInstance().marshall(this, protocolMarshaller); } }