/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Braket { namespace Model { /** */ class CreateQuantumTaskRequest : public BraketRequest { public: AWS_BRAKET_API CreateQuantumTaskRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateQuantumTask"; } AWS_BRAKET_API Aws::String SerializePayload() const override; /** *

The action associated with the task.

*/ inline const Aws::String& GetAction() const{ return m_action; } /** *

The action associated with the task.

*/ inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } /** *

The action associated with the task.

*/ inline void SetAction(const Aws::String& value) { m_actionHasBeenSet = true; m_action = value; } /** *

The action associated with the task.

*/ inline void SetAction(Aws::String&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } /** *

The action associated with the task.

*/ inline void SetAction(const char* value) { m_actionHasBeenSet = true; m_action.assign(value); } /** *

The action associated with the task.

*/ inline CreateQuantumTaskRequest& WithAction(const Aws::String& value) { SetAction(value); return *this;} /** *

The action associated with the task.

*/ inline CreateQuantumTaskRequest& WithAction(Aws::String&& value) { SetAction(std::move(value)); return *this;} /** *

The action associated with the task.

*/ inline CreateQuantumTaskRequest& WithAction(const char* value) { SetAction(value); return *this;} /** *

The client token associated with the request.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

The client token associated with the request.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

The client token associated with the request.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

The client token associated with the request.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

The client token associated with the request.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

The client token associated with the request.

*/ inline CreateQuantumTaskRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

The client token associated with the request.

*/ inline CreateQuantumTaskRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

The client token associated with the request.

*/ inline CreateQuantumTaskRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

The ARN of the device to run the task on.

*/ inline const Aws::String& GetDeviceArn() const{ return m_deviceArn; } /** *

The ARN of the device to run the task on.

*/ inline bool DeviceArnHasBeenSet() const { return m_deviceArnHasBeenSet; } /** *

The ARN of the device to run the task on.

*/ inline void SetDeviceArn(const Aws::String& value) { m_deviceArnHasBeenSet = true; m_deviceArn = value; } /** *

The ARN of the device to run the task on.

*/ inline void SetDeviceArn(Aws::String&& value) { m_deviceArnHasBeenSet = true; m_deviceArn = std::move(value); } /** *

The ARN of the device to run the task on.

*/ inline void SetDeviceArn(const char* value) { m_deviceArnHasBeenSet = true; m_deviceArn.assign(value); } /** *

The ARN of the device to run the task on.

*/ inline CreateQuantumTaskRequest& WithDeviceArn(const Aws::String& value) { SetDeviceArn(value); return *this;} /** *

The ARN of the device to run the task on.

*/ inline CreateQuantumTaskRequest& WithDeviceArn(Aws::String&& value) { SetDeviceArn(std::move(value)); return *this;} /** *

The ARN of the device to run the task on.

*/ inline CreateQuantumTaskRequest& WithDeviceArn(const char* value) { SetDeviceArn(value); return *this;} /** *

The parameters for the device to run the task on.

*/ inline const Aws::String& GetDeviceParameters() const{ return m_deviceParameters; } /** *

The parameters for the device to run the task on.

*/ inline bool DeviceParametersHasBeenSet() const { return m_deviceParametersHasBeenSet; } /** *

The parameters for the device to run the task on.

*/ inline void SetDeviceParameters(const Aws::String& value) { m_deviceParametersHasBeenSet = true; m_deviceParameters = value; } /** *

The parameters for the device to run the task on.

*/ inline void SetDeviceParameters(Aws::String&& value) { m_deviceParametersHasBeenSet = true; m_deviceParameters = std::move(value); } /** *

The parameters for the device to run the task on.

*/ inline void SetDeviceParameters(const char* value) { m_deviceParametersHasBeenSet = true; m_deviceParameters.assign(value); } /** *

The parameters for the device to run the task on.

*/ inline CreateQuantumTaskRequest& WithDeviceParameters(const Aws::String& value) { SetDeviceParameters(value); return *this;} /** *

The parameters for the device to run the task on.

*/ inline CreateQuantumTaskRequest& WithDeviceParameters(Aws::String&& value) { SetDeviceParameters(std::move(value)); return *this;} /** *

The parameters for the device to run the task on.

*/ inline CreateQuantumTaskRequest& WithDeviceParameters(const char* value) { SetDeviceParameters(value); return *this;} /** *

The token for an Amazon Braket job that associates it with the quantum * task.

*/ inline const Aws::String& GetJobToken() const{ return m_jobToken; } /** *

The token for an Amazon Braket job that associates it with the quantum * task.

*/ inline bool JobTokenHasBeenSet() const { return m_jobTokenHasBeenSet; } /** *

The token for an Amazon Braket job that associates it with the quantum * task.

*/ inline void SetJobToken(const Aws::String& value) { m_jobTokenHasBeenSet = true; m_jobToken = value; } /** *

The token for an Amazon Braket job that associates it with the quantum * task.

*/ inline void SetJobToken(Aws::String&& value) { m_jobTokenHasBeenSet = true; m_jobToken = std::move(value); } /** *

The token for an Amazon Braket job that associates it with the quantum * task.

*/ inline void SetJobToken(const char* value) { m_jobTokenHasBeenSet = true; m_jobToken.assign(value); } /** *

The token for an Amazon Braket job that associates it with the quantum * task.

*/ inline CreateQuantumTaskRequest& WithJobToken(const Aws::String& value) { SetJobToken(value); return *this;} /** *

The token for an Amazon Braket job that associates it with the quantum * task.

*/ inline CreateQuantumTaskRequest& WithJobToken(Aws::String&& value) { SetJobToken(std::move(value)); return *this;} /** *

The token for an Amazon Braket job that associates it with the quantum * task.

*/ inline CreateQuantumTaskRequest& WithJobToken(const char* value) { SetJobToken(value); return *this;} /** *

The S3 bucket to store task result files in.

*/ inline const Aws::String& GetOutputS3Bucket() const{ return m_outputS3Bucket; } /** *

The S3 bucket to store task result files in.

*/ inline bool OutputS3BucketHasBeenSet() const { return m_outputS3BucketHasBeenSet; } /** *

The S3 bucket to store task result files in.

*/ inline void SetOutputS3Bucket(const Aws::String& value) { m_outputS3BucketHasBeenSet = true; m_outputS3Bucket = value; } /** *

The S3 bucket to store task result files in.

*/ inline void SetOutputS3Bucket(Aws::String&& value) { m_outputS3BucketHasBeenSet = true; m_outputS3Bucket = std::move(value); } /** *

The S3 bucket to store task result files in.

*/ inline void SetOutputS3Bucket(const char* value) { m_outputS3BucketHasBeenSet = true; m_outputS3Bucket.assign(value); } /** *

The S3 bucket to store task result files in.

*/ inline CreateQuantumTaskRequest& WithOutputS3Bucket(const Aws::String& value) { SetOutputS3Bucket(value); return *this;} /** *

The S3 bucket to store task result files in.

*/ inline CreateQuantumTaskRequest& WithOutputS3Bucket(Aws::String&& value) { SetOutputS3Bucket(std::move(value)); return *this;} /** *

The S3 bucket to store task result files in.

*/ inline CreateQuantumTaskRequest& WithOutputS3Bucket(const char* value) { SetOutputS3Bucket(value); return *this;} /** *

The key prefix for the location in the S3 bucket to store task results * in.

*/ inline const Aws::String& GetOutputS3KeyPrefix() const{ return m_outputS3KeyPrefix; } /** *

The key prefix for the location in the S3 bucket to store task results * in.

*/ inline bool OutputS3KeyPrefixHasBeenSet() const { return m_outputS3KeyPrefixHasBeenSet; } /** *

The key prefix for the location in the S3 bucket to store task results * in.

*/ inline void SetOutputS3KeyPrefix(const Aws::String& value) { m_outputS3KeyPrefixHasBeenSet = true; m_outputS3KeyPrefix = value; } /** *

The key prefix for the location in the S3 bucket to store task results * in.

*/ inline void SetOutputS3KeyPrefix(Aws::String&& value) { m_outputS3KeyPrefixHasBeenSet = true; m_outputS3KeyPrefix = std::move(value); } /** *

The key prefix for the location in the S3 bucket to store task results * in.

*/ inline void SetOutputS3KeyPrefix(const char* value) { m_outputS3KeyPrefixHasBeenSet = true; m_outputS3KeyPrefix.assign(value); } /** *

The key prefix for the location in the S3 bucket to store task results * in.

*/ inline CreateQuantumTaskRequest& WithOutputS3KeyPrefix(const Aws::String& value) { SetOutputS3KeyPrefix(value); return *this;} /** *

The key prefix for the location in the S3 bucket to store task results * in.

*/ inline CreateQuantumTaskRequest& WithOutputS3KeyPrefix(Aws::String&& value) { SetOutputS3KeyPrefix(std::move(value)); return *this;} /** *

The key prefix for the location in the S3 bucket to store task results * in.

*/ inline CreateQuantumTaskRequest& WithOutputS3KeyPrefix(const char* value) { SetOutputS3KeyPrefix(value); return *this;} /** *

The number of shots to use for the task.

*/ inline long long GetShots() const{ return m_shots; } /** *

The number of shots to use for the task.

*/ inline bool ShotsHasBeenSet() const { return m_shotsHasBeenSet; } /** *

The number of shots to use for the task.

*/ inline void SetShots(long long value) { m_shotsHasBeenSet = true; m_shots = value; } /** *

The number of shots to use for the task.

*/ inline CreateQuantumTaskRequest& WithShots(long long value) { SetShots(value); return *this;} /** *

Tags to be added to the quantum task you're creating.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

Tags to be added to the quantum task you're creating.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Tags to be added to the quantum task you're creating.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Tags to be added to the quantum task you're creating.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Tags to be added to the quantum task you're creating.

*/ inline CreateQuantumTaskRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

Tags to be added to the quantum task you're creating.

*/ inline CreateQuantumTaskRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

Tags to be added to the quantum task you're creating.

*/ inline CreateQuantumTaskRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

Tags to be added to the quantum task you're creating.

*/ inline CreateQuantumTaskRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Tags to be added to the quantum task you're creating.

*/ inline CreateQuantumTaskRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Tags to be added to the quantum task you're creating.

*/ inline CreateQuantumTaskRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

Tags to be added to the quantum task you're creating.

*/ inline CreateQuantumTaskRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Tags to be added to the quantum task you're creating.

*/ inline CreateQuantumTaskRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Tags to be added to the quantum task you're creating.

*/ inline CreateQuantumTaskRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_action; bool m_actionHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::String m_deviceArn; bool m_deviceArnHasBeenSet = false; Aws::String m_deviceParameters; bool m_deviceParametersHasBeenSet = false; Aws::String m_jobToken; bool m_jobTokenHasBeenSet = false; Aws::String m_outputS3Bucket; bool m_outputS3BucketHasBeenSet = false; Aws::String m_outputS3KeyPrefix; bool m_outputS3KeyPrefixHasBeenSet = false; long long m_shots; bool m_shotsHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Braket } // namespace Aws