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

Details on adjustments Amazon Inspector made to the CVSS score for a * finding.

See Also:

AWS * API Reference

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

The metric used to adjust the CVSS score.

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

The metric used to adjust the CVSS score.

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

The metric used to adjust the CVSS score.

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

The metric used to adjust the CVSS score.

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

The metric used to adjust the CVSS score.

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

The metric used to adjust the CVSS score.

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

The metric used to adjust the CVSS score.

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

The metric used to adjust the CVSS score.

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

The reason the CVSS score has been adjustment.

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

The reason the CVSS score has been adjustment.

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

The reason the CVSS score has been adjustment.

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

The reason the CVSS score has been adjustment.

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

The reason the CVSS score has been adjustment.

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

The reason the CVSS score has been adjustment.

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

The reason the CVSS score has been adjustment.

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

The reason the CVSS score has been adjustment.

*/ inline CvssScoreAdjustment& 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 ECR } // namespace Aws