/* * 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.braket.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateQuantumTaskRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The action associated with the task. *
*/ private String action; /** ** The client token associated with the request. *
*/ private String clientToken; /** ** The ARN of the device to run the task on. *
*/ private String deviceArn; /** ** The parameters for the device to run the task on. *
*/ private String deviceParameters; /** ** The token for an Amazon Braket job that associates it with the quantum task. *
*/ private String jobToken; /** ** The S3 bucket to store task result files in. *
*/ private String outputS3Bucket; /** ** The key prefix for the location in the S3 bucket to store task results in. *
*/ private String outputS3KeyPrefix; /** ** The number of shots to use for the task. *
*/ private Long shots; /** ** Tags to be added to the quantum task you're creating. *
*/ private java.util.Map* The action associated with the task. *
** This field's value must be valid JSON according to RFC 7159, including the opening and closing braces. For * example: '{"key": "value"}'. *
** The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. * Users of the SDK should not perform Base64 encoding on this field. *
* * @param action * The action associated with the task. */ public void setAction(String action) { this.action = action; } /** ** The action associated with the task. *
** This field's value will be valid JSON according to RFC 7159, including the opening and closing braces. For * example: '{"key": "value"}'. *
* * @return The action associated with the task. */ public String getAction() { return this.action; } /** ** The action associated with the task. *
** This field's value must be valid JSON according to RFC 7159, including the opening and closing braces. For * example: '{"key": "value"}'. *
** The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. * Users of the SDK should not perform Base64 encoding on this field. *
* * @param action * The action associated with the task. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateQuantumTaskRequest withAction(String action) { setAction(action); return this; } /** ** The client token associated with the request. *
* * @param clientToken * The client token associated with the request. */ public void setClientToken(String clientToken) { this.clientToken = clientToken; } /** ** The client token associated with the request. *
* * @return The client token associated with the request. */ public String getClientToken() { return this.clientToken; } /** ** The client token associated with the request. *
* * @param clientToken * The client token associated with the request. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateQuantumTaskRequest withClientToken(String clientToken) { setClientToken(clientToken); return this; } /** ** The ARN of the device to run the task on. *
* * @param deviceArn * The ARN of the device to run the task on. */ public void setDeviceArn(String deviceArn) { this.deviceArn = deviceArn; } /** ** The ARN of the device to run the task on. *
* * @return The ARN of the device to run the task on. */ public String getDeviceArn() { return this.deviceArn; } /** ** The ARN of the device to run the task on. *
* * @param deviceArn * The ARN of the device to run the task on. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateQuantumTaskRequest withDeviceArn(String deviceArn) { setDeviceArn(deviceArn); return this; } /** ** The parameters for the device to run the task on. *
** This field's value must be valid JSON according to RFC 7159, including the opening and closing braces. For * example: '{"key": "value"}'. *
** The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. * Users of the SDK should not perform Base64 encoding on this field. *
* * @param deviceParameters * The parameters for the device to run the task on. */ public void setDeviceParameters(String deviceParameters) { this.deviceParameters = deviceParameters; } /** ** The parameters for the device to run the task on. *
** This field's value will be valid JSON according to RFC 7159, including the opening and closing braces. For * example: '{"key": "value"}'. *
* * @return The parameters for the device to run the task on. */ public String getDeviceParameters() { return this.deviceParameters; } /** ** The parameters for the device to run the task on. *
** This field's value must be valid JSON according to RFC 7159, including the opening and closing braces. For * example: '{"key": "value"}'. *
** The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. * Users of the SDK should not perform Base64 encoding on this field. *
* * @param deviceParameters * The parameters for the device to run the task on. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateQuantumTaskRequest withDeviceParameters(String deviceParameters) { setDeviceParameters(deviceParameters); return this; } /** ** The token for an Amazon Braket job that associates it with the quantum task. *
* * @param jobToken * The token for an Amazon Braket job that associates it with the quantum task. */ public void setJobToken(String jobToken) { this.jobToken = jobToken; } /** ** The token for an Amazon Braket job that associates it with the quantum task. *
* * @return The token for an Amazon Braket job that associates it with the quantum task. */ public String getJobToken() { return this.jobToken; } /** ** The token for an Amazon Braket job that associates it with the quantum task. *
* * @param jobToken * The token for an Amazon Braket job that associates it with the quantum task. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateQuantumTaskRequest withJobToken(String jobToken) { setJobToken(jobToken); return this; } /** ** The S3 bucket to store task result files in. *
* * @param outputS3Bucket * The S3 bucket to store task result files in. */ public void setOutputS3Bucket(String outputS3Bucket) { this.outputS3Bucket = outputS3Bucket; } /** ** The S3 bucket to store task result files in. *
* * @return The S3 bucket to store task result files in. */ public String getOutputS3Bucket() { return this.outputS3Bucket; } /** ** The S3 bucket to store task result files in. *
* * @param outputS3Bucket * The S3 bucket to store task result files in. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateQuantumTaskRequest withOutputS3Bucket(String outputS3Bucket) { setOutputS3Bucket(outputS3Bucket); return this; } /** ** The key prefix for the location in the S3 bucket to store task results in. *
* * @param outputS3KeyPrefix * The key prefix for the location in the S3 bucket to store task results in. */ public void setOutputS3KeyPrefix(String outputS3KeyPrefix) { this.outputS3KeyPrefix = outputS3KeyPrefix; } /** ** The key prefix for the location in the S3 bucket to store task results in. *
* * @return The key prefix for the location in the S3 bucket to store task results in. */ public String getOutputS3KeyPrefix() { return this.outputS3KeyPrefix; } /** ** The key prefix for the location in the S3 bucket to store task results in. *
* * @param outputS3KeyPrefix * The key prefix for the location in the S3 bucket to store task results in. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateQuantumTaskRequest withOutputS3KeyPrefix(String outputS3KeyPrefix) { setOutputS3KeyPrefix(outputS3KeyPrefix); return this; } /** ** The number of shots to use for the task. *
* * @param shots * The number of shots to use for the task. */ public void setShots(Long shots) { this.shots = shots; } /** ** The number of shots to use for the task. *
* * @return The number of shots to use for the task. */ public Long getShots() { return this.shots; } /** ** The number of shots to use for the task. *
* * @param shots * The number of shots to use for the task. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateQuantumTaskRequest withShots(Long shots) { setShots(shots); return this; } /** ** Tags to be added to the quantum task you're creating. *
* * @return Tags to be added to the quantum task you're creating. */ public java.util.Map* Tags to be added to the quantum task you're creating. *
* * @param tags * Tags to be added to the quantum task you're creating. */ public void setTags(java.util.Map* Tags to be added to the quantum task you're creating. *
* * @param tags * Tags to be added to the quantum task you're creating. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateQuantumTaskRequest withTags(java.util.Map