/** * 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 the location of security vulnerabilities that Amazon * CodeGuru Security detected in your code.

See Also:

AWS * API Reference

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

A list of CodeLine objects that describe where the security * vulnerability appears in your code.

*/ inline const Aws::Vector& GetCodeSnippet() const{ return m_codeSnippet; } /** *

A list of CodeLine objects that describe where the security * vulnerability appears in your code.

*/ inline bool CodeSnippetHasBeenSet() const { return m_codeSnippetHasBeenSet; } /** *

A list of CodeLine objects that describe where the security * vulnerability appears in your code.

*/ inline void SetCodeSnippet(const Aws::Vector& value) { m_codeSnippetHasBeenSet = true; m_codeSnippet = value; } /** *

A list of CodeLine objects that describe where the security * vulnerability appears in your code.

*/ inline void SetCodeSnippet(Aws::Vector&& value) { m_codeSnippetHasBeenSet = true; m_codeSnippet = std::move(value); } /** *

A list of CodeLine objects that describe where the security * vulnerability appears in your code.

*/ inline FilePath& WithCodeSnippet(const Aws::Vector& value) { SetCodeSnippet(value); return *this;} /** *

A list of CodeLine objects that describe where the security * vulnerability appears in your code.

*/ inline FilePath& WithCodeSnippet(Aws::Vector&& value) { SetCodeSnippet(std::move(value)); return *this;} /** *

A list of CodeLine objects that describe where the security * vulnerability appears in your code.

*/ inline FilePath& AddCodeSnippet(const CodeLine& value) { m_codeSnippetHasBeenSet = true; m_codeSnippet.push_back(value); return *this; } /** *

A list of CodeLine objects that describe where the security * vulnerability appears in your code.

*/ inline FilePath& AddCodeSnippet(CodeLine&& value) { m_codeSnippetHasBeenSet = true; m_codeSnippet.push_back(std::move(value)); return *this; } /** *

The last line number of the code snippet where the security vulnerability * appears in your code.

*/ inline int GetEndLine() const{ return m_endLine; } /** *

The last line number of the code snippet where the security vulnerability * appears in your code.

*/ inline bool EndLineHasBeenSet() const { return m_endLineHasBeenSet; } /** *

The last line number of the code snippet where the security vulnerability * appears in your code.

*/ inline void SetEndLine(int value) { m_endLineHasBeenSet = true; m_endLine = value; } /** *

The last line number of the code snippet where the security vulnerability * appears in your code.

*/ inline FilePath& WithEndLine(int value) { SetEndLine(value); return *this;} /** *

The name of the file.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the file.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the file.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the file.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the file.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the file.

*/ inline FilePath& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the file.

*/ inline FilePath& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the file.

*/ inline FilePath& WithName(const char* value) { SetName(value); return *this;} /** *

The path to the resource with the security vulnerability.

*/ inline const Aws::String& GetPath() const{ return m_path; } /** *

The path to the resource with the security vulnerability.

*/ inline bool PathHasBeenSet() const { return m_pathHasBeenSet; } /** *

The path to the resource with the security vulnerability.

*/ inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; } /** *

The path to the resource with the security vulnerability.

*/ inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); } /** *

The path to the resource with the security vulnerability.

*/ inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); } /** *

The path to the resource with the security vulnerability.

*/ inline FilePath& WithPath(const Aws::String& value) { SetPath(value); return *this;} /** *

The path to the resource with the security vulnerability.

*/ inline FilePath& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;} /** *

The path to the resource with the security vulnerability.

*/ inline FilePath& WithPath(const char* value) { SetPath(value); return *this;} /** *

The first line number of the code snippet where the security vulnerability * appears in your code.

*/ inline int GetStartLine() const{ return m_startLine; } /** *

The first line number of the code snippet where the security vulnerability * appears in your code.

*/ inline bool StartLineHasBeenSet() const { return m_startLineHasBeenSet; } /** *

The first line number of the code snippet where the security vulnerability * appears in your code.

*/ inline void SetStartLine(int value) { m_startLineHasBeenSet = true; m_startLine = value; } /** *

The first line number of the code snippet where the security vulnerability * appears in your code.

*/ inline FilePath& WithStartLine(int value) { SetStartLine(value); return *this;} private: Aws::Vector m_codeSnippet; bool m_codeSnippetHasBeenSet = false; int m_endLine; bool m_endLineHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_path; bool m_pathHasBeenSet = false; int m_startLine; bool m_startLineHasBeenSet = false; }; } // namespace Model } // namespace CodeGuruSecurity } // namespace Aws