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

The line of code where a finding was detected.

See Also:

AWS * API Reference

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

The code that contains a vulnerability.

*/ inline const Aws::String& GetContent() const{ return m_content; } /** *

The code that contains a vulnerability.

*/ inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; } /** *

The code that contains a vulnerability.

*/ inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; } /** *

The code that contains a vulnerability.

*/ inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); } /** *

The code that contains a vulnerability.

*/ inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); } /** *

The code that contains a vulnerability.

*/ inline CodeLine& WithContent(const Aws::String& value) { SetContent(value); return *this;} /** *

The code that contains a vulnerability.

*/ inline CodeLine& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;} /** *

The code that contains a vulnerability.

*/ inline CodeLine& WithContent(const char* value) { SetContent(value); return *this;} /** *

The code line number.

*/ inline int GetNumber() const{ return m_number; } /** *

The code line number.

*/ inline bool NumberHasBeenSet() const { return m_numberHasBeenSet; } /** *

The code line number.

*/ inline void SetNumber(int value) { m_numberHasBeenSet = true; m_number = value; } /** *

The code line number.

*/ inline CodeLine& WithNumber(int value) { SetNumber(value); return *this;} private: Aws::String m_content; bool m_contentHasBeenSet = false; int m_number; bool m_numberHasBeenSet = false; }; } // namespace Model } // namespace CodeGuruSecurity } // namespace Aws