/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ResilienceHub { namespace Model { /** *

Defines application resource errors.

See Also:

AWS * API Reference

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

This is the identifier of the resource.

*/ inline const Aws::String& GetLogicalResourceId() const{ return m_logicalResourceId; } /** *

This is the identifier of the resource.

*/ inline bool LogicalResourceIdHasBeenSet() const { return m_logicalResourceIdHasBeenSet; } /** *

This is the identifier of the resource.

*/ inline void SetLogicalResourceId(const Aws::String& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = value; } /** *

This is the identifier of the resource.

*/ inline void SetLogicalResourceId(Aws::String&& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = std::move(value); } /** *

This is the identifier of the resource.

*/ inline void SetLogicalResourceId(const char* value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId.assign(value); } /** *

This is the identifier of the resource.

*/ inline ResourceError& WithLogicalResourceId(const Aws::String& value) { SetLogicalResourceId(value); return *this;} /** *

This is the identifier of the resource.

*/ inline ResourceError& WithLogicalResourceId(Aws::String&& value) { SetLogicalResourceId(std::move(value)); return *this;} /** *

This is the identifier of the resource.

*/ inline ResourceError& WithLogicalResourceId(const char* value) { SetLogicalResourceId(value); return *this;} /** *

This is the identifier of the physical resource.

*/ inline const Aws::String& GetPhysicalResourceId() const{ return m_physicalResourceId; } /** *

This is the identifier of the physical resource.

*/ inline bool PhysicalResourceIdHasBeenSet() const { return m_physicalResourceIdHasBeenSet; } /** *

This is the identifier of the physical resource.

*/ inline void SetPhysicalResourceId(const Aws::String& value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId = value; } /** *

This is the identifier of the physical resource.

*/ inline void SetPhysicalResourceId(Aws::String&& value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId = std::move(value); } /** *

This is the identifier of the physical resource.

*/ inline void SetPhysicalResourceId(const char* value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId.assign(value); } /** *

This is the identifier of the physical resource.

*/ inline ResourceError& WithPhysicalResourceId(const Aws::String& value) { SetPhysicalResourceId(value); return *this;} /** *

This is the identifier of the physical resource.

*/ inline ResourceError& WithPhysicalResourceId(Aws::String&& value) { SetPhysicalResourceId(std::move(value)); return *this;} /** *

This is the identifier of the physical resource.

*/ inline ResourceError& WithPhysicalResourceId(const char* value) { SetPhysicalResourceId(value); return *this;} /** *

This is the error message.

*/ inline const Aws::String& GetReason() const{ return m_reason; } /** *

This is the error message.

*/ inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } /** *

This is the error message.

*/ inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; } /** *

This is the error message.

*/ inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } /** *

This is the error message.

*/ inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); } /** *

This is the error message.

*/ inline ResourceError& WithReason(const Aws::String& value) { SetReason(value); return *this;} /** *

This is the error message.

*/ inline ResourceError& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;} /** *

This is the error message.

*/ inline ResourceError& WithReason(const char* value) { SetReason(value); return *this;} private: Aws::String m_logicalResourceId; bool m_logicalResourceIdHasBeenSet = false; Aws::String m_physicalResourceId; bool m_physicalResourceIdHasBeenSet = false; Aws::String m_reason; bool m_reasonHasBeenSet = false; }; } // namespace Model } // namespace ResilienceHub } // namespace Aws