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

Provides additional context for the value of * Compliance.Status.

See Also:

AWS * API Reference

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

A code that represents a reason for the control status. For the list of * status reason codes and their meanings, see Standards-related * information in the ASFF in the Security Hub User Guide.

*/ inline const Aws::String& GetReasonCode() const{ return m_reasonCode; } /** *

A code that represents a reason for the control status. For the list of * status reason codes and their meanings, see Standards-related * information in the ASFF in the Security Hub User Guide.

*/ inline bool ReasonCodeHasBeenSet() const { return m_reasonCodeHasBeenSet; } /** *

A code that represents a reason for the control status. For the list of * status reason codes and their meanings, see Standards-related * information in the ASFF in the Security Hub User Guide.

*/ inline void SetReasonCode(const Aws::String& value) { m_reasonCodeHasBeenSet = true; m_reasonCode = value; } /** *

A code that represents a reason for the control status. For the list of * status reason codes and their meanings, see Standards-related * information in the ASFF in the Security Hub User Guide.

*/ inline void SetReasonCode(Aws::String&& value) { m_reasonCodeHasBeenSet = true; m_reasonCode = std::move(value); } /** *

A code that represents a reason for the control status. For the list of * status reason codes and their meanings, see Standards-related * information in the ASFF in the Security Hub User Guide.

*/ inline void SetReasonCode(const char* value) { m_reasonCodeHasBeenSet = true; m_reasonCode.assign(value); } /** *

A code that represents a reason for the control status. For the list of * status reason codes and their meanings, see Standards-related * information in the ASFF in the Security Hub User Guide.

*/ inline StatusReason& WithReasonCode(const Aws::String& value) { SetReasonCode(value); return *this;} /** *

A code that represents a reason for the control status. For the list of * status reason codes and their meanings, see Standards-related * information in the ASFF in the Security Hub User Guide.

*/ inline StatusReason& WithReasonCode(Aws::String&& value) { SetReasonCode(std::move(value)); return *this;} /** *

A code that represents a reason for the control status. For the list of * status reason codes and their meanings, see Standards-related * information in the ASFF in the Security Hub User Guide.

*/ inline StatusReason& WithReasonCode(const char* value) { SetReasonCode(value); return *this;} /** *

The corresponding description for the status reason code.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The corresponding description for the status reason code.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The corresponding description for the status reason code.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The corresponding description for the status reason code.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The corresponding description for the status reason code.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The corresponding description for the status reason code.

*/ inline StatusReason& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The corresponding description for the status reason code.

*/ inline StatusReason& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The corresponding description for the status reason code.

*/ inline StatusReason& WithDescription(const char* value) { SetDescription(value); return *this;} private: Aws::String m_reasonCode; bool m_reasonCodeHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws