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

Provides summary information about an Amazon Braket job.

See * Also:

AWS * API Reference

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

The date and time that the Amazon Braket job was created.

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

The date and time that the Amazon Braket job was created.

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

The date and time that the Amazon Braket job was created.

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

The date and time that the Amazon Braket job was created.

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

The date and time that the Amazon Braket job was created.

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

The date and time that the Amazon Braket job was created.

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

Provides summary information about the primary device used by an Amazon * Braket job.

*/ inline const Aws::String& GetDevice() const{ return m_device; } /** *

Provides summary information about the primary device used by an Amazon * Braket job.

*/ inline bool DeviceHasBeenSet() const { return m_deviceHasBeenSet; } /** *

Provides summary information about the primary device used by an Amazon * Braket job.

*/ inline void SetDevice(const Aws::String& value) { m_deviceHasBeenSet = true; m_device = value; } /** *

Provides summary information about the primary device used by an Amazon * Braket job.

*/ inline void SetDevice(Aws::String&& value) { m_deviceHasBeenSet = true; m_device = std::move(value); } /** *

Provides summary information about the primary device used by an Amazon * Braket job.

*/ inline void SetDevice(const char* value) { m_deviceHasBeenSet = true; m_device.assign(value); } /** *

Provides summary information about the primary device used by an Amazon * Braket job.

*/ inline JobSummary& WithDevice(const Aws::String& value) { SetDevice(value); return *this;} /** *

Provides summary information about the primary device used by an Amazon * Braket job.

*/ inline JobSummary& WithDevice(Aws::String&& value) { SetDevice(std::move(value)); return *this;} /** *

Provides summary information about the primary device used by an Amazon * Braket job.

*/ inline JobSummary& WithDevice(const char* value) { SetDevice(value); return *this;} /** *

The date and time that the Amazon Braket job ended.

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

The date and time that the Amazon Braket job ended.

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

The date and time that the Amazon Braket job ended.

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

The date and time that the Amazon Braket job ended.

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

The date and time that the Amazon Braket job ended.

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

The date and time that the Amazon Braket job ended.

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

The ARN of the Amazon Braket job.

*/ inline const Aws::String& GetJobArn() const{ return m_jobArn; } /** *

The ARN of the Amazon Braket job.

*/ inline bool JobArnHasBeenSet() const { return m_jobArnHasBeenSet; } /** *

The ARN of the Amazon Braket job.

*/ inline void SetJobArn(const Aws::String& value) { m_jobArnHasBeenSet = true; m_jobArn = value; } /** *

The ARN of the Amazon Braket job.

*/ inline void SetJobArn(Aws::String&& value) { m_jobArnHasBeenSet = true; m_jobArn = std::move(value); } /** *

The ARN of the Amazon Braket job.

*/ inline void SetJobArn(const char* value) { m_jobArnHasBeenSet = true; m_jobArn.assign(value); } /** *

The ARN of the Amazon Braket job.

*/ inline JobSummary& WithJobArn(const Aws::String& value) { SetJobArn(value); return *this;} /** *

The ARN of the Amazon Braket job.

*/ inline JobSummary& WithJobArn(Aws::String&& value) { SetJobArn(std::move(value)); return *this;} /** *

The ARN of the Amazon Braket job.

*/ inline JobSummary& WithJobArn(const char* value) { SetJobArn(value); return *this;} /** *

The name of the Amazon Braket job.

*/ inline const Aws::String& GetJobName() const{ return m_jobName; } /** *

The name of the Amazon Braket job.

*/ inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; } /** *

The name of the Amazon Braket job.

*/ inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; } /** *

The name of the Amazon Braket job.

*/ inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); } /** *

The name of the Amazon Braket job.

*/ inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); } /** *

The name of the Amazon Braket job.

*/ inline JobSummary& WithJobName(const Aws::String& value) { SetJobName(value); return *this;} /** *

The name of the Amazon Braket job.

*/ inline JobSummary& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;} /** *

The name of the Amazon Braket job.

*/ inline JobSummary& WithJobName(const char* value) { SetJobName(value); return *this;} /** *

The date and time that the Amazon Braket job was started.

*/ inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; } /** *

The date and time that the Amazon Braket job was started.

*/ inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; } /** *

The date and time that the Amazon Braket job was started.

*/ inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAtHasBeenSet = true; m_startedAt = value; } /** *

The date and time that the Amazon Braket job was started.

*/ inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::move(value); } /** *

The date and time that the Amazon Braket job was started.

*/ inline JobSummary& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;} /** *

The date and time that the Amazon Braket job was started.

*/ inline JobSummary& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;} /** *

The status of the Amazon Braket job.

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

The status of the Amazon Braket job.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the Amazon Braket job.

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

The status of the Amazon Braket job.

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

The status of the Amazon Braket job.

*/ inline JobSummary& WithStatus(const JobPrimaryStatus& value) { SetStatus(value); return *this;} /** *

The status of the Amazon Braket job.

*/ inline JobSummary& WithStatus(JobPrimaryStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

A tag object that consists of a key and an optional value, used to manage * metadata for Amazon Braket resources.

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

A tag object that consists of a key and an optional value, used to manage * metadata for Amazon Braket resources.

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

A tag object that consists of a key and an optional value, used to manage * metadata for Amazon Braket resources.

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

A tag object that consists of a key and an optional value, used to manage * metadata for Amazon Braket resources.

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

A tag object that consists of a key and an optional value, used to manage * metadata for Amazon Braket resources.

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

A tag object that consists of a key and an optional value, used to manage * metadata for Amazon Braket resources.

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

A tag object that consists of a key and an optional value, used to manage * metadata for Amazon Braket resources.

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

A tag object that consists of a key and an optional value, used to manage * metadata for Amazon Braket resources.

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

A tag object that consists of a key and an optional value, used to manage * metadata for Amazon Braket resources.

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

A tag object that consists of a key and an optional value, used to manage * metadata for Amazon Braket resources.

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

A tag object that consists of a key and an optional value, used to manage * metadata for Amazon Braket resources.

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

A tag object that consists of a key and an optional value, used to manage * metadata for Amazon Braket resources.

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

A tag object that consists of a key and an optional value, used to manage * metadata for Amazon Braket resources.

*/ inline JobSummary& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; Aws::String m_device; bool m_deviceHasBeenSet = false; Aws::Utils::DateTime m_endedAt; bool m_endedAtHasBeenSet = false; Aws::String m_jobArn; bool m_jobArnHasBeenSet = false; Aws::String m_jobName; bool m_jobNameHasBeenSet = false; Aws::Utils::DateTime m_startedAt; bool m_startedAtHasBeenSet = false; JobPrimaryStatus m_status; bool m_statusHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Braket } // namespace Aws