/** * 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 CreateWorldExportJobResult { public: AWS_ROBOMAKER_API CreateWorldExportJobResult(); AWS_ROBOMAKER_API CreateWorldExportJobResult(const Aws::AmazonWebServiceResult& result); AWS_ROBOMAKER_API CreateWorldExportJobResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

The status of the world export job.

Pending

The * world export job request is pending.

Running

The * world export job is running.

Completed

The world * export job completed.

Failed

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

*
Canceled

The world export job was cancelled.

*
Canceling

The world export job is being cancelled.

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

The status of the world export job.

Pending

The * world export job request is pending.

Running

The * world export job is running.

Completed

The world * export job completed.

Failed

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

*
Canceled

The world export job was cancelled.

*
Canceling

The world export job is being cancelled.

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

The status of the world export job.

Pending

The * world export job request is pending.

Running

The * world export job is running.

Completed

The world * export job completed.

Failed

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

*
Canceled

The world export job was cancelled.

*
Canceling

The world export job is being cancelled.

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

The status of the world export job.

Pending

The * world export job request is pending.

Running

The * world export job is running.

Completed

The world * export job completed.

Failed

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

*
Canceled

The world export job was cancelled.

*
Canceling

The world export job is being cancelled.

*
*/ inline CreateWorldExportJobResult& WithStatus(const WorldExportJobStatus& value) { SetStatus(value); return *this;} /** *

The status of the world export job.

Pending

The * world export job request is pending.

Running

The * world export job is running.

Completed

The world * export job completed.

Failed

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

*
Canceled

The world export job was cancelled.

*
Canceling

The world export job is being cancelled.

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

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

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

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

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

The time, in milliseconds since the epoch, when the world export 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 export job was * created.

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

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

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

The failure code of the world export 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.

AllWorldGenerationFailed

All of * the worlds in the world generation job failed. This can happen if your * worldCount is greater than 50 or less than 1.

*

For more information about troubleshooting WorldForge, see Troubleshooting * Simulation WorldForge.

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

The failure code of the world export 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.

AllWorldGenerationFailed

All of * the worlds in the world generation job failed. This can happen if your * worldCount is greater than 50 or less than 1.

*

For more information about troubleshooting WorldForge, see Troubleshooting * Simulation WorldForge.

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

The failure code of the world export 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.

AllWorldGenerationFailed

All of * the worlds in the world generation job failed. This can happen if your * worldCount is greater than 50 or less than 1.

*

For more information about troubleshooting WorldForge, see Troubleshooting * Simulation WorldForge.

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

The failure code of the world export 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.

AllWorldGenerationFailed

All of * the worlds in the world generation job failed. This can happen if your * worldCount is greater than 50 or less than 1.

*

For more information about troubleshooting WorldForge, see Troubleshooting * Simulation WorldForge.

*/ inline CreateWorldExportJobResult& WithFailureCode(const WorldExportJobErrorCode& value) { SetFailureCode(value); return *this;} /** *

The failure code of the world export 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.

AllWorldGenerationFailed

All of * the worlds in the world generation job failed. This can happen if your * worldCount is greater than 50 or less than 1.

*

For more information about troubleshooting WorldForge, see Troubleshooting * Simulation WorldForge.

*/ inline CreateWorldExportJobResult& WithFailureCode(WorldExportJobErrorCode&& 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 CreateWorldExportJobResult& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} /** *

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

*/ inline CreateWorldExportJobResult& 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 CreateWorldExportJobResult& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} inline const OutputLocation& GetOutputLocation() const{ return m_outputLocation; } inline void SetOutputLocation(const OutputLocation& value) { m_outputLocation = value; } inline void SetOutputLocation(OutputLocation&& value) { m_outputLocation = std::move(value); } inline CreateWorldExportJobResult& WithOutputLocation(const OutputLocation& value) { SetOutputLocation(value); return *this;} inline CreateWorldExportJobResult& WithOutputLocation(OutputLocation&& value) { SetOutputLocation(std::move(value)); return *this;} /** *

The IAM role that the world export process uses to access the Amazon S3 * bucket and put the export.

*/ inline const Aws::String& GetIamRole() const{ return m_iamRole; } /** *

The IAM role that the world export process uses to access the Amazon S3 * bucket and put the export.

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

The IAM role that the world export process uses to access the Amazon S3 * bucket and put the export.

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

The IAM role that the world export process uses to access the Amazon S3 * bucket and put the export.

*/ inline void SetIamRole(const char* value) { m_iamRole.assign(value); } /** *

The IAM role that the world export process uses to access the Amazon S3 * bucket and put the export.

*/ inline CreateWorldExportJobResult& WithIamRole(const Aws::String& value) { SetIamRole(value); return *this;} /** *

The IAM role that the world export process uses to access the Amazon S3 * bucket and put the export.

*/ inline CreateWorldExportJobResult& WithIamRole(Aws::String&& value) { SetIamRole(std::move(value)); return *this;} /** *

The IAM role that the world export process uses to access the Amazon S3 * bucket and put the export.

*/ inline CreateWorldExportJobResult& WithIamRole(const char* value) { SetIamRole(value); return *this;} /** *

A map that contains tag keys and tag values that are attached to the world * export 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 * export 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 * export 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 * export job.

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

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

*/ inline CreateWorldExportJobResult& 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 * export job.

*/ inline CreateWorldExportJobResult& 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 * export job.

*/ inline CreateWorldExportJobResult& 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 * export job.

*/ inline CreateWorldExportJobResult& 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 * export job.

*/ inline CreateWorldExportJobResult& 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 * export job.

*/ inline CreateWorldExportJobResult& 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 * export job.

*/ inline CreateWorldExportJobResult& 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 * export job.

*/ inline CreateWorldExportJobResult& AddTags(const char* key, const char* value) { m_tags.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 CreateWorldExportJobResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateWorldExportJobResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateWorldExportJobResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_arn; WorldExportJobStatus m_status; Aws::Utils::DateTime m_createdAt; WorldExportJobErrorCode m_failureCode; Aws::String m_clientRequestToken; OutputLocation m_outputLocation; Aws::String m_iamRole; Aws::Map m_tags; Aws::String m_requestId; }; } // namespace Model } // namespace RoboMaker } // namespace Aws