This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files

158 lines
6.5 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/securityhub/SecurityHub_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SecurityHub
{
namespace Model
{
/**
* <p>Provides additional context for the value of
* <code>Compliance.Status</code>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/StatusReason">AWS
* API Reference</a></p>
*/
class AWS_SECURITYHUB_API StatusReason
{
public:
StatusReason();
StatusReason(Aws::Utils::Json::JsonView jsonValue);
StatusReason& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>A code that represents a reason for the control status. For the list of
* status reason codes and their meanings, see <a
* href="https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-standards-results.html#securityhub-standards-results-asff">Standards-related
* information in the ASFF</a> in the <i>AWS Security Hub User Guide</i>. </p>
*/
inline const Aws::String& GetReasonCode() const{ return m_reasonCode; }
/**
* <p>A code that represents a reason for the control status. For the list of
* status reason codes and their meanings, see <a
* href="https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-standards-results.html#securityhub-standards-results-asff">Standards-related
* information in the ASFF</a> in the <i>AWS Security Hub User Guide</i>. </p>
*/
inline bool ReasonCodeHasBeenSet() const { return m_reasonCodeHasBeenSet; }
/**
* <p>A code that represents a reason for the control status. For the list of
* status reason codes and their meanings, see <a
* href="https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-standards-results.html#securityhub-standards-results-asff">Standards-related
* information in the ASFF</a> in the <i>AWS Security Hub User Guide</i>. </p>
*/
inline void SetReasonCode(const Aws::String& value) { m_reasonCodeHasBeenSet = true; m_reasonCode = value; }
/**
* <p>A code that represents a reason for the control status. For the list of
* status reason codes and their meanings, see <a
* href="https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-standards-results.html#securityhub-standards-results-asff">Standards-related
* information in the ASFF</a> in the <i>AWS Security Hub User Guide</i>. </p>
*/
inline void SetReasonCode(Aws::String&& value) { m_reasonCodeHasBeenSet = true; m_reasonCode = std::move(value); }
/**
* <p>A code that represents a reason for the control status. For the list of
* status reason codes and their meanings, see <a
* href="https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-standards-results.html#securityhub-standards-results-asff">Standards-related
* information in the ASFF</a> in the <i>AWS Security Hub User Guide</i>. </p>
*/
inline void SetReasonCode(const char* value) { m_reasonCodeHasBeenSet = true; m_reasonCode.assign(value); }
/**
* <p>A code that represents a reason for the control status. For the list of
* status reason codes and their meanings, see <a
* href="https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-standards-results.html#securityhub-standards-results-asff">Standards-related
* information in the ASFF</a> in the <i>AWS Security Hub User Guide</i>. </p>
*/
inline StatusReason& WithReasonCode(const Aws::String& value) { SetReasonCode(value); return *this;}
/**
* <p>A code that represents a reason for the control status. For the list of
* status reason codes and their meanings, see <a
* href="https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-standards-results.html#securityhub-standards-results-asff">Standards-related
* information in the ASFF</a> in the <i>AWS Security Hub User Guide</i>. </p>
*/
inline StatusReason& WithReasonCode(Aws::String&& value) { SetReasonCode(std::move(value)); return *this;}
/**
* <p>A code that represents a reason for the control status. For the list of
* status reason codes and their meanings, see <a
* href="https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-standards-results.html#securityhub-standards-results-asff">Standards-related
* information in the ASFF</a> in the <i>AWS Security Hub User Guide</i>. </p>
*/
inline StatusReason& WithReasonCode(const char* value) { SetReasonCode(value); return *this;}
/**
* <p>The corresponding description for the status reason code.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>The corresponding description for the status reason code.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>The corresponding description for the status reason code.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>The corresponding description for the status reason code.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>The corresponding description for the status reason code.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>The corresponding description for the status reason code.</p>
*/
inline StatusReason& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The corresponding description for the status reason code.</p>
*/
inline StatusReason& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The corresponding description for the status reason code.</p>
*/
inline StatusReason& WithDescription(const char* value) { SetDescription(value); return *this;}
private:
Aws::String m_reasonCode;
bool m_reasonCodeHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
};
} // namespace Model
} // namespace SecurityHub
} // namespace Aws