/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains information on where a code vulnerability is located in your Lambda
* function.See Also:
AWS
* API Reference
The line number of the last line of code that a vulnerability was found * in.
*/ inline int GetEndLine() const{ return m_endLine; } /** *The line number of the last line of code that a vulnerability was found * in.
*/ inline bool EndLineHasBeenSet() const { return m_endLineHasBeenSet; } /** *The line number of the last line of code that a vulnerability was found * in.
*/ inline void SetEndLine(int value) { m_endLineHasBeenSet = true; m_endLine = value; } /** *The line number of the last line of code that a vulnerability was found * in.
*/ inline CodeFilePath& WithEndLine(int value) { SetEndLine(value); return *this;} /** *The name of the file the code vulnerability was found in.
*/ inline const Aws::String& GetFileName() const{ return m_fileName; } /** *The name of the file the code vulnerability was found in.
*/ inline bool FileNameHasBeenSet() const { return m_fileNameHasBeenSet; } /** *The name of the file the code vulnerability was found in.
*/ inline void SetFileName(const Aws::String& value) { m_fileNameHasBeenSet = true; m_fileName = value; } /** *The name of the file the code vulnerability was found in.
*/ inline void SetFileName(Aws::String&& value) { m_fileNameHasBeenSet = true; m_fileName = std::move(value); } /** *The name of the file the code vulnerability was found in.
*/ inline void SetFileName(const char* value) { m_fileNameHasBeenSet = true; m_fileName.assign(value); } /** *The name of the file the code vulnerability was found in.
*/ inline CodeFilePath& WithFileName(const Aws::String& value) { SetFileName(value); return *this;} /** *The name of the file the code vulnerability was found in.
*/ inline CodeFilePath& WithFileName(Aws::String&& value) { SetFileName(std::move(value)); return *this;} /** *The name of the file the code vulnerability was found in.
*/ inline CodeFilePath& WithFileName(const char* value) { SetFileName(value); return *this;} /** *The file path to the code that a vulnerability was found in.
*/ inline const Aws::String& GetFilePath() const{ return m_filePath; } /** *The file path to the code that a vulnerability was found in.
*/ inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; } /** *The file path to the code that a vulnerability was found in.
*/ inline void SetFilePath(const Aws::String& value) { m_filePathHasBeenSet = true; m_filePath = value; } /** *The file path to the code that a vulnerability was found in.
*/ inline void SetFilePath(Aws::String&& value) { m_filePathHasBeenSet = true; m_filePath = std::move(value); } /** *The file path to the code that a vulnerability was found in.
*/ inline void SetFilePath(const char* value) { m_filePathHasBeenSet = true; m_filePath.assign(value); } /** *The file path to the code that a vulnerability was found in.
*/ inline CodeFilePath& WithFilePath(const Aws::String& value) { SetFilePath(value); return *this;} /** *The file path to the code that a vulnerability was found in.
*/ inline CodeFilePath& WithFilePath(Aws::String&& value) { SetFilePath(std::move(value)); return *this;} /** *The file path to the code that a vulnerability was found in.
*/ inline CodeFilePath& WithFilePath(const char* value) { SetFilePath(value); return *this;} /** *The line number of the first line of code that a vulnerability was found * in.
*/ inline int GetStartLine() const{ return m_startLine; } /** *The line number of the first line of code that a vulnerability was found * in.
*/ inline bool StartLineHasBeenSet() const { return m_startLineHasBeenSet; } /** *The line number of the first line of code that a vulnerability was found * in.
*/ inline void SetStartLine(int value) { m_startLineHasBeenSet = true; m_startLine = value; } /** *The line number of the first line of code that a vulnerability was found * in.
*/ inline CodeFilePath& WithStartLine(int value) { SetStartLine(value); return *this;} private: int m_endLine; bool m_endLineHasBeenSet = false; Aws::String m_fileName; bool m_fileNameHasBeenSet = false; Aws::String m_filePath; bool m_filePathHasBeenSet = false; int m_startLine; bool m_startLineHasBeenSet = false; }; } // namespace Model } // namespace Inspector2 } // namespace Aws