/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CodeGuruSecurity { namespace Model { /** *

Information about how to remediate a finding.

See Also:

AWS * API Reference

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

An object that contains information about the recommended course of action to * remediate a finding.

*/ inline const Recommendation& GetRecommendation() const{ return m_recommendation; } /** *

An object that contains information about the recommended course of action to * remediate a finding.

*/ inline bool RecommendationHasBeenSet() const { return m_recommendationHasBeenSet; } /** *

An object that contains information about the recommended course of action to * remediate a finding.

*/ inline void SetRecommendation(const Recommendation& value) { m_recommendationHasBeenSet = true; m_recommendation = value; } /** *

An object that contains information about the recommended course of action to * remediate a finding.

*/ inline void SetRecommendation(Recommendation&& value) { m_recommendationHasBeenSet = true; m_recommendation = std::move(value); } /** *

An object that contains information about the recommended course of action to * remediate a finding.

*/ inline Remediation& WithRecommendation(const Recommendation& value) { SetRecommendation(value); return *this;} /** *

An object that contains information about the recommended course of action to * remediate a finding.

*/ inline Remediation& WithRecommendation(Recommendation&& value) { SetRecommendation(std::move(value)); return *this;} /** *

A list of SuggestedFix objects. Each object contains information * about a suggested code fix to remediate the finding.

*/ inline const Aws::Vector& GetSuggestedFixes() const{ return m_suggestedFixes; } /** *

A list of SuggestedFix objects. Each object contains information * about a suggested code fix to remediate the finding.

*/ inline bool SuggestedFixesHasBeenSet() const { return m_suggestedFixesHasBeenSet; } /** *

A list of SuggestedFix objects. Each object contains information * about a suggested code fix to remediate the finding.

*/ inline void SetSuggestedFixes(const Aws::Vector& value) { m_suggestedFixesHasBeenSet = true; m_suggestedFixes = value; } /** *

A list of SuggestedFix objects. Each object contains information * about a suggested code fix to remediate the finding.

*/ inline void SetSuggestedFixes(Aws::Vector&& value) { m_suggestedFixesHasBeenSet = true; m_suggestedFixes = std::move(value); } /** *

A list of SuggestedFix objects. Each object contains information * about a suggested code fix to remediate the finding.

*/ inline Remediation& WithSuggestedFixes(const Aws::Vector& value) { SetSuggestedFixes(value); return *this;} /** *

A list of SuggestedFix objects. Each object contains information * about a suggested code fix to remediate the finding.

*/ inline Remediation& WithSuggestedFixes(Aws::Vector&& value) { SetSuggestedFixes(std::move(value)); return *this;} /** *

A list of SuggestedFix objects. Each object contains information * about a suggested code fix to remediate the finding.

*/ inline Remediation& AddSuggestedFixes(const SuggestedFix& value) { m_suggestedFixesHasBeenSet = true; m_suggestedFixes.push_back(value); return *this; } /** *

A list of SuggestedFix objects. Each object contains information * about a suggested code fix to remediate the finding.

*/ inline Remediation& AddSuggestedFixes(SuggestedFix&& value) { m_suggestedFixesHasBeenSet = true; m_suggestedFixes.push_back(std::move(value)); return *this; } private: Recommendation m_recommendation; bool m_recommendationHasBeenSet = false; Aws::Vector m_suggestedFixes; bool m_suggestedFixesHasBeenSet = false; }; } // namespace Model } // namespace CodeGuruSecurity } // namespace Aws