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

Information about the recommended course of action to remediate a * finding.

See Also:

AWS * API Reference

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

The recommended course of action to remediate the finding.

*/ inline const Aws::String& GetText() const{ return m_text; } /** *

The recommended course of action to remediate the finding.

*/ inline bool TextHasBeenSet() const { return m_textHasBeenSet; } /** *

The recommended course of action to remediate the finding.

*/ inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; } /** *

The recommended course of action to remediate the finding.

*/ inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); } /** *

The recommended course of action to remediate the finding.

*/ inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); } /** *

The recommended course of action to remediate the finding.

*/ inline Recommendation& WithText(const Aws::String& value) { SetText(value); return *this;} /** *

The recommended course of action to remediate the finding.

*/ inline Recommendation& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;} /** *

The recommended course of action to remediate the finding.

*/ inline Recommendation& WithText(const char* value) { SetText(value); return *this;} /** *

The URL address to the recommendation for remediating the finding.

*/ inline const Aws::String& GetUrl() const{ return m_url; } /** *

The URL address to the recommendation for remediating the finding.

*/ inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; } /** *

The URL address to the recommendation for remediating the finding.

*/ inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; } /** *

The URL address to the recommendation for remediating the finding.

*/ inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); } /** *

The URL address to the recommendation for remediating the finding.

*/ inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); } /** *

The URL address to the recommendation for remediating the finding.

*/ inline Recommendation& WithUrl(const Aws::String& value) { SetUrl(value); return *this;} /** *

The URL address to the recommendation for remediating the finding.

*/ inline Recommendation& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;} /** *

The URL address to the recommendation for remediating the finding.

*/ inline Recommendation& WithUrl(const char* value) { SetUrl(value); return *this;} private: Aws::String m_text; bool m_textHasBeenSet = false; Aws::String m_url; bool m_urlHasBeenSet = false; }; } // namespace Model } // namespace CodeGuruSecurity } // namespace Aws