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

See Also:

AWS * API Reference

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

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.

*/ inline const WorldGenerationJobErrorCode& 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.

*/ inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; } /** *

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.

*/ inline void SetFailureCode(const WorldGenerationJobErrorCode& value) { m_failureCodeHasBeenSet = true; 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.

*/ inline void SetFailureCode(WorldGenerationJobErrorCode&& value) { m_failureCodeHasBeenSet = true; 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.

*/ inline WorldFailure& WithFailureCode(const WorldGenerationJobErrorCode& 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.

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

The sample reason why the world failed. World errors are aggregated. A sample * is used as the sampleFailureReason.

*/ inline const Aws::String& GetSampleFailureReason() const{ return m_sampleFailureReason; } /** *

The sample reason why the world failed. World errors are aggregated. A sample * is used as the sampleFailureReason.

*/ inline bool SampleFailureReasonHasBeenSet() const { return m_sampleFailureReasonHasBeenSet; } /** *

The sample reason why the world failed. World errors are aggregated. A sample * is used as the sampleFailureReason.

*/ inline void SetSampleFailureReason(const Aws::String& value) { m_sampleFailureReasonHasBeenSet = true; m_sampleFailureReason = value; } /** *

The sample reason why the world failed. World errors are aggregated. A sample * is used as the sampleFailureReason.

*/ inline void SetSampleFailureReason(Aws::String&& value) { m_sampleFailureReasonHasBeenSet = true; m_sampleFailureReason = std::move(value); } /** *

The sample reason why the world failed. World errors are aggregated. A sample * is used as the sampleFailureReason.

*/ inline void SetSampleFailureReason(const char* value) { m_sampleFailureReasonHasBeenSet = true; m_sampleFailureReason.assign(value); } /** *

The sample reason why the world failed. World errors are aggregated. A sample * is used as the sampleFailureReason.

*/ inline WorldFailure& WithSampleFailureReason(const Aws::String& value) { SetSampleFailureReason(value); return *this;} /** *

The sample reason why the world failed. World errors are aggregated. A sample * is used as the sampleFailureReason.

*/ inline WorldFailure& WithSampleFailureReason(Aws::String&& value) { SetSampleFailureReason(std::move(value)); return *this;} /** *

The sample reason why the world failed. World errors are aggregated. A sample * is used as the sampleFailureReason.

*/ inline WorldFailure& WithSampleFailureReason(const char* value) { SetSampleFailureReason(value); return *this;} /** *

The number of failed worlds.

*/ inline int GetFailureCount() const{ return m_failureCount; } /** *

The number of failed worlds.

*/ inline bool FailureCountHasBeenSet() const { return m_failureCountHasBeenSet; } /** *

The number of failed worlds.

*/ inline void SetFailureCount(int value) { m_failureCountHasBeenSet = true; m_failureCount = value; } /** *

The number of failed worlds.

*/ inline WorldFailure& WithFailureCount(int value) { SetFailureCount(value); return *this;} private: WorldGenerationJobErrorCode m_failureCode; bool m_failureCodeHasBeenSet = false; Aws::String m_sampleFailureReason; bool m_sampleFailureReasonHasBeenSet = false; int m_failureCount; bool m_failureCountHasBeenSet = false; }; } // namespace Model } // namespace RoboMaker } // namespace Aws