/* * 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; /** *

* Details about a sequence. *

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

* The sequence's total read count. *

*/ private Long totalReadCount; /** *

* The sequence's total base count. *

*/ private Long totalBaseCount; /** *

* Where the sequence originated. *

*/ private String generatedFrom; /** *

* The sequence's alignment setting. *

*/ private String alignment; /** *

* The sequence's total read count. *

* * @param totalReadCount * The sequence's total read count. */ public void setTotalReadCount(Long totalReadCount) { this.totalReadCount = totalReadCount; } /** *

* The sequence's total read count. *

* * @return The sequence's total read count. */ public Long getTotalReadCount() { return this.totalReadCount; } /** *

* The sequence's total read count. *

* * @param totalReadCount * The sequence's total read count. * @return Returns a reference to this object so that method calls can be chained together. */ public SequenceInformation withTotalReadCount(Long totalReadCount) { setTotalReadCount(totalReadCount); return this; } /** *

* The sequence's total base count. *

* * @param totalBaseCount * The sequence's total base count. */ public void setTotalBaseCount(Long totalBaseCount) { this.totalBaseCount = totalBaseCount; } /** *

* The sequence's total base count. *

* * @return The sequence's total base count. */ public Long getTotalBaseCount() { return this.totalBaseCount; } /** *

* The sequence's total base count. *

* * @param totalBaseCount * The sequence's total base count. * @return Returns a reference to this object so that method calls can be chained together. */ public SequenceInformation withTotalBaseCount(Long totalBaseCount) { setTotalBaseCount(totalBaseCount); return this; } /** *

* Where the sequence originated. *

* * @param generatedFrom * Where the sequence originated. */ public void setGeneratedFrom(String generatedFrom) { this.generatedFrom = generatedFrom; } /** *

* Where the sequence originated. *

* * @return Where the sequence originated. */ public String getGeneratedFrom() { return this.generatedFrom; } /** *

* Where the sequence originated. *

* * @param generatedFrom * Where the sequence originated. * @return Returns a reference to this object so that method calls can be chained together. */ public SequenceInformation withGeneratedFrom(String generatedFrom) { setGeneratedFrom(generatedFrom); return this; } /** *

* The sequence's alignment setting. *

* * @param alignment * The sequence's alignment setting. */ public void setAlignment(String alignment) { this.alignment = alignment; } /** *

* The sequence's alignment setting. *

* * @return The sequence's alignment setting. */ public String getAlignment() { return this.alignment; } /** *

* The sequence's alignment setting. *

* * @param alignment * The sequence's alignment setting. * @return Returns a reference to this object so that method calls can be chained together. */ public SequenceInformation withAlignment(String alignment) { setAlignment(alignment); 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 (getTotalReadCount() != null) sb.append("TotalReadCount: ").append(getTotalReadCount()).append(","); if (getTotalBaseCount() != null) sb.append("TotalBaseCount: ").append(getTotalBaseCount()).append(","); if (getGeneratedFrom() != null) sb.append("GeneratedFrom: ").append(getGeneratedFrom()).append(","); if (getAlignment() != null) sb.append("Alignment: ").append(getAlignment()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SequenceInformation == false) return false; SequenceInformation other = (SequenceInformation) obj; if (other.getTotalReadCount() == null ^ this.getTotalReadCount() == null) return false; if (other.getTotalReadCount() != null && other.getTotalReadCount().equals(this.getTotalReadCount()) == false) return false; if (other.getTotalBaseCount() == null ^ this.getTotalBaseCount() == null) return false; if (other.getTotalBaseCount() != null && other.getTotalBaseCount().equals(this.getTotalBaseCount()) == false) return false; if (other.getGeneratedFrom() == null ^ this.getGeneratedFrom() == null) return false; if (other.getGeneratedFrom() != null && other.getGeneratedFrom().equals(this.getGeneratedFrom()) == false) return false; if (other.getAlignment() == null ^ this.getAlignment() == null) return false; if (other.getAlignment() != null && other.getAlignment().equals(this.getAlignment()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTotalReadCount() == null) ? 0 : getTotalReadCount().hashCode()); hashCode = prime * hashCode + ((getTotalBaseCount() == null) ? 0 : getTotalBaseCount().hashCode()); hashCode = prime * hashCode + ((getGeneratedFrom() == null) ? 0 : getGeneratedFrom().hashCode()); hashCode = prime * hashCode + ((getAlignment() == null) ? 0 : getAlignment().hashCode()); return hashCode; } @Override public SequenceInformation clone() { try { return (SequenceInformation) 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.SequenceInformationMarshaller.getInstance().marshall(this, protocolMarshaller); } }