/** * 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 { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Braket { namespace Model { /** *

Includes information about a quantum task.

See Also:

AWS * API Reference

*/ class AWS_BRAKET_API QuantumTaskSummary { public: QuantumTaskSummary(); QuantumTaskSummary(Aws::Utils::Json::JsonView jsonValue); QuantumTaskSummary& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

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 bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

The time at which the task was created.

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

The time at which the task was created.

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

The time at which the task was created.

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

The time at which the task was created.

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

The ARN of the device the task ran on.

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

The ARN of the device the task ran on.

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

The ARN of the device the task ran on.

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

The ARN of the device the task ran on.

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

The ARN of the device the task ran on.

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

The ARN of the device the task ran on.

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

The ARN of the device the task ran on.

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

The ARN of the device the task ran on.

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

The time at which the task finished.

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

The time at which the task finished.

*/ inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; } /** *

The time at which the task finished.

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

The time at which the task finished.

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

The time at which the task finished.

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

The time at which the task finished.

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

The S3 bucket where the task result file is stored..

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

The S3 bucket where the task result file is stored..

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

The S3 bucket where the task result file is stored..

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

The S3 bucket where the task result file is stored..

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

The S3 bucket where the task result file is stored..

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

The S3 bucket where the task result file is stored..

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

The S3 bucket where the task result file is stored..

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

The S3 bucket where the task result file is stored..

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

The folder in the S3 bucket where the task result file is stored.

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

The folder in the S3 bucket where the task result file is stored.

*/ inline bool OutputS3DirectoryHasBeenSet() const { return m_outputS3DirectoryHasBeenSet; } /** *

The folder in the S3 bucket where the task result file is stored.

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

The folder in the S3 bucket where the task result file is stored.

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

The folder in the S3 bucket where the task result file is stored.

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

The folder in the S3 bucket where the task result file is stored.

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

The folder in the S3 bucket where the task result file is stored.

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

The folder in the S3 bucket where the task result file is stored.

*/ inline QuantumTaskSummary& 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 bool QuantumTaskArnHasBeenSet() const { return m_quantumTaskArnHasBeenSet; } /** *

The ARN of the task.

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

The ARN of the task.

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

The ARN of the task.

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

The ARN of the task.

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

The ARN of the task.

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

The ARN of the task.

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

The shots used for the task.

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

The shots used for the task.

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

The shots used for the task.

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

The shots used for the task.

*/ inline QuantumTaskSummary& 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 bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the task.

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

The status of the task.

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

The status of the task.

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

The status of the task.

*/ inline QuantumTaskSummary& WithStatus(QuantumTaskStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet; Aws::String m_deviceArn; bool m_deviceArnHasBeenSet; Aws::Utils::DateTime m_endedAt; bool m_endedAtHasBeenSet; Aws::String m_outputS3Bucket; bool m_outputS3BucketHasBeenSet; Aws::String m_outputS3Directory; bool m_outputS3DirectoryHasBeenSet; Aws::String m_quantumTaskArn; bool m_quantumTaskArnHasBeenSet; long long m_shots; bool m_shotsHasBeenSet; QuantumTaskStatus m_status; bool m_statusHasBeenSet; }; } // namespace Model } // namespace Braket } // namespace Aws