/** * 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 { /** *

An adjustment to the CVSS metric.

See Also:

AWS * API Reference

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

The metric to adjust.

*/ inline const Aws::String& GetMetric() const{ return m_metric; } /** *

The metric to adjust.

*/ inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; } /** *

The metric to adjust.

*/ inline void SetMetric(const Aws::String& value) { m_metricHasBeenSet = true; m_metric = value; } /** *

The metric to adjust.

*/ inline void SetMetric(Aws::String&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); } /** *

The metric to adjust.

*/ inline void SetMetric(const char* value) { m_metricHasBeenSet = true; m_metric.assign(value); } /** *

The metric to adjust.

*/ inline Adjustment& WithMetric(const Aws::String& value) { SetMetric(value); return *this;} /** *

The metric to adjust.

*/ inline Adjustment& WithMetric(Aws::String&& value) { SetMetric(std::move(value)); return *this;} /** *

The metric to adjust.

*/ inline Adjustment& WithMetric(const char* value) { SetMetric(value); return *this;} /** *

The reason for the adjustment.

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

The reason for the adjustment.

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

The reason for the adjustment.

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

The reason for the adjustment.

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

The reason for the adjustment.

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

The reason for the adjustment.

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

The reason for the adjustment.

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

The reason for the adjustment.

*/ inline Adjustment& WithReason(const char* value) { SetReason(value); return *this;} private: Aws::String m_metric; bool m_metricHasBeenSet = false; Aws::String m_reason; bool m_reasonHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws