/* * 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; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class GetReadSetActivationJobResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable { /** *

* The job's ID. *

*/ private String id; /** *

* The job's sequence store ID. *

*/ private String sequenceStoreId; /** *

* The job's status. *

*/ private String status; /** *

* The job's status message. *

*/ private String statusMessage; /** *

* When the job was created. *

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

* When the job completed. *

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

* The job's source files. *

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

* 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 GetReadSetActivationJobResult withId(String id) { setId(id); return this; } /** *

* The job's sequence store ID. *

* * @param sequenceStoreId * The job's sequence store ID. */ public void setSequenceStoreId(String sequenceStoreId) { this.sequenceStoreId = sequenceStoreId; } /** *

* The job's sequence store ID. *

* * @return The job's sequence store ID. */ public String getSequenceStoreId() { return this.sequenceStoreId; } /** *

* The job's sequence store ID. *

* * @param sequenceStoreId * The job's sequence store ID. * @return Returns a reference to this object so that method calls can be chained together. */ public GetReadSetActivationJobResult withSequenceStoreId(String sequenceStoreId) { setSequenceStoreId(sequenceStoreId); return this; } /** *

* The job's status. *

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

* The job's status. *

* * @return The job's status. * @see ReadSetActivationJobStatus */ 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 ReadSetActivationJobStatus */ public GetReadSetActivationJobResult 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 ReadSetActivationJobStatus */ public GetReadSetActivationJobResult withStatus(ReadSetActivationJobStatus status) { this.status = status.toString(); return this; } /** *

* The job's status message. *

* * @param statusMessage * The job's status message. */ public void setStatusMessage(String statusMessage) { this.statusMessage = statusMessage; } /** *

* The job's status message. *

* * @return The job's status message. */ public String getStatusMessage() { return this.statusMessage; } /** *

* The job's status message. *

* * @param statusMessage * The job's status message. * @return Returns a reference to this object so that method calls can be chained together. */ public GetReadSetActivationJobResult withStatusMessage(String statusMessage) { setStatusMessage(statusMessage); 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 GetReadSetActivationJobResult withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); 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 GetReadSetActivationJobResult withCompletionTime(java.util.Date completionTime) { setCompletionTime(completionTime); return this; } /** *

* The job's source files. *

* * @return The job's source files. */ public java.util.List getSources() { return sources; } /** *

* The job's source files. *

* * @param sources * The job's source files. */ public void setSources(java.util.Collection sources) { if (sources == null) { this.sources = null; return; } this.sources = new java.util.ArrayList(sources); } /** *

* The job's source files. *

*

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

* * @param sources * The job's source files. * @return Returns a reference to this object so that method calls can be chained together. */ public GetReadSetActivationJobResult withSources(ActivateReadSetSourceItem... sources) { if (this.sources == null) { setSources(new java.util.ArrayList(sources.length)); } for (ActivateReadSetSourceItem ele : sources) { this.sources.add(ele); } return this; } /** *

* The job's source files. *

* * @param sources * The job's source files. * @return Returns a reference to this object so that method calls can be chained together. */ public GetReadSetActivationJobResult withSources(java.util.Collection sources) { setSources(sources); 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 (getSequenceStoreId() != null) sb.append("SequenceStoreId: ").append(getSequenceStoreId()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getStatusMessage() != null) sb.append("StatusMessage: ").append(getStatusMessage()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getCompletionTime() != null) sb.append("CompletionTime: ").append(getCompletionTime()).append(","); if (getSources() != null) sb.append("Sources: ").append(getSources()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetReadSetActivationJobResult == false) return false; GetReadSetActivationJobResult other = (GetReadSetActivationJobResult) obj; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getSequenceStoreId() == null ^ this.getSequenceStoreId() == null) return false; if (other.getSequenceStoreId() != null && other.getSequenceStoreId().equals(this.getSequenceStoreId()) == 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.getStatusMessage() == null ^ this.getStatusMessage() == null) return false; if (other.getStatusMessage() != null && other.getStatusMessage().equals(this.getStatusMessage()) == 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.getCompletionTime() == null ^ this.getCompletionTime() == null) return false; if (other.getCompletionTime() != null && other.getCompletionTime().equals(this.getCompletionTime()) == false) return false; if (other.getSources() == null ^ this.getSources() == null) return false; if (other.getSources() != null && other.getSources().equals(this.getSources()) == 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 + ((getSequenceStoreId() == null) ? 0 : getSequenceStoreId().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getStatusMessage() == null) ? 0 : getStatusMessage().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getCompletionTime() == null) ? 0 : getCompletionTime().hashCode()); hashCode = prime * hashCode + ((getSources() == null) ? 0 : getSources().hashCode()); return hashCode; } @Override public GetReadSetActivationJobResult clone() { try { return (GetReadSetActivationJobResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }