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

Contains information on the lines of code associated with a code * snippet.

See Also:

AWS * API Reference

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

The content of a line of code

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

The content of a line of code

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

The content of a line of code

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

The content of a line of code

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

The content of a line of code

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

The content of a line of code

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

The content of a line of code

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

The content of a line of code

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

The line number that a section of code is located at.

*/ inline int GetLineNumber() const{ return m_lineNumber; } /** *

The line number that a section of code is located at.

*/ inline bool LineNumberHasBeenSet() const { return m_lineNumberHasBeenSet; } /** *

The line number that a section of code is located at.

*/ inline void SetLineNumber(int value) { m_lineNumberHasBeenSet = true; m_lineNumber = value; } /** *

The line number that a section of code is located at.

*/ inline CodeLine& WithLineNumber(int value) { SetLineNumber(value); return *this;} private: Aws::String m_content; bool m_contentHasBeenSet = false; int m_lineNumber; bool m_lineNumberHasBeenSet = false; }; } // namespace Model } // namespace Inspector2 } // namespace Aws