/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Braket { namespace Model { class AWS_BRAKET_API GetQuantumTaskResult { public: GetQuantumTaskResult(); GetQuantumTaskResult(const Aws::AmazonWebServiceResult& result); GetQuantumTaskResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The time at which the task was created.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The time at which the task was created.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; } /** *

The time at which the task was created.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); } /** *

The time at which the task was created.

*/ inline GetQuantumTaskResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The time at which the task was created.

*/ inline GetQuantumTaskResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

The ARN of the device the task was run on.

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

The ARN of the device the task was run on.

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

The ARN of the device the task was run on.

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

The ARN of the device the task was run on.

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

The ARN of the device the task was run on.

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

The ARN of the device the task was run on.

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

The ARN of the device the task was run on.

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

The parameters for the device on which the task ran.

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

The parameters for the device on which the task ran.

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

The parameters for the device on which the task ran.

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

The parameters for the device on which the task ran.

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

The parameters for the device on which the task ran.

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

The parameters for the device on which the task ran.

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

The parameters for the device on which the task ran.

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

The time at which the task ended.

*/ inline const Aws::Utils::DateTime& GetEndedAt() const{ return m_endedAt; } /** *

The time at which the task ended.

*/ inline void SetEndedAt(const Aws::Utils::DateTime& value) { m_endedAt = value; } /** *

The time at which the task ended.

*/ inline void SetEndedAt(Aws::Utils::DateTime&& value) { m_endedAt = std::move(value); } /** *

The time at which the task ended.

*/ inline GetQuantumTaskResult& WithEndedAt(const Aws::Utils::DateTime& value) { SetEndedAt(value); return *this;} /** *

The time at which the task ended.

*/ inline GetQuantumTaskResult& WithEndedAt(Aws::Utils::DateTime&& value) { SetEndedAt(std::move(value)); return *this;} /** *

The reason that a task failed.

*/ inline const Aws::String& GetFailureReason() const{ return m_failureReason; } /** *

The reason that a task failed.

*/ inline void SetFailureReason(const Aws::String& value) { m_failureReason = value; } /** *

The reason that a task failed.

*/ inline void SetFailureReason(Aws::String&& value) { m_failureReason = std::move(value); } /** *

The reason that a task failed.

*/ inline void SetFailureReason(const char* value) { m_failureReason.assign(value); } /** *

The reason that a task failed.

*/ inline GetQuantumTaskResult& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;} /** *

The reason that a task failed.

*/ inline GetQuantumTaskResult& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;} /** *

The reason that a task failed.

*/ inline GetQuantumTaskResult& WithFailureReason(const char* value) { SetFailureReason(value); return *this;} /** *

The S3 bucket where task results are stored.

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

The S3 bucket where task results are stored.

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

The S3 bucket where task results are stored.

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

The S3 bucket where task results are stored.

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

The S3 bucket where task results are stored.

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

The S3 bucket where task results are stored.

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

The S3 bucket where task results are stored.

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

The folder in the S3 bucket where task results are stored.

*/ inline const Aws::String& GetOutputS3Directory() const{ return m_outputS3Directory; } /** *

The folder in the S3 bucket where task results are stored.

*/ inline void SetOutputS3Directory(const Aws::String& value) { m_outputS3Directory = value; } /** *

The folder in the S3 bucket where task results are stored.

*/ inline void SetOutputS3Directory(Aws::String&& value) { m_outputS3Directory = std::move(value); } /** *

The folder in the S3 bucket where task results are stored.

*/ inline void SetOutputS3Directory(const char* value) { m_outputS3Directory.assign(value); } /** *

The folder in the S3 bucket where task results are stored.

*/ inline GetQuantumTaskResult& WithOutputS3Directory(const Aws::String& value) { SetOutputS3Directory(value); return *this;} /** *

The folder in the S3 bucket where task results are stored.

*/ inline GetQuantumTaskResult& WithOutputS3Directory(Aws::String&& value) { SetOutputS3Directory(std::move(value)); return *this;} /** *

The folder in the S3 bucket where task results are stored.

*/ inline GetQuantumTaskResult& WithOutputS3Directory(const char* value) { SetOutputS3Directory(value); return *this;} /** *

The ARN of the task.

*/ inline const Aws::String& GetQuantumTaskArn() const{ return m_quantumTaskArn; } /** *

The ARN of the task.

*/ inline void SetQuantumTaskArn(const Aws::String& value) { m_quantumTaskArn = value; } /** *

The ARN of the task.

*/ inline void SetQuantumTaskArn(Aws::String&& value) { m_quantumTaskArn = std::move(value); } /** *

The ARN of the task.

*/ inline void SetQuantumTaskArn(const char* value) { m_quantumTaskArn.assign(value); } /** *

The ARN of the task.

*/ inline GetQuantumTaskResult& WithQuantumTaskArn(const Aws::String& value) { SetQuantumTaskArn(value); return *this;} /** *

The ARN of the task.

*/ inline GetQuantumTaskResult& WithQuantumTaskArn(Aws::String&& value) { SetQuantumTaskArn(std::move(value)); return *this;} /** *

The ARN of the task.

*/ inline GetQuantumTaskResult& WithQuantumTaskArn(const char* value) { SetQuantumTaskArn(value); return *this;} /** *

The number of shots used in the task.

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

The number of shots used in the task.

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

The number of shots used in the task.

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

The status of the task.

*/ inline const QuantumTaskStatus& GetStatus() const{ return m_status; } /** *

The status of the task.

*/ inline void SetStatus(const QuantumTaskStatus& value) { m_status = value; } /** *

The status of the task.

*/ inline void SetStatus(QuantumTaskStatus&& value) { m_status = std::move(value); } /** *

The status of the task.

*/ inline GetQuantumTaskResult& WithStatus(const QuantumTaskStatus& value) { SetStatus(value); return *this;} /** *

The status of the task.

*/ inline GetQuantumTaskResult& WithStatus(QuantumTaskStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::Utils::DateTime m_createdAt; Aws::String m_deviceArn; Aws::String m_deviceParameters; Aws::Utils::DateTime m_endedAt; Aws::String m_failureReason; Aws::String m_outputS3Bucket; Aws::String m_outputS3Directory; Aws::String m_quantumTaskArn; long long m_shots; QuantumTaskStatus m_status; }; } // namespace Model } // namespace Braket } // namespace Aws