/** * 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 RoboMaker { namespace Model { /** *

Information about a world generator job.

See Also:

AWS * API Reference

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

The Amazon Resource Name (ARN) of the world generator job.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) of the world generator job.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the world generator job.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The Amazon Resource Name (ARN) of the world generator job.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the world generator job.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) of the world generator job.

*/ inline WorldGenerationJobSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the world generator job.

*/ inline WorldGenerationJobSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the world generator job.

*/ inline WorldGenerationJobSummary& WithArn(const char* value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (arn) of the world template.

*/ inline const Aws::String& GetTemplate() const{ return m_template; } /** *

The Amazon Resource Name (arn) of the world template.

*/ inline bool TemplateHasBeenSet() const { return m_templateHasBeenSet; } /** *

The Amazon Resource Name (arn) of the world template.

*/ inline void SetTemplate(const Aws::String& value) { m_templateHasBeenSet = true; m_template = value; } /** *

The Amazon Resource Name (arn) of the world template.

*/ inline void SetTemplate(Aws::String&& value) { m_templateHasBeenSet = true; m_template = std::move(value); } /** *

The Amazon Resource Name (arn) of the world template.

*/ inline void SetTemplate(const char* value) { m_templateHasBeenSet = true; m_template.assign(value); } /** *

The Amazon Resource Name (arn) of the world template.

*/ inline WorldGenerationJobSummary& WithTemplate(const Aws::String& value) { SetTemplate(value); return *this;} /** *

The Amazon Resource Name (arn) of the world template.

*/ inline WorldGenerationJobSummary& WithTemplate(Aws::String&& value) { SetTemplate(std::move(value)); return *this;} /** *

The Amazon Resource Name (arn) of the world template.

*/ inline WorldGenerationJobSummary& WithTemplate(const char* value) { SetTemplate(value); return *this;} /** *

The time, in milliseconds since the epoch, when the world generator job was * created.

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

The time, in milliseconds since the epoch, when the world generator job was * created.

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

The time, in milliseconds since the epoch, when the world generator job was * created.

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

The time, in milliseconds since the epoch, when the world generator job was * created.

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

The time, in milliseconds since the epoch, when the world generator job was * created.

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

The time, in milliseconds since the epoch, when the world generator job was * created.

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

The status of the world generator job:

Pending

The * world generator job request is pending.

Running

The * world generator job is running.

Completed

The world * generator job completed.

Failed

The world generator * job failed. See failureCode for more information.

*
PartialFailed

Some worlds did not generate.

*
Canceled

The world generator job was cancelled.

*
Canceling

The world generator job is being cancelled.

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

The status of the world generator job:

Pending

The * world generator job request is pending.

Running

The * world generator job is running.

Completed

The world * generator job completed.

Failed

The world generator * job failed. See failureCode for more information.

*
PartialFailed

Some worlds did not generate.

*
Canceled

The world generator job was cancelled.

*
Canceling

The world generator job is being cancelled.

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

The status of the world generator job:

Pending

The * world generator job request is pending.

Running

The * world generator job is running.

Completed

The world * generator job completed.

Failed

The world generator * job failed. See failureCode for more information.

*
PartialFailed

Some worlds did not generate.

*
Canceled

The world generator job was cancelled.

*
Canceling

The world generator job is being cancelled.

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

The status of the world generator job:

Pending

The * world generator job request is pending.

Running

The * world generator job is running.

Completed

The world * generator job completed.

Failed

The world generator * job failed. See failureCode for more information.

*
PartialFailed

Some worlds did not generate.

*
Canceled

The world generator job was cancelled.

*
Canceling

The world generator job is being cancelled.

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

The status of the world generator job:

Pending

The * world generator job request is pending.

Running

The * world generator job is running.

Completed

The world * generator job completed.

Failed

The world generator * job failed. See failureCode for more information.

*
PartialFailed

Some worlds did not generate.

*
Canceled

The world generator job was cancelled.

*
Canceling

The world generator job is being cancelled.

*
*/ inline WorldGenerationJobSummary& WithStatus(const WorldGenerationJobStatus& value) { SetStatus(value); return *this;} /** *

The status of the world generator job:

Pending

The * world generator job request is pending.

Running

The * world generator job is running.

Completed

The world * generator job completed.

Failed

The world generator * job failed. See failureCode for more information.

*
PartialFailed

Some worlds did not generate.

*
Canceled

The world generator job was cancelled.

*
Canceling

The world generator job is being cancelled.

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

Information about the world count.

*/ inline const WorldCount& GetWorldCount() const{ return m_worldCount; } /** *

Information about the world count.

*/ inline bool WorldCountHasBeenSet() const { return m_worldCountHasBeenSet; } /** *

Information about the world count.

*/ inline void SetWorldCount(const WorldCount& value) { m_worldCountHasBeenSet = true; m_worldCount = value; } /** *

Information about the world count.

*/ inline void SetWorldCount(WorldCount&& value) { m_worldCountHasBeenSet = true; m_worldCount = std::move(value); } /** *

Information about the world count.

*/ inline WorldGenerationJobSummary& WithWorldCount(const WorldCount& value) { SetWorldCount(value); return *this;} /** *

Information about the world count.

*/ inline WorldGenerationJobSummary& WithWorldCount(WorldCount&& value) { SetWorldCount(std::move(value)); return *this;} /** *

The number of worlds that were generated.

*/ inline int GetSucceededWorldCount() const{ return m_succeededWorldCount; } /** *

The number of worlds that were generated.

*/ inline bool SucceededWorldCountHasBeenSet() const { return m_succeededWorldCountHasBeenSet; } /** *

The number of worlds that were generated.

*/ inline void SetSucceededWorldCount(int value) { m_succeededWorldCountHasBeenSet = true; m_succeededWorldCount = value; } /** *

The number of worlds that were generated.

*/ inline WorldGenerationJobSummary& WithSucceededWorldCount(int value) { SetSucceededWorldCount(value); return *this;} /** *

The number of worlds that failed.

*/ inline int GetFailedWorldCount() const{ return m_failedWorldCount; } /** *

The number of worlds that failed.

*/ inline bool FailedWorldCountHasBeenSet() const { return m_failedWorldCountHasBeenSet; } /** *

The number of worlds that failed.

*/ inline void SetFailedWorldCount(int value) { m_failedWorldCountHasBeenSet = true; m_failedWorldCount = value; } /** *

The number of worlds that failed.

*/ inline WorldGenerationJobSummary& WithFailedWorldCount(int value) { SetFailedWorldCount(value); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_template; bool m_templateHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; WorldGenerationJobStatus m_status; bool m_statusHasBeenSet = false; WorldCount m_worldCount; bool m_worldCountHasBeenSet = false; int m_succeededWorldCount; bool m_succeededWorldCountHasBeenSet = false; int m_failedWorldCount; bool m_failedWorldCountHasBeenSet = false; }; } // namespace Model } // namespace RoboMaker } // namespace Aws