AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
FilePath.h
1
6#pragma once
7#include <aws/codeguru-security/CodeGuruSecurity_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/codeguru-security/model/CodeLine.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodeGuruSecurity
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CODEGURUSECURITY_API FilePath() = default;
38 AWS_CODEGURUSECURITY_API FilePath(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEGURUSECURITY_API FilePath& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODEGURUSECURITY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::Vector<CodeLine>& GetCodeSnippet() const { return m_codeSnippet; }
49 inline bool CodeSnippetHasBeenSet() const { return m_codeSnippetHasBeenSet; }
50 template<typename CodeSnippetT = Aws::Vector<CodeLine>>
51 void SetCodeSnippet(CodeSnippetT&& value) { m_codeSnippetHasBeenSet = true; m_codeSnippet = std::forward<CodeSnippetT>(value); }
52 template<typename CodeSnippetT = Aws::Vector<CodeLine>>
53 FilePath& WithCodeSnippet(CodeSnippetT&& value) { SetCodeSnippet(std::forward<CodeSnippetT>(value)); return *this;}
54 template<typename CodeSnippetT = CodeLine>
55 FilePath& AddCodeSnippet(CodeSnippetT&& value) { m_codeSnippetHasBeenSet = true; m_codeSnippet.emplace_back(std::forward<CodeSnippetT>(value)); return *this; }
57
59
63 inline int GetEndLine() const { return m_endLine; }
64 inline bool EndLineHasBeenSet() const { return m_endLineHasBeenSet; }
65 inline void SetEndLine(int value) { m_endLineHasBeenSet = true; m_endLine = value; }
66 inline FilePath& WithEndLine(int value) { SetEndLine(value); return *this;}
68
70
73 inline const Aws::String& GetName() const { return m_name; }
74 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
75 template<typename NameT = Aws::String>
76 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
77 template<typename NameT = Aws::String>
78 FilePath& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
80
82
85 inline const Aws::String& GetPath() const { return m_path; }
86 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
87 template<typename PathT = Aws::String>
88 void SetPath(PathT&& value) { m_pathHasBeenSet = true; m_path = std::forward<PathT>(value); }
89 template<typename PathT = Aws::String>
90 FilePath& WithPath(PathT&& value) { SetPath(std::forward<PathT>(value)); return *this;}
92
94
98 inline int GetStartLine() const { return m_startLine; }
99 inline bool StartLineHasBeenSet() const { return m_startLineHasBeenSet; }
100 inline void SetStartLine(int value) { m_startLineHasBeenSet = true; m_startLine = value; }
101 inline FilePath& WithStartLine(int value) { SetStartLine(value); return *this;}
103 private:
104
105 Aws::Vector<CodeLine> m_codeSnippet;
106 bool m_codeSnippetHasBeenSet = false;
107
108 int m_endLine{0};
109 bool m_endLineHasBeenSet = false;
110
111 Aws::String m_name;
112 bool m_nameHasBeenSet = false;
113
114 Aws::String m_path;
115 bool m_pathHasBeenSet = false;
116
117 int m_startLine{0};
118 bool m_startLineHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace CodeGuruSecurity
123} // namespace Aws
AWS_CODEGURUSECURITY_API FilePath & operator=(Aws::Utils::Json::JsonView jsonValue)
FilePath & WithStartLine(int value)
Definition FilePath.h:101
AWS_CODEGURUSECURITY_API FilePath()=default
FilePath & AddCodeSnippet(CodeSnippetT &&value)
Definition FilePath.h:55
AWS_CODEGURUSECURITY_API FilePath(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
Definition FilePath.h:73
FilePath & WithEndLine(int value)
Definition FilePath.h:66
const Aws::Vector< CodeLine > & GetCodeSnippet() const
Definition FilePath.h:48
void SetCodeSnippet(CodeSnippetT &&value)
Definition FilePath.h:51
FilePath & WithName(NameT &&value)
Definition FilePath.h:78
FilePath & WithPath(PathT &&value)
Definition FilePath.h:90
const Aws::String & GetPath() const
Definition FilePath.h:85
AWS_CODEGURUSECURITY_API Aws::Utils::Json::JsonValue Jsonize() const
FilePath & WithCodeSnippet(CodeSnippetT &&value)
Definition FilePath.h:53
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue