7#include <aws/codeguru-security/CodeGuruSecurity_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/codeguru-security/model/CodeLine.h>
23namespace CodeGuruSecurity
49 template<
typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
51 template<
typename NameT = Aws::String>
61 template<
typename PathT = Aws::String>
62 void SetPath(PathT&& value) { m_pathHasBeenSet =
true; m_path = std::forward<PathT>(value); }
63 template<
typename PathT = Aws::String>
74 inline void SetStartLine(
int value) { m_startLineHasBeenSet =
true; m_startLine = value; }
85 inline void SetEndLine(
int value) { m_endLineHasBeenSet =
true; m_endLine = value; }
96 template<
typename CodeSnippetT = Aws::Vector<CodeLine>>
97 void SetCodeSnippet(CodeSnippetT&& value) { m_codeSnippetHasBeenSet =
true; m_codeSnippet = std::forward<CodeSnippetT>(value); }
98 template<
typename CodeSnippetT = Aws::Vector<CodeLine>>
100 template<
typename CodeSnippetT = CodeLine>
101 FilePath&
AddCodeSnippet(CodeSnippetT&& value) { m_codeSnippetHasBeenSet =
true; m_codeSnippet.emplace_back(std::forward<CodeSnippetT>(value));
return *
this; }
106 bool m_nameHasBeenSet =
false;
109 bool m_pathHasBeenSet =
false;
112 bool m_startLineHasBeenSet =
false;
115 bool m_endLineHasBeenSet =
false;
118 bool m_codeSnippetHasBeenSet =
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