/** * 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 suggested code fix to remediate a * finding.

See Also:

AWS * API Reference

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

The suggested code to add to your file.

*/ inline const Aws::String& GetCode() const{ return m_code; } /** *

The suggested code to add to your file.

*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *

The suggested code to add to your file.

*/ inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; } /** *

The suggested code to add to your file.

*/ inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *

The suggested code to add to your file.

*/ inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); } /** *

The suggested code to add to your file.

*/ inline SuggestedFix& WithCode(const Aws::String& value) { SetCode(value); return *this;} /** *

The suggested code to add to your file.

*/ inline SuggestedFix& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;} /** *

The suggested code to add to your file.

*/ inline SuggestedFix& WithCode(const char* value) { SetCode(value); return *this;} /** *

A description of the suggested code fix and why it is being suggested.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description of the suggested code fix and why it is being suggested.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description of the suggested code fix and why it is being suggested.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description of the suggested code fix and why it is being suggested.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description of the suggested code fix and why it is being suggested.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description of the suggested code fix and why it is being suggested.

*/ inline SuggestedFix& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description of the suggested code fix and why it is being suggested.

*/ inline SuggestedFix& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description of the suggested code fix and why it is being suggested.

*/ inline SuggestedFix& WithDescription(const char* value) { SetDescription(value); return *this;} private: Aws::String m_code; bool m_codeHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; }; } // namespace Model } // namespace CodeGuruSecurity } // namespace Aws