/* * 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 StartRunRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable, SignerTypeAware { /** *
* The run's workflow ID. *
*/ private String workflowId; /** ** The run's workflows type. *
*/ private String workflowType; /** ** The run's ID. *
*/ private String runId; /** ** A service role for the run. *
*/ private String roleArn; /** ** A name for the run. *
*/ private String name; /** ** The run's group ID. *
*/ private String runGroupId; /** ** A priority for the run. *
*/ private Integer priority; /** ** A storage capacity for the run in gigabytes. *
*/ private Integer storageCapacity; /** ** An output URI for the run. *
*/ private String outputUri; /** ** A log level for the run. *
*/ private String logLevel; /** ** Tags for the run. *
*/ private java.util.Map* To ensure that requests don't run multiple times, specify a unique ID for each request. *
*/ private String requestId; /** ** The run's workflow ID. *
* * @param workflowId * The run's workflow ID. */ public void setWorkflowId(String workflowId) { this.workflowId = workflowId; } /** ** The run's workflow ID. *
* * @return The run's workflow ID. */ public String getWorkflowId() { return this.workflowId; } /** ** The run's workflow ID. *
* * @param workflowId * The run's workflow ID. * @return Returns a reference to this object so that method calls can be chained together. */ public StartRunRequest withWorkflowId(String workflowId) { setWorkflowId(workflowId); return this; } /** ** The run's workflows type. *
* * @param workflowType * The run's workflows type. * @see WorkflowType */ public void setWorkflowType(String workflowType) { this.workflowType = workflowType; } /** ** The run's workflows type. *
* * @return The run's workflows type. * @see WorkflowType */ public String getWorkflowType() { return this.workflowType; } /** ** The run's workflows type. *
* * @param workflowType * The run's workflows type. * @return Returns a reference to this object so that method calls can be chained together. * @see WorkflowType */ public StartRunRequest withWorkflowType(String workflowType) { setWorkflowType(workflowType); return this; } /** ** The run's workflows type. *
* * @param workflowType * The run's workflows type. * @return Returns a reference to this object so that method calls can be chained together. * @see WorkflowType */ public StartRunRequest withWorkflowType(WorkflowType workflowType) { this.workflowType = workflowType.toString(); return this; } /** ** The run's ID. *
* * @param runId * The run's ID. */ public void setRunId(String runId) { this.runId = runId; } /** ** The run's ID. *
* * @return The run's ID. */ public String getRunId() { return this.runId; } /** ** The run's ID. *
* * @param runId * The run's ID. * @return Returns a reference to this object so that method calls can be chained together. */ public StartRunRequest withRunId(String runId) { setRunId(runId); return this; } /** ** A service role for the run. *
* * @param roleArn * A service role for the run. */ public void setRoleArn(String roleArn) { this.roleArn = roleArn; } /** ** A service role for the run. *
* * @return A service role for the run. */ public String getRoleArn() { return this.roleArn; } /** ** A service role for the run. *
* * @param roleArn * A service role for the run. * @return Returns a reference to this object so that method calls can be chained together. */ public StartRunRequest withRoleArn(String roleArn) { setRoleArn(roleArn); return this; } /** ** A name for the run. *
* * @param name * A name for the run. */ public void setName(String name) { this.name = name; } /** ** A name for the run. *
* * @return A name for the run. */ public String getName() { return this.name; } /** ** A name for the run. *
* * @param name * A name for the run. * @return Returns a reference to this object so that method calls can be chained together. */ public StartRunRequest withName(String name) { setName(name); return this; } /** ** The run's group ID. *
* * @param runGroupId * The run's group ID. */ public void setRunGroupId(String runGroupId) { this.runGroupId = runGroupId; } /** ** The run's group ID. *
* * @return The run's group ID. */ public String getRunGroupId() { return this.runGroupId; } /** ** The run's group ID. *
* * @param runGroupId * The run's group ID. * @return Returns a reference to this object so that method calls can be chained together. */ public StartRunRequest withRunGroupId(String runGroupId) { setRunGroupId(runGroupId); return this; } /** ** A priority for the run. *
* * @param priority * A priority for the run. */ public void setPriority(Integer priority) { this.priority = priority; } /** ** A priority for the run. *
* * @return A priority for the run. */ public Integer getPriority() { return this.priority; } /** ** A priority for the run. *
* * @param priority * A priority for the run. * @return Returns a reference to this object so that method calls can be chained together. */ public StartRunRequest withPriority(Integer priority) { setPriority(priority); return this; } /** ** A storage capacity for the run in gigabytes. *
* * @param storageCapacity * A storage capacity for the run in gigabytes. */ public void setStorageCapacity(Integer storageCapacity) { this.storageCapacity = storageCapacity; } /** ** A storage capacity for the run in gigabytes. *
* * @return A storage capacity for the run in gigabytes. */ public Integer getStorageCapacity() { return this.storageCapacity; } /** ** A storage capacity for the run in gigabytes. *
* * @param storageCapacity * A storage capacity for the run in gigabytes. * @return Returns a reference to this object so that method calls can be chained together. */ public StartRunRequest withStorageCapacity(Integer storageCapacity) { setStorageCapacity(storageCapacity); return this; } /** ** An output URI for the run. *
* * @param outputUri * An output URI for the run. */ public void setOutputUri(String outputUri) { this.outputUri = outputUri; } /** ** An output URI for the run. *
* * @return An output URI for the run. */ public String getOutputUri() { return this.outputUri; } /** ** An output URI for the run. *
* * @param outputUri * An output URI for the run. * @return Returns a reference to this object so that method calls can be chained together. */ public StartRunRequest withOutputUri(String outputUri) { setOutputUri(outputUri); return this; } /** ** A log level for the run. *
* * @param logLevel * A log level for the run. * @see RunLogLevel */ public void setLogLevel(String logLevel) { this.logLevel = logLevel; } /** ** A log level for the run. *
* * @return A log level for the run. * @see RunLogLevel */ public String getLogLevel() { return this.logLevel; } /** ** A log level for the run. *
* * @param logLevel * A log level for the run. * @return Returns a reference to this object so that method calls can be chained together. * @see RunLogLevel */ public StartRunRequest withLogLevel(String logLevel) { setLogLevel(logLevel); return this; } /** ** A log level for the run. *
* * @param logLevel * A log level for the run. * @return Returns a reference to this object so that method calls can be chained together. * @see RunLogLevel */ public StartRunRequest withLogLevel(RunLogLevel logLevel) { this.logLevel = logLevel.toString(); return this; } /** ** Tags for the run. *
* * @return Tags for the run. */ public java.util.Map* Tags for the run. *
* * @param tags * Tags for the run. */ public void setTags(java.util.Map* Tags for the run. *
* * @param tags * Tags for the run. * @return Returns a reference to this object so that method calls can be chained together. */ public StartRunRequest withTags(java.util.Map* To ensure that requests don't run multiple times, specify a unique ID for each request. *
* * @param requestId * To ensure that requests don't run multiple times, specify a unique ID for each request. */ public void setRequestId(String requestId) { this.requestId = requestId; } /** ** To ensure that requests don't run multiple times, specify a unique ID for each request. *
* * @return To ensure that requests don't run multiple times, specify a unique ID for each request. */ public String getRequestId() { return this.requestId; } /** ** To ensure that requests don't run multiple times, specify a unique ID for each request. *
* * @param requestId * To ensure that requests don't run multiple times, specify a unique ID for each request. * @return Returns a reference to this object so that method calls can be chained together. */ public StartRunRequest withRequestId(String requestId) { setRequestId(requestId); 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 (getWorkflowId() != null) sb.append("WorkflowId: ").append(getWorkflowId()).append(","); if (getWorkflowType() != null) sb.append("WorkflowType: ").append(getWorkflowType()).append(","); if (getRunId() != null) sb.append("RunId: ").append(getRunId()).append(","); if (getRoleArn() != null) sb.append("RoleArn: ").append(getRoleArn()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getRunGroupId() != null) sb.append("RunGroupId: ").append(getRunGroupId()).append(","); if (getPriority() != null) sb.append("Priority: ").append(getPriority()).append(","); if (getStorageCapacity() != null) sb.append("StorageCapacity: ").append(getStorageCapacity()).append(","); if (getOutputUri() != null) sb.append("OutputUri: ").append(getOutputUri()).append(","); if (getLogLevel() != null) sb.append("LogLevel: ").append(getLogLevel()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getRequestId() != null) sb.append("RequestId: ").append(getRequestId()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof StartRunRequest == false) return false; StartRunRequest other = (StartRunRequest) obj; if (other.getWorkflowId() == null ^ this.getWorkflowId() == null) return false; if (other.getWorkflowId() != null && other.getWorkflowId().equals(this.getWorkflowId()) == false) return false; if (other.getWorkflowType() == null ^ this.getWorkflowType() == null) return false; if (other.getWorkflowType() != null && other.getWorkflowType().equals(this.getWorkflowType()) == false) return false; if (other.getRunId() == null ^ this.getRunId() == null) return false; if (other.getRunId() != null && other.getRunId().equals(this.getRunId()) == 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.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getRunGroupId() == null ^ this.getRunGroupId() == null) return false; if (other.getRunGroupId() != null && other.getRunGroupId().equals(this.getRunGroupId()) == false) return false; if (other.getPriority() == null ^ this.getPriority() == null) return false; if (other.getPriority() != null && other.getPriority().equals(this.getPriority()) == false) return false; if (other.getStorageCapacity() == null ^ this.getStorageCapacity() == null) return false; if (other.getStorageCapacity() != null && other.getStorageCapacity().equals(this.getStorageCapacity()) == false) return false; if (other.getOutputUri() == null ^ this.getOutputUri() == null) return false; if (other.getOutputUri() != null && other.getOutputUri().equals(this.getOutputUri()) == false) return false; if (other.getLogLevel() == null ^ this.getLogLevel() == null) return false; if (other.getLogLevel() != null && other.getLogLevel().equals(this.getLogLevel()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getRequestId() == null ^ this.getRequestId() == null) return false; if (other.getRequestId() != null && other.getRequestId().equals(this.getRequestId()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getWorkflowId() == null) ? 0 : getWorkflowId().hashCode()); hashCode = prime * hashCode + ((getWorkflowType() == null) ? 0 : getWorkflowType().hashCode()); hashCode = prime * hashCode + ((getRunId() == null) ? 0 : getRunId().hashCode()); hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getRunGroupId() == null) ? 0 : getRunGroupId().hashCode()); hashCode = prime * hashCode + ((getPriority() == null) ? 0 : getPriority().hashCode()); hashCode = prime * hashCode + ((getStorageCapacity() == null) ? 0 : getStorageCapacity().hashCode()); hashCode = prime * hashCode + ((getOutputUri() == null) ? 0 : getOutputUri().hashCode()); hashCode = prime * hashCode + ((getLogLevel() == null) ? 0 : getLogLevel().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getRequestId() == null) ? 0 : getRequestId().hashCode()); return hashCode; } @Override public StartRunRequest clone() { return (StartRunRequest) super.clone(); } @Override public String getSignerType() { return "AWS4SignerType"; } }