AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCodeSnippet(const Aws::Vector<CodeLine>& value) { m_codeSnippetHasBeenSet = true; m_codeSnippet = value; }
51 inline void SetCodeSnippet(Aws::Vector<CodeLine>&& value) { m_codeSnippetHasBeenSet = true; m_codeSnippet = std::move(value); }
52 inline FilePath& WithCodeSnippet(const Aws::Vector<CodeLine>& value) { SetCodeSnippet(value); return *this;}
53 inline FilePath& WithCodeSnippet(Aws::Vector<CodeLine>&& value) { SetCodeSnippet(std::move(value)); return *this;}
54 inline FilePath& AddCodeSnippet(const CodeLine& value) { m_codeSnippetHasBeenSet = true; m_codeSnippet.push_back(value); return *this; }
55 inline FilePath& AddCodeSnippet(CodeLine&& value) { m_codeSnippetHasBeenSet = true; m_codeSnippet.push_back(std::move(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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
76 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
77 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
78 inline FilePath& WithName(const Aws::String& value) { SetName(value); return *this;}
79 inline FilePath& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
80 inline FilePath& WithName(const char* value) { SetName(value); return *this;}
82
84
87 inline const Aws::String& GetPath() const{ return m_path; }
88 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
89 inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
90 inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
91 inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
92 inline FilePath& WithPath(const Aws::String& value) { SetPath(value); return *this;}
93 inline FilePath& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
94 inline FilePath& WithPath(const char* value) { SetPath(value); return *this;}
96
98
102 inline int GetStartLine() const{ return m_startLine; }
103 inline bool StartLineHasBeenSet() const { return m_startLineHasBeenSet; }
104 inline void SetStartLine(int value) { m_startLineHasBeenSet = true; m_startLine = value; }
105 inline FilePath& WithStartLine(int value) { SetStartLine(value); return *this;}
107 private:
108
109 Aws::Vector<CodeLine> m_codeSnippet;
110 bool m_codeSnippetHasBeenSet = false;
111
112 int m_endLine;
113 bool m_endLineHasBeenSet = false;
114
115 Aws::String m_name;
116 bool m_nameHasBeenSet = false;
117
118 Aws::String m_path;
119 bool m_pathHasBeenSet = false;
120
121 int m_startLine;
122 bool m_startLineHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace CodeGuruSecurity
127} // namespace Aws
FilePath & WithCodeSnippet(Aws::Vector< CodeLine > &&value)
Definition FilePath.h:53
AWS_CODEGURUSECURITY_API FilePath & operator=(Aws::Utils::Json::JsonView jsonValue)
FilePath & WithStartLine(int value)
Definition FilePath.h:105
FilePath & AddCodeSnippet(CodeLine &&value)
Definition FilePath.h:55
void SetName(Aws::String &&value)
Definition FilePath.h:76
AWS_CODEGURUSECURITY_API FilePath()
void SetCodeSnippet(Aws::Vector< CodeLine > &&value)
Definition FilePath.h:51
FilePath & WithName(const char *value)
Definition FilePath.h:80
void SetPath(const Aws::String &value)
Definition FilePath.h:89
void SetPath(const char *value)
Definition FilePath.h:91
FilePath & WithCodeSnippet(const Aws::Vector< CodeLine > &value)
Definition FilePath.h:52
FilePath & WithPath(Aws::String &&value)
Definition FilePath.h:93
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
FilePath & WithPath(const char *value)
Definition FilePath.h:94
void SetName(const char *value)
Definition FilePath.h:77
FilePath & WithPath(const Aws::String &value)
Definition FilePath.h:92
void SetCodeSnippet(const Aws::Vector< CodeLine > &value)
Definition FilePath.h:50
FilePath & WithName(Aws::String &&value)
Definition FilePath.h:79
void SetPath(Aws::String &&value)
Definition FilePath.h:90
const Aws::String & GetPath() const
Definition FilePath.h:87
void SetName(const Aws::String &value)
Definition FilePath.h:75
AWS_CODEGURUSECURITY_API Aws::Utils::Json::JsonValue Jsonize() const
FilePath & AddCodeSnippet(const CodeLine &value)
Definition FilePath.h:54
FilePath & WithName(const Aws::String &value)
Definition FilePath.h:78
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue