/** * 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 DescribeSimulationJobBatchResult { public: AWS_ROBOMAKER_API DescribeSimulationJobBatchResult(); AWS_ROBOMAKER_API DescribeSimulationJobBatchResult(const Aws::AmazonWebServiceResult& result); AWS_ROBOMAKER_API DescribeSimulationJobBatchResult& 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 DescribeSimulationJobBatchResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the batch.

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

The Amazon Resource Name (ARN) of the batch.

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

The status of the 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 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 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 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 DescribeSimulationJobBatchResult& WithStatus(const SimulationJobBatchStatus& value) { SetStatus(value); return *this;} /** *

The status of the 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 DescribeSimulationJobBatchResult& WithStatus(SimulationJobBatchStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

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

*/ inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; } /** *

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

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

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

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

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

*/ inline DescribeSimulationJobBatchResult& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;} /** *

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

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

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

*/ inline DescribeSimulationJobBatchResult& 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 DescribeSimulationJobBatchResult& 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 DescribeSimulationJobBatchResult& WithBatchPolicy(const BatchPolicy& value) { SetBatchPolicy(value); return *this;} /** *

The batch policy.

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

The failure code of the simulation job batch.

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

The failure code of the simulation job batch.

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

The failure code of the simulation job batch.

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

The failure code of the simulation job batch.

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

The failure code of the simulation job batch.

*/ inline DescribeSimulationJobBatchResult& 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 DescribeSimulationJobBatchResult& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;} /** *

The reason the simulation job batch failed.

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

The reason the simulation job batch failed.

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

A list of failed create 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 create 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 create 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 create simulation job requests. The request failed to be * created into a simulation job. Failed requests do not have a simulation job ID. *

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

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

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

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

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

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

*/ inline DescribeSimulationJobBatchResult& 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 DescribeSimulationJobBatchResult& 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 DescribeSimulationJobBatchResult& 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 DescribeSimulationJobBatchResult& 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 DescribeSimulationJobBatchResult& AddPendingRequests(SimulationJobRequest&& value) { m_pendingRequests.push_back(std::move(value)); return *this; } /** *

A list of created simulation job summaries.

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

A list of created simulation job summaries.

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

A list of created simulation job summaries.

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

A list of created simulation job summaries.

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

A list of created simulation job summaries.

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

A list of created simulation job summaries.

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

A list of created simulation job summaries.

*/ inline DescribeSimulationJobBatchResult& 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 * simulation 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 * simulation 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 * simulation 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 * simulation job batch.

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

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

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

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

*/ inline DescribeSimulationJobBatchResult& 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 * simulation job batch.

*/ inline DescribeSimulationJobBatchResult& 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 * simulation job batch.

*/ inline DescribeSimulationJobBatchResult& 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 * simulation job batch.

*/ inline DescribeSimulationJobBatchResult& 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 * simulation job batch.

*/ inline DescribeSimulationJobBatchResult& 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 * simulation job batch.

*/ inline DescribeSimulationJobBatchResult& 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 * simulation job batch.

*/ inline DescribeSimulationJobBatchResult& 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 DescribeSimulationJobBatchResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeSimulationJobBatchResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeSimulationJobBatchResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_arn; SimulationJobBatchStatus m_status; Aws::Utils::DateTime m_lastUpdatedAt; 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; Aws::String m_requestId; }; } // namespace Model } // namespace RoboMaker } // namespace Aws