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

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 void SetArn(const Aws::String& value) { m_arn = value; } /** *

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

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

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

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

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

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

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

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

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

*/ inline CreateWorldGenerationJobResult& WithArn(const char* value) { SetArn(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 void SetStatus(const WorldGenerationJobStatus& value) { 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_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 CreateWorldGenerationJobResult& 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 CreateWorldGenerationJobResult& WithStatus(WorldGenerationJobStatus&& value) { SetStatus(std::move(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 void SetCreatedAt(const Aws::Utils::DateTime& value) { 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_createdAt = std::move(value); } /** *

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

*/ inline CreateWorldGenerationJobResult& 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 CreateWorldGenerationJobResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

The failure code of the world generator job if it failed:

*
InternalServiceError

Internal service error.

*
LimitExceeded

The requested resource exceeds the maximum number * allowed, or the number of concurrent stream requests exceeds the maximum number * allowed.

ResourceNotFound

The specified resource * could not be found.

RequestThrottled

The request was * throttled.

InvalidInput

An input parameter in the * request is not valid.

*/ inline const WorldGenerationJobErrorCode& GetFailureCode() const{ return m_failureCode; } /** *

The failure code of the world generator job if it failed:

*
InternalServiceError

Internal service error.

*
LimitExceeded

The requested resource exceeds the maximum number * allowed, or the number of concurrent stream requests exceeds the maximum number * allowed.

ResourceNotFound

The specified resource * could not be found.

RequestThrottled

The request was * throttled.

InvalidInput

An input parameter in the * request is not valid.

*/ inline void SetFailureCode(const WorldGenerationJobErrorCode& value) { m_failureCode = value; } /** *

The failure code of the world generator job if it failed:

*
InternalServiceError

Internal service error.

*
LimitExceeded

The requested resource exceeds the maximum number * allowed, or the number of concurrent stream requests exceeds the maximum number * allowed.

ResourceNotFound

The specified resource * could not be found.

RequestThrottled

The request was * throttled.

InvalidInput

An input parameter in the * request is not valid.

*/ inline void SetFailureCode(WorldGenerationJobErrorCode&& value) { m_failureCode = std::move(value); } /** *

The failure code of the world generator job if it failed:

*
InternalServiceError

Internal service error.

*
LimitExceeded

The requested resource exceeds the maximum number * allowed, or the number of concurrent stream requests exceeds the maximum number * allowed.

ResourceNotFound

The specified resource * could not be found.

RequestThrottled

The request was * throttled.

InvalidInput

An input parameter in the * request is not valid.

*/ inline CreateWorldGenerationJobResult& WithFailureCode(const WorldGenerationJobErrorCode& value) { SetFailureCode(value); return *this;} /** *

The failure code of the world generator job if it failed:

*
InternalServiceError

Internal service error.

*
LimitExceeded

The requested resource exceeds the maximum number * allowed, or the number of concurrent stream requests exceeds the maximum number * allowed.

ResourceNotFound

The specified resource * could not be found.

RequestThrottled

The request was * throttled.

InvalidInput

An input parameter in the * request is not valid.

*/ inline CreateWorldGenerationJobResult& WithFailureCode(WorldGenerationJobErrorCode&& value) { SetFailureCode(std::move(value)); return *this;} /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

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

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

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

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline void SetClientRequestToken(const char* value) { m_clientRequestToken.assign(value); } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline CreateWorldGenerationJobResult& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline CreateWorldGenerationJobResult& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline CreateWorldGenerationJobResult& WithClientRequestToken(const char* value) { SetClientRequestToken(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 void SetTemplate(const Aws::String& value) { m_template = value; } /** *

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

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

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

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

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

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

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

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

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

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

Information about the world count.

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

Information about the world count.

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

Information about the world count.

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

Information about the world count.

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

Information about the world count.

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

A map that contains tag keys and tag values that are attached to the world * generator job.

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

A map that contains tag keys and tag values that are attached to the world * generator job.

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

A map that contains tag keys and tag values that are attached to the world * generator job.

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

A map that contains tag keys and tag values that are attached to the world * generator job.

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

A map that contains tag keys and tag values that are attached to the world * generator job.

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

A map that contains tag keys and tag values that are attached to the world * generator job.

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

A map that contains tag keys and tag values that are attached to the world * generator job.

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

A map that contains tag keys and tag values that are attached to the world * generator job.

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

A map that contains tag keys and tag values that are attached to the world * generator job.

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

A map that contains tag keys and tag values that are attached to the world * generator job.

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

A map that contains tag keys and tag values that are attached to the world * generator job.

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

A map that contains tag keys and tag values that are attached to the world * generator job.

*/ inline CreateWorldGenerationJobResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } /** *

A map that contains tag keys and tag values that are attached to the * generated worlds.

*/ inline const Aws::Map& GetWorldTags() const{ return m_worldTags; } /** *

A map that contains tag keys and tag values that are attached to the * generated worlds.

*/ inline void SetWorldTags(const Aws::Map& value) { m_worldTags = value; } /** *

A map that contains tag keys and tag values that are attached to the * generated worlds.

*/ inline void SetWorldTags(Aws::Map&& value) { m_worldTags = std::move(value); } /** *

A map that contains tag keys and tag values that are attached to the * generated worlds.

*/ inline CreateWorldGenerationJobResult& WithWorldTags(const Aws::Map& value) { SetWorldTags(value); return *this;} /** *

A map that contains tag keys and tag values that are attached to the * generated worlds.

*/ inline CreateWorldGenerationJobResult& WithWorldTags(Aws::Map&& value) { SetWorldTags(std::move(value)); return *this;} /** *

A map that contains tag keys and tag values that are attached to the * generated worlds.

*/ inline CreateWorldGenerationJobResult& AddWorldTags(const Aws::String& key, const Aws::String& value) { m_worldTags.emplace(key, value); return *this; } /** *

A map that contains tag keys and tag values that are attached to the * generated worlds.

*/ inline CreateWorldGenerationJobResult& AddWorldTags(Aws::String&& key, const Aws::String& value) { m_worldTags.emplace(std::move(key), value); return *this; } /** *

A map that contains tag keys and tag values that are attached to the * generated worlds.

*/ inline CreateWorldGenerationJobResult& AddWorldTags(const Aws::String& key, Aws::String&& value) { m_worldTags.emplace(key, std::move(value)); return *this; } /** *

A map that contains tag keys and tag values that are attached to the * generated worlds.

*/ inline CreateWorldGenerationJobResult& AddWorldTags(Aws::String&& key, Aws::String&& value) { m_worldTags.emplace(std::move(key), std::move(value)); return *this; } /** *

A map that contains tag keys and tag values that are attached to the * generated worlds.

*/ inline CreateWorldGenerationJobResult& AddWorldTags(const char* key, Aws::String&& value) { m_worldTags.emplace(key, std::move(value)); return *this; } /** *

A map that contains tag keys and tag values that are attached to the * generated worlds.

*/ inline CreateWorldGenerationJobResult& AddWorldTags(Aws::String&& key, const char* value) { m_worldTags.emplace(std::move(key), value); return *this; } /** *

A map that contains tag keys and tag values that are attached to the * generated worlds.

*/ inline CreateWorldGenerationJobResult& AddWorldTags(const char* key, const char* value) { m_worldTags.emplace(key, value); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CreateWorldGenerationJobResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateWorldGenerationJobResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateWorldGenerationJobResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_arn; WorldGenerationJobStatus m_status; Aws::Utils::DateTime m_createdAt; WorldGenerationJobErrorCode m_failureCode; Aws::String m_clientRequestToken; Aws::String m_template; WorldCount m_worldCount; Aws::Map m_tags; Aws::Map m_worldTags; Aws::String m_requestId; }; } // namespace Model } // namespace RoboMaker } // namespace Aws