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>
23namespace CodeGuruSecurity
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>>
54 template<
typename CodeSnippetT = CodeLine>
55 FilePath&
AddCodeSnippet(CodeSnippetT&& value) { m_codeSnippetHasBeenSet =
true; m_codeSnippet.emplace_back(std::forward<CodeSnippetT>(value));
return *
this; }
65 inline void SetEndLine(
int value) { m_endLineHasBeenSet =
true; m_endLine = value; }
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>
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>
100 inline void SetStartLine(
int value) { m_startLineHasBeenSet =
true; m_startLine = value; }
106 bool m_codeSnippetHasBeenSet =
false;
109 bool m_endLineHasBeenSet =
false;
112 bool m_nameHasBeenSet =
false;
115 bool m_pathHasBeenSet =
false;
118 bool m_startLineHasBeenSet =
false;
bool NameHasBeenSet() const
void SetName(NameT &&value)
void SetStartLine(int value)
AWS_CODEGURUSECURITY_API FilePath & operator=(Aws::Utils::Json::JsonView jsonValue)
FilePath & WithStartLine(int value)
AWS_CODEGURUSECURITY_API FilePath()=default
bool StartLineHasBeenSet() const
FilePath & AddCodeSnippet(CodeSnippetT &&value)
void SetEndLine(int value)
void SetPath(PathT &&value)
AWS_CODEGURUSECURITY_API FilePath(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
FilePath & WithEndLine(int value)
const Aws::Vector< CodeLine > & GetCodeSnippet() const
void SetCodeSnippet(CodeSnippetT &&value)
bool EndLineHasBeenSet() const
bool PathHasBeenSet() const
bool CodeSnippetHasBeenSet() const
FilePath & WithName(NameT &&value)
FilePath & WithPath(PathT &&value)
const Aws::String & GetPath() const
AWS_CODEGURUSECURITY_API Aws::Utils::Json::JsonValue Jsonize() const
FilePath & WithCodeSnippet(CodeSnippetT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue