AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
CodeVulnerabilitiesFilePath.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SecurityHub {
20namespace Model {
21
29 public:
30 AWS_SECURITYHUB_API CodeVulnerabilitiesFilePath() = default;
33 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline int GetEndLine() const { return m_endLine; }
41 inline bool EndLineHasBeenSet() const { return m_endLineHasBeenSet; }
42 inline void SetEndLine(int value) {
43 m_endLineHasBeenSet = true;
44 m_endLine = value;
45 }
47 SetEndLine(value);
48 return *this;
49 }
51
53
56 inline const Aws::String& GetFileName() const { return m_fileName; }
57 inline bool FileNameHasBeenSet() const { return m_fileNameHasBeenSet; }
58 template <typename FileNameT = Aws::String>
59 void SetFileName(FileNameT&& value) {
60 m_fileNameHasBeenSet = true;
61 m_fileName = std::forward<FileNameT>(value);
62 }
63 template <typename FileNameT = Aws::String>
65 SetFileName(std::forward<FileNameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetFilePath() const { return m_filePath; }
75 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
76 template <typename FilePathT = Aws::String>
77 void SetFilePath(FilePathT&& value) {
78 m_filePathHasBeenSet = true;
79 m_filePath = std::forward<FilePathT>(value);
80 }
81 template <typename FilePathT = Aws::String>
83 SetFilePath(std::forward<FilePathT>(value));
84 return *this;
85 }
87
89
93 inline int GetStartLine() const { return m_startLine; }
94 inline bool StartLineHasBeenSet() const { return m_startLineHasBeenSet; }
95 inline void SetStartLine(int value) {
96 m_startLineHasBeenSet = true;
97 m_startLine = value;
98 }
100 SetStartLine(value);
101 return *this;
102 }
104 private:
105 int m_endLine{0};
106
107 Aws::String m_fileName;
108
109 Aws::String m_filePath;
110
111 int m_startLine{0};
112 bool m_endLineHasBeenSet = false;
113 bool m_fileNameHasBeenSet = false;
114 bool m_filePathHasBeenSet = false;
115 bool m_startLineHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace SecurityHub
120} // namespace Aws
CodeVulnerabilitiesFilePath & WithFileName(FileNameT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
CodeVulnerabilitiesFilePath & WithFilePath(FilePathT &&value)
AWS_SECURITYHUB_API CodeVulnerabilitiesFilePath()=default
AWS_SECURITYHUB_API CodeVulnerabilitiesFilePath(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API CodeVulnerabilitiesFilePath & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue