/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 simulation job batch.

See Also:

AWS * API Reference

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

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 bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the batch.

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

The Amazon Resource Name (ARN) of the batch.

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

The Amazon Resource Name (ARN) of the batch.

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

The Amazon Resource Name (ARN) of the batch.

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

The Amazon Resource Name (ARN) of the batch.

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

The Amazon Resource Name (ARN) of the batch.

*/ inline SimulationJobBatchSummary& WithArn(const char* value) { SetArn(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 bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; } /** *

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

*/ inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; 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_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); } /** *

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

*/ inline SimulationJobBatchSummary& 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 SimulationJobBatchSummary& 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 bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

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

*/ inline SimulationJobBatchSummary& 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 SimulationJobBatchSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(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 bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

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_statusHasBeenSet = true; 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_statusHasBeenSet = true; 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 SimulationJobBatchSummary& 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 SimulationJobBatchSummary& WithStatus(SimulationJobBatchStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The number of failed simulation job requests.

*/ inline int GetFailedRequestCount() const{ return m_failedRequestCount; } /** *

The number of failed simulation job requests.

*/ inline bool FailedRequestCountHasBeenSet() const { return m_failedRequestCountHasBeenSet; } /** *

The number of failed simulation job requests.

*/ inline void SetFailedRequestCount(int value) { m_failedRequestCountHasBeenSet = true; m_failedRequestCount = value; } /** *

The number of failed simulation job requests.

*/ inline SimulationJobBatchSummary& WithFailedRequestCount(int value) { SetFailedRequestCount(value); return *this;} /** *

The number of pending simulation job requests.

*/ inline int GetPendingRequestCount() const{ return m_pendingRequestCount; } /** *

The number of pending simulation job requests.

*/ inline bool PendingRequestCountHasBeenSet() const { return m_pendingRequestCountHasBeenSet; } /** *

The number of pending simulation job requests.

*/ inline void SetPendingRequestCount(int value) { m_pendingRequestCountHasBeenSet = true; m_pendingRequestCount = value; } /** *

The number of pending simulation job requests.

*/ inline SimulationJobBatchSummary& WithPendingRequestCount(int value) { SetPendingRequestCount(value); return *this;} /** *

The number of created simulation job requests.

*/ inline int GetCreatedRequestCount() const{ return m_createdRequestCount; } /** *

The number of created simulation job requests.

*/ inline bool CreatedRequestCountHasBeenSet() const { return m_createdRequestCountHasBeenSet; } /** *

The number of created simulation job requests.

*/ inline void SetCreatedRequestCount(int value) { m_createdRequestCountHasBeenSet = true; m_createdRequestCount = value; } /** *

The number of created simulation job requests.

*/ inline SimulationJobBatchSummary& WithCreatedRequestCount(int value) { SetCreatedRequestCount(value); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedAt; bool m_lastUpdatedAtHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; SimulationJobBatchStatus m_status; bool m_statusHasBeenSet = false; int m_failedRequestCount; bool m_failedRequestCountHasBeenSet = false; int m_pendingRequestCount; bool m_pendingRequestCountHasBeenSet = false; int m_createdRequestCount; bool m_createdRequestCountHasBeenSet = false; }; } // namespace Model } // namespace RoboMaker } // namespace Aws