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
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-securityhub/include/aws/securityhub/model/SeverityUpdate.h

192 lines
8.5 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* 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/securityhub/model/SeverityLabel.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SecurityHub
{
namespace Model
{
/**
* <p>Updates to the severity information for a finding.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/SeverityUpdate">AWS
* API Reference</a></p>
*/
class AWS_SECURITYHUB_API SeverityUpdate
{
public:
SeverityUpdate();
SeverityUpdate(Aws::Utils::Json::JsonView jsonValue);
SeverityUpdate& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The normalized severity for the finding. This attribute is to be deprecated
* in favor of <code>Label</code>.</p> <p>If you provide <code>Normalized</code>
* and do not provide <code>Label</code>, <code>Label</code> is set automatically
* as follows.</p> <ul> <li> <p>0 - <code>INFORMATIONAL</code> </p> </li> <li>
* <p>139 - <code>LOW</code> </p> </li> <li> <p>4069 - <code>MEDIUM</code> </p>
* </li> <li> <p>7089 - <code>HIGH</code> </p> </li> <li> <p>90100 -
* <code>CRITICAL</code> </p> </li> </ul>
*/
inline int GetNormalized() const{ return m_normalized; }
/**
* <p>The normalized severity for the finding. This attribute is to be deprecated
* in favor of <code>Label</code>.</p> <p>If you provide <code>Normalized</code>
* and do not provide <code>Label</code>, <code>Label</code> is set automatically
* as follows.</p> <ul> <li> <p>0 - <code>INFORMATIONAL</code> </p> </li> <li>
* <p>139 - <code>LOW</code> </p> </li> <li> <p>4069 - <code>MEDIUM</code> </p>
* </li> <li> <p>7089 - <code>HIGH</code> </p> </li> <li> <p>90100 -
* <code>CRITICAL</code> </p> </li> </ul>
*/
inline bool NormalizedHasBeenSet() const { return m_normalizedHasBeenSet; }
/**
* <p>The normalized severity for the finding. This attribute is to be deprecated
* in favor of <code>Label</code>.</p> <p>If you provide <code>Normalized</code>
* and do not provide <code>Label</code>, <code>Label</code> is set automatically
* as follows.</p> <ul> <li> <p>0 - <code>INFORMATIONAL</code> </p> </li> <li>
* <p>139 - <code>LOW</code> </p> </li> <li> <p>4069 - <code>MEDIUM</code> </p>
* </li> <li> <p>7089 - <code>HIGH</code> </p> </li> <li> <p>90100 -
* <code>CRITICAL</code> </p> </li> </ul>
*/
inline void SetNormalized(int value) { m_normalizedHasBeenSet = true; m_normalized = value; }
/**
* <p>The normalized severity for the finding. This attribute is to be deprecated
* in favor of <code>Label</code>.</p> <p>If you provide <code>Normalized</code>
* and do not provide <code>Label</code>, <code>Label</code> is set automatically
* as follows.</p> <ul> <li> <p>0 - <code>INFORMATIONAL</code> </p> </li> <li>
* <p>139 - <code>LOW</code> </p> </li> <li> <p>4069 - <code>MEDIUM</code> </p>
* </li> <li> <p>7089 - <code>HIGH</code> </p> </li> <li> <p>90100 -
* <code>CRITICAL</code> </p> </li> </ul>
*/
inline SeverityUpdate& WithNormalized(int value) { SetNormalized(value); return *this;}
/**
* <p>The native severity as defined by the AWS service or integrated partner
* product that generated the finding.</p>
*/
inline double GetProduct() const{ return m_product; }
/**
* <p>The native severity as defined by the AWS service or integrated partner
* product that generated the finding.</p>
*/
inline bool ProductHasBeenSet() const { return m_productHasBeenSet; }
/**
* <p>The native severity as defined by the AWS service or integrated partner
* product that generated the finding.</p>
*/
inline void SetProduct(double value) { m_productHasBeenSet = true; m_product = value; }
/**
* <p>The native severity as defined by the AWS service or integrated partner
* product that generated the finding.</p>
*/
inline SeverityUpdate& WithProduct(double value) { SetProduct(value); return *this;}
/**
* <p>The severity value of the finding. The allowed values are the following.</p>
* <ul> <li> <p> <code>INFORMATIONAL</code> - No issue was found.</p> </li> <li>
* <p> <code>LOW</code> - The issue does not require action on its own.</p> </li>
* <li> <p> <code>MEDIUM</code> - The issue must be addressed but not urgently.</p>
* </li> <li> <p> <code>HIGH</code> - The issue must be addressed as a
* priority.</p> </li> <li> <p> <code>CRITICAL</code> - The issue must be
* remediated immediately to avoid it escalating.</p> </li> </ul>
*/
inline const SeverityLabel& GetLabel() const{ return m_label; }
/**
* <p>The severity value of the finding. The allowed values are the following.</p>
* <ul> <li> <p> <code>INFORMATIONAL</code> - No issue was found.</p> </li> <li>
* <p> <code>LOW</code> - The issue does not require action on its own.</p> </li>
* <li> <p> <code>MEDIUM</code> - The issue must be addressed but not urgently.</p>
* </li> <li> <p> <code>HIGH</code> - The issue must be addressed as a
* priority.</p> </li> <li> <p> <code>CRITICAL</code> - The issue must be
* remediated immediately to avoid it escalating.</p> </li> </ul>
*/
inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
/**
* <p>The severity value of the finding. The allowed values are the following.</p>
* <ul> <li> <p> <code>INFORMATIONAL</code> - No issue was found.</p> </li> <li>
* <p> <code>LOW</code> - The issue does not require action on its own.</p> </li>
* <li> <p> <code>MEDIUM</code> - The issue must be addressed but not urgently.</p>
* </li> <li> <p> <code>HIGH</code> - The issue must be addressed as a
* priority.</p> </li> <li> <p> <code>CRITICAL</code> - The issue must be
* remediated immediately to avoid it escalating.</p> </li> </ul>
*/
inline void SetLabel(const SeverityLabel& value) { m_labelHasBeenSet = true; m_label = value; }
/**
* <p>The severity value of the finding. The allowed values are the following.</p>
* <ul> <li> <p> <code>INFORMATIONAL</code> - No issue was found.</p> </li> <li>
* <p> <code>LOW</code> - The issue does not require action on its own.</p> </li>
* <li> <p> <code>MEDIUM</code> - The issue must be addressed but not urgently.</p>
* </li> <li> <p> <code>HIGH</code> - The issue must be addressed as a
* priority.</p> </li> <li> <p> <code>CRITICAL</code> - The issue must be
* remediated immediately to avoid it escalating.</p> </li> </ul>
*/
inline void SetLabel(SeverityLabel&& value) { m_labelHasBeenSet = true; m_label = std::move(value); }
/**
* <p>The severity value of the finding. The allowed values are the following.</p>
* <ul> <li> <p> <code>INFORMATIONAL</code> - No issue was found.</p> </li> <li>
* <p> <code>LOW</code> - The issue does not require action on its own.</p> </li>
* <li> <p> <code>MEDIUM</code> - The issue must be addressed but not urgently.</p>
* </li> <li> <p> <code>HIGH</code> - The issue must be addressed as a
* priority.</p> </li> <li> <p> <code>CRITICAL</code> - The issue must be
* remediated immediately to avoid it escalating.</p> </li> </ul>
*/
inline SeverityUpdate& WithLabel(const SeverityLabel& value) { SetLabel(value); return *this;}
/**
* <p>The severity value of the finding. The allowed values are the following.</p>
* <ul> <li> <p> <code>INFORMATIONAL</code> - No issue was found.</p> </li> <li>
* <p> <code>LOW</code> - The issue does not require action on its own.</p> </li>
* <li> <p> <code>MEDIUM</code> - The issue must be addressed but not urgently.</p>
* </li> <li> <p> <code>HIGH</code> - The issue must be addressed as a
* priority.</p> </li> <li> <p> <code>CRITICAL</code> - The issue must be
* remediated immediately to avoid it escalating.</p> </li> </ul>
*/
inline SeverityUpdate& WithLabel(SeverityLabel&& value) { SetLabel(std::move(value)); return *this;}
private:
int m_normalized;
bool m_normalizedHasBeenSet;
double m_product;
bool m_productHasBeenSet;
SeverityLabel m_label;
bool m_labelHasBeenSet;
};
} // namespace Model
} // namespace SecurityHub
} // namespace Aws