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

* The read set's sequence store ID. *

*/ private String sequenceStoreId; /** *

* A location for exported files in Amazon S3. *

*/ private String destination; /** *

* A service role for the job. *

*/ private String roleArn; /** *

* To ensure that jobs don't run multiple times, specify a unique token for each job. *

*/ private String clientToken; /** *

* The job's source files. *

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

* The read set's sequence store ID. *

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

* The read set's sequence store ID. *

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

* The read set's sequence store ID. *

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

* A location for exported files in Amazon S3. *

* * @param destination * A location for exported files in Amazon S3. */ public void setDestination(String destination) { this.destination = destination; } /** *

* A location for exported files in Amazon S3. *

* * @return A location for exported files in Amazon S3. */ public String getDestination() { return this.destination; } /** *

* A location for exported files in Amazon S3. *

* * @param destination * A location for exported files in Amazon S3. * @return Returns a reference to this object so that method calls can be chained together. */ public StartReadSetExportJobRequest withDestination(String destination) { setDestination(destination); 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 StartReadSetExportJobRequest withRoleArn(String roleArn) { setRoleArn(roleArn); return this; } /** *

* To ensure that jobs don't run multiple times, specify a unique token for each job. *

* * @param clientToken * To ensure that jobs don't run multiple times, specify a unique token for each job. */ public void setClientToken(String clientToken) { this.clientToken = clientToken; } /** *

* To ensure that jobs don't run multiple times, specify a unique token for each job. *

* * @return To ensure that jobs don't run multiple times, specify a unique token for each job. */ public String getClientToken() { return this.clientToken; } /** *

* To ensure that jobs don't run multiple times, specify a unique token for each job. *

* * @param clientToken * To ensure that jobs don't run multiple times, specify a unique token for each job. * @return Returns a reference to this object so that method calls can be chained together. */ public StartReadSetExportJobRequest withClientToken(String clientToken) { setClientToken(clientToken); 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 StartReadSetExportJobRequest withSources(ExportReadSet... sources) { if (this.sources == null) { setSources(new java.util.ArrayList(sources.length)); } for (ExportReadSet 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 StartReadSetExportJobRequest 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 (getSequenceStoreId() != null) sb.append("SequenceStoreId: ").append(getSequenceStoreId()).append(","); if (getDestination() != null) sb.append("Destination: ").append(getDestination()).append(","); if (getRoleArn() != null) sb.append("RoleArn: ").append(getRoleArn()).append(","); if (getClientToken() != null) sb.append("ClientToken: ").append(getClientToken()).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 StartReadSetExportJobRequest == false) return false; StartReadSetExportJobRequest other = (StartReadSetExportJobRequest) obj; if (other.getSequenceStoreId() == null ^ this.getSequenceStoreId() == null) return false; if (other.getSequenceStoreId() != null && other.getSequenceStoreId().equals(this.getSequenceStoreId()) == false) return false; if (other.getDestination() == null ^ this.getDestination() == null) return false; if (other.getDestination() != null && other.getDestination().equals(this.getDestination()) == 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.getClientToken() == null ^ this.getClientToken() == null) return false; if (other.getClientToken() != null && other.getClientToken().equals(this.getClientToken()) == 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 + ((getSequenceStoreId() == null) ? 0 : getSequenceStoreId().hashCode()); hashCode = prime * hashCode + ((getDestination() == null) ? 0 : getDestination().hashCode()); hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); hashCode = prime * hashCode + ((getClientToken() == null) ? 0 : getClientToken().hashCode()); hashCode = prime * hashCode + ((getSources() == null) ? 0 : getSources().hashCode()); return hashCode; } @Override public StartReadSetExportJobRequest clone() { return (StartReadSetExportJobRequest) super.clone(); } @Override public String getSignerType() { return "AWS4SignerType"; } }