/** * 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 #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace RoboMaker { namespace Model { class AWS_ROBOMAKER_API StartSimulationJobBatchResult { public: StartSimulationJobBatchResult(); StartSimulationJobBatchResult(const Aws::AmazonWebServiceResult& result); StartSimulationJobBatchResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The Amazon Resource Name (arn) of the batch.

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

The Amazon Resource Name (arn) of the batch.

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

The Amazon Resource Name (arn) of the batch.

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

The Amazon Resource Name (arn) of the batch.

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

The Amazon Resource Name (arn) of the batch.

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

The Amazon Resource Name (arn) of the batch.

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

The Amazon Resource Name (arn) of the batch.

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

The status of the simulation job batch.

Pending

The * simulation job batch request is pending.

InProgress
*

The simulation job batch is in progress.

Failed
*

The simulation job batch failed. One or more simulation job requests could * not be completed due to an internal failure (like * InternalServiceError). See failureCode and * failureReason for more information.

Completed
*

The simulation batch job completed. A batch is complete when (1) there * are no pending simulation job requests in the batch and none of the failed * simulation job requests are due to InternalServiceError and (2) * when all created simulation jobs have reached a terminal state (for example, * Completed or Failed).

Canceled
*

The simulation batch job was cancelled.

Canceling
*

The simulation batch job is being cancelled.

*
Completing

The simulation batch job is completing.

*
TimingOut

The simulation job batch is timing out.

If a * batch timing out, and there are pending requests that were failing due to an * internal failure (like InternalServiceError), the batch status will * be Failed. If there are no such failing request, the batch status * will be TimedOut.

TimedOut

The * simulation batch job timed out.

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

The status of the simulation job batch.

Pending

The * simulation job batch request is pending.

InProgress
*

The simulation job batch is in progress.

Failed
*

The simulation job batch failed. One or more simulation job requests could * not be completed due to an internal failure (like * InternalServiceError). See failureCode and * failureReason for more information.

Completed
*

The simulation batch job completed. A batch is complete when (1) there * are no pending simulation job requests in the batch and none of the failed * simulation job requests are due to InternalServiceError and (2) * when all created simulation jobs have reached a terminal state (for example, * Completed or Failed).

Canceled
*

The simulation batch job was cancelled.

Canceling
*

The simulation batch job is being cancelled.

*
Completing

The simulation batch job is completing.

*
TimingOut

The simulation job batch is timing out.

If a * batch timing out, and there are pending requests that were failing due to an * internal failure (like InternalServiceError), the batch status will * be Failed. If there are no such failing request, the batch status * will be TimedOut.

TimedOut

The * simulation batch job timed out.

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

The status of the simulation job batch.

Pending

The * simulation job batch request is pending.

InProgress
*

The simulation job batch is in progress.

Failed
*

The simulation job batch failed. One or more simulation job requests could * not be completed due to an internal failure (like * InternalServiceError). See failureCode and * failureReason for more information.

Completed
*

The simulation batch job completed. A batch is complete when (1) there * are no pending simulation job requests in the batch and none of the failed * simulation job requests are due to InternalServiceError and (2) * when all created simulation jobs have reached a terminal state (for example, * Completed or Failed).

Canceled
*

The simulation batch job was cancelled.

Canceling
*

The simulation batch job is being cancelled.

*
Completing

The simulation batch job is completing.

*
TimingOut

The simulation job batch is timing out.

If a * batch timing out, and there are pending requests that were failing due to an * internal failure (like InternalServiceError), the batch status will * be Failed. If there are no such failing request, the batch status * will be TimedOut.

TimedOut

The * simulation batch job timed out.

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

The status of the simulation job batch.

Pending

The * simulation job batch request is pending.

InProgress
*

The simulation job batch is in progress.

Failed
*

The simulation job batch failed. One or more simulation job requests could * not be completed due to an internal failure (like * InternalServiceError). See failureCode and * failureReason for more information.

Completed
*

The simulation batch job completed. A batch is complete when (1) there * are no pending simulation job requests in the batch and none of the failed * simulation job requests are due to InternalServiceError and (2) * when all created simulation jobs have reached a terminal state (for example, * Completed or Failed).

Canceled
*

The simulation batch job was cancelled.

Canceling
*

The simulation batch job is being cancelled.

*
Completing

The simulation batch job is completing.

*
TimingOut

The simulation job batch is timing out.

If a * batch timing out, and there are pending requests that were failing due to an * internal failure (like InternalServiceError), the batch status will * be Failed. If there are no such failing request, the batch status * will be TimedOut.

TimedOut

The * simulation batch job timed out.

*/ inline StartSimulationJobBatchResult& WithStatus(const SimulationJobBatchStatus& value) { SetStatus(value); return *this;} /** *

The status of the simulation job batch.

Pending

The * simulation job batch request is pending.

InProgress
*

The simulation job batch is in progress.

Failed
*

The simulation job batch failed. One or more simulation job requests could * not be completed due to an internal failure (like * InternalServiceError). See failureCode and * failureReason for more information.

Completed
*

The simulation batch job completed. A batch is complete when (1) there * are no pending simulation job requests in the batch and none of the failed * simulation job requests are due to InternalServiceError and (2) * when all created simulation jobs have reached a terminal state (for example, * Completed or Failed).

Canceled
*

The simulation batch job was cancelled.

Canceling
*

The simulation batch job is being cancelled.

*
Completing

The simulation batch job is completing.

*
TimingOut

The simulation job batch is timing out.

If a * batch timing out, and there are pending requests that were failing due to an * internal failure (like InternalServiceError), the batch status will * be Failed. If there are no such failing request, the batch status * will be TimedOut.

TimedOut

The * simulation batch job timed out.

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

The time, in milliseconds since the epoch, when the simulation job batch was * created.

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

The time, in milliseconds since the epoch, when the simulation job batch was * created.

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

The time, in milliseconds since the epoch, when the simulation job batch was * created.

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

The time, in milliseconds since the epoch, when the simulation job batch was * created.

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

The time, in milliseconds since the epoch, when the simulation job batch was * created.

*/ inline StartSimulationJobBatchResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(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 StartSimulationJobBatchResult& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} /** *

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

*/ inline StartSimulationJobBatchResult& 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 StartSimulationJobBatchResult& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} /** *

The batch policy.

*/ inline const BatchPolicy& GetBatchPolicy() const{ return m_batchPolicy; } /** *

The batch policy.

*/ inline void SetBatchPolicy(const BatchPolicy& value) { m_batchPolicy = value; } /** *

The batch policy.

*/ inline void SetBatchPolicy(BatchPolicy&& value) { m_batchPolicy = std::move(value); } /** *

The batch policy.

*/ inline StartSimulationJobBatchResult& WithBatchPolicy(const BatchPolicy& value) { SetBatchPolicy(value); return *this;} /** *

The batch policy.

*/ inline StartSimulationJobBatchResult& WithBatchPolicy(BatchPolicy&& value) { SetBatchPolicy(std::move(value)); return *this;} /** *

The failure code if the simulation job batch failed.

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

The failure code if the simulation job batch failed.

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

The failure code if the simulation job batch failed.

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

The failure code if the simulation job batch failed.

*/ inline StartSimulationJobBatchResult& WithFailureCode(const SimulationJobBatchErrorCode& value) { SetFailureCode(value); return *this;} /** *

The failure code if the simulation job batch failed.

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

The reason the simulation job batch failed.

*/ inline const Aws::String& GetFailureReason() const{ return m_failureReason; } /** *

The reason the simulation job batch failed.

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

The reason the simulation job batch failed.

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

The reason the simulation job batch failed.

*/ inline void SetFailureReason(const char* value) { m_failureReason.assign(value); } /** *

The reason the simulation job batch failed.

*/ inline StartSimulationJobBatchResult& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;} /** *

The reason the simulation job batch failed.

*/ inline StartSimulationJobBatchResult& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;} /** *

The reason the simulation job batch failed.

*/ inline StartSimulationJobBatchResult& WithFailureReason(const char* value) { SetFailureReason(value); return *this;} /** *

A list of failed simulation job requests. The request failed to be created * into a simulation job. Failed requests do not have a simulation job ID.

*/ inline const Aws::Vector& GetFailedRequests() const{ return m_failedRequests; } /** *

A list of failed simulation job requests. The request failed to be created * into a simulation job. Failed requests do not have a simulation job ID.

*/ inline void SetFailedRequests(const Aws::Vector& value) { m_failedRequests = value; } /** *

A list of failed simulation job requests. The request failed to be created * into a simulation job. Failed requests do not have a simulation job ID.

*/ inline void SetFailedRequests(Aws::Vector&& value) { m_failedRequests = std::move(value); } /** *

A list of failed simulation job requests. The request failed to be created * into a simulation job. Failed requests do not have a simulation job ID.

*/ inline StartSimulationJobBatchResult& WithFailedRequests(const Aws::Vector& value) { SetFailedRequests(value); return *this;} /** *

A list of failed simulation job requests. The request failed to be created * into a simulation job. Failed requests do not have a simulation job ID.

*/ inline StartSimulationJobBatchResult& WithFailedRequests(Aws::Vector&& value) { SetFailedRequests(std::move(value)); return *this;} /** *

A list of failed simulation job requests. The request failed to be created * into a simulation job. Failed requests do not have a simulation job ID.

*/ inline StartSimulationJobBatchResult& AddFailedRequests(const FailedCreateSimulationJobRequest& value) { m_failedRequests.push_back(value); return *this; } /** *

A list of failed simulation job requests. The request failed to be created * into a simulation job. Failed requests do not have a simulation job ID.

*/ inline StartSimulationJobBatchResult& AddFailedRequests(FailedCreateSimulationJobRequest&& value) { m_failedRequests.push_back(std::move(value)); return *this; } /** *

A list of pending simulation job requests. These requests have not yet been * created into simulation jobs.

*/ inline const Aws::Vector& GetPendingRequests() const{ return m_pendingRequests; } /** *

A list of pending simulation job requests. These requests have not yet been * created into simulation jobs.

*/ inline void SetPendingRequests(const Aws::Vector& value) { m_pendingRequests = value; } /** *

A list of pending simulation job requests. These requests have not yet been * created into simulation jobs.

*/ inline void SetPendingRequests(Aws::Vector&& value) { m_pendingRequests = std::move(value); } /** *

A list of pending simulation job requests. These requests have not yet been * created into simulation jobs.

*/ inline StartSimulationJobBatchResult& WithPendingRequests(const Aws::Vector& value) { SetPendingRequests(value); return *this;} /** *

A list of pending simulation job requests. These requests have not yet been * created into simulation jobs.

*/ inline StartSimulationJobBatchResult& WithPendingRequests(Aws::Vector&& value) { SetPendingRequests(std::move(value)); return *this;} /** *

A list of pending simulation job requests. These requests have not yet been * created into simulation jobs.

*/ inline StartSimulationJobBatchResult& AddPendingRequests(const SimulationJobRequest& value) { m_pendingRequests.push_back(value); return *this; } /** *

A list of pending simulation job requests. These requests have not yet been * created into simulation jobs.

*/ inline StartSimulationJobBatchResult& AddPendingRequests(SimulationJobRequest&& value) { m_pendingRequests.push_back(std::move(value)); return *this; } /** *

A list of created simulation job request summaries.

*/ inline const Aws::Vector& GetCreatedRequests() const{ return m_createdRequests; } /** *

A list of created simulation job request summaries.

*/ inline void SetCreatedRequests(const Aws::Vector& value) { m_createdRequests = value; } /** *

A list of created simulation job request summaries.

*/ inline void SetCreatedRequests(Aws::Vector&& value) { m_createdRequests = std::move(value); } /** *

A list of created simulation job request summaries.

*/ inline StartSimulationJobBatchResult& WithCreatedRequests(const Aws::Vector& value) { SetCreatedRequests(value); return *this;} /** *

A list of created simulation job request summaries.

*/ inline StartSimulationJobBatchResult& WithCreatedRequests(Aws::Vector&& value) { SetCreatedRequests(std::move(value)); return *this;} /** *

A list of created simulation job request summaries.

*/ inline StartSimulationJobBatchResult& AddCreatedRequests(const SimulationJobSummary& value) { m_createdRequests.push_back(value); return *this; } /** *

A list of created simulation job request summaries.

*/ inline StartSimulationJobBatchResult& AddCreatedRequests(SimulationJobSummary&& value) { m_createdRequests.push_back(std::move(value)); return *this; } /** *

A map that contains tag keys and tag values that are attached to the * deployment job batch.

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

A map that contains tag keys and tag values that are attached to the * deployment job batch.

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

A map that contains tag keys and tag values that are attached to the * deployment job batch.

*/ 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 * deployment job batch.

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

A map that contains tag keys and tag values that are attached to the * deployment job batch.

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

A map that contains tag keys and tag values that are attached to the * deployment job batch.

*/ inline StartSimulationJobBatchResult& 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 * deployment job batch.

*/ inline StartSimulationJobBatchResult& 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 * deployment job batch.

*/ inline StartSimulationJobBatchResult& 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 * deployment job batch.

*/ inline StartSimulationJobBatchResult& 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 * deployment job batch.

*/ inline StartSimulationJobBatchResult& 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 * deployment job batch.

*/ inline StartSimulationJobBatchResult& 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 * deployment job batch.

*/ inline StartSimulationJobBatchResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } private: Aws::String m_arn; SimulationJobBatchStatus m_status; Aws::Utils::DateTime m_createdAt; Aws::String m_clientRequestToken; BatchPolicy m_batchPolicy; SimulationJobBatchErrorCode m_failureCode; Aws::String m_failureReason; Aws::Vector m_failedRequests; Aws::Vector m_pendingRequests; Aws::Vector m_createdRequests; Aws::Map m_tags; }; } // namespace Model } // namespace RoboMaker } // namespace Aws