/** * 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 GreengrassV2 { namespace Model { /** *

Contains all error-related information for the deployment record. The status * details will be null if the deployment is in a success state.

*

Greengrass nucleus v2.8.0 or later is required to get an accurate * errorStack and errorTypes response. This field will * not be returned for earlier Greengrass nucleus versions.

See * Also:

AWS * API Reference

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

Contains an ordered list of short error codes that range from the most * generic error to the most specific one. The error codes describe the reason for * failure whenever the coreDeviceExecutionStatus is in a failed * state. The response will be an empty list if there is no error.

*/ inline const Aws::Vector& GetErrorStack() const{ return m_errorStack; } /** *

Contains an ordered list of short error codes that range from the most * generic error to the most specific one. The error codes describe the reason for * failure whenever the coreDeviceExecutionStatus is in a failed * state. The response will be an empty list if there is no error.

*/ inline bool ErrorStackHasBeenSet() const { return m_errorStackHasBeenSet; } /** *

Contains an ordered list of short error codes that range from the most * generic error to the most specific one. The error codes describe the reason for * failure whenever the coreDeviceExecutionStatus is in a failed * state. The response will be an empty list if there is no error.

*/ inline void SetErrorStack(const Aws::Vector& value) { m_errorStackHasBeenSet = true; m_errorStack = value; } /** *

Contains an ordered list of short error codes that range from the most * generic error to the most specific one. The error codes describe the reason for * failure whenever the coreDeviceExecutionStatus is in a failed * state. The response will be an empty list if there is no error.

*/ inline void SetErrorStack(Aws::Vector&& value) { m_errorStackHasBeenSet = true; m_errorStack = std::move(value); } /** *

Contains an ordered list of short error codes that range from the most * generic error to the most specific one. The error codes describe the reason for * failure whenever the coreDeviceExecutionStatus is in a failed * state. The response will be an empty list if there is no error.

*/ inline EffectiveDeploymentStatusDetails& WithErrorStack(const Aws::Vector& value) { SetErrorStack(value); return *this;} /** *

Contains an ordered list of short error codes that range from the most * generic error to the most specific one. The error codes describe the reason for * failure whenever the coreDeviceExecutionStatus is in a failed * state. The response will be an empty list if there is no error.

*/ inline EffectiveDeploymentStatusDetails& WithErrorStack(Aws::Vector&& value) { SetErrorStack(std::move(value)); return *this;} /** *

Contains an ordered list of short error codes that range from the most * generic error to the most specific one. The error codes describe the reason for * failure whenever the coreDeviceExecutionStatus is in a failed * state. The response will be an empty list if there is no error.

*/ inline EffectiveDeploymentStatusDetails& AddErrorStack(const Aws::String& value) { m_errorStackHasBeenSet = true; m_errorStack.push_back(value); return *this; } /** *

Contains an ordered list of short error codes that range from the most * generic error to the most specific one. The error codes describe the reason for * failure whenever the coreDeviceExecutionStatus is in a failed * state. The response will be an empty list if there is no error.

*/ inline EffectiveDeploymentStatusDetails& AddErrorStack(Aws::String&& value) { m_errorStackHasBeenSet = true; m_errorStack.push_back(std::move(value)); return *this; } /** *

Contains an ordered list of short error codes that range from the most * generic error to the most specific one. The error codes describe the reason for * failure whenever the coreDeviceExecutionStatus is in a failed * state. The response will be an empty list if there is no error.

*/ inline EffectiveDeploymentStatusDetails& AddErrorStack(const char* value) { m_errorStackHasBeenSet = true; m_errorStack.push_back(value); return *this; } /** *

Contains tags which describe the error. You can use the error types to * classify errors to assist with remediating the failure. The response will be an * empty list if there is no error.

*/ inline const Aws::Vector& GetErrorTypes() const{ return m_errorTypes; } /** *

Contains tags which describe the error. You can use the error types to * classify errors to assist with remediating the failure. The response will be an * empty list if there is no error.

*/ inline bool ErrorTypesHasBeenSet() const { return m_errorTypesHasBeenSet; } /** *

Contains tags which describe the error. You can use the error types to * classify errors to assist with remediating the failure. The response will be an * empty list if there is no error.

*/ inline void SetErrorTypes(const Aws::Vector& value) { m_errorTypesHasBeenSet = true; m_errorTypes = value; } /** *

Contains tags which describe the error. You can use the error types to * classify errors to assist with remediating the failure. The response will be an * empty list if there is no error.

*/ inline void SetErrorTypes(Aws::Vector&& value) { m_errorTypesHasBeenSet = true; m_errorTypes = std::move(value); } /** *

Contains tags which describe the error. You can use the error types to * classify errors to assist with remediating the failure. The response will be an * empty list if there is no error.

*/ inline EffectiveDeploymentStatusDetails& WithErrorTypes(const Aws::Vector& value) { SetErrorTypes(value); return *this;} /** *

Contains tags which describe the error. You can use the error types to * classify errors to assist with remediating the failure. The response will be an * empty list if there is no error.

*/ inline EffectiveDeploymentStatusDetails& WithErrorTypes(Aws::Vector&& value) { SetErrorTypes(std::move(value)); return *this;} /** *

Contains tags which describe the error. You can use the error types to * classify errors to assist with remediating the failure. The response will be an * empty list if there is no error.

*/ inline EffectiveDeploymentStatusDetails& AddErrorTypes(const Aws::String& value) { m_errorTypesHasBeenSet = true; m_errorTypes.push_back(value); return *this; } /** *

Contains tags which describe the error. You can use the error types to * classify errors to assist with remediating the failure. The response will be an * empty list if there is no error.

*/ inline EffectiveDeploymentStatusDetails& AddErrorTypes(Aws::String&& value) { m_errorTypesHasBeenSet = true; m_errorTypes.push_back(std::move(value)); return *this; } /** *

Contains tags which describe the error. You can use the error types to * classify errors to assist with remediating the failure. The response will be an * empty list if there is no error.

*/ inline EffectiveDeploymentStatusDetails& AddErrorTypes(const char* value) { m_errorTypesHasBeenSet = true; m_errorTypes.push_back(value); return *this; } private: Aws::Vector m_errorStack; bool m_errorStackHasBeenSet = false; Aws::Vector m_errorTypes; bool m_errorTypesHasBeenSet = false; }; } // namespace Model } // namespace GreengrassV2 } // namespace Aws