7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/inspector2/model/CodeLine.h>
11#include <aws/inspector2/model/SuggestedFix.h>
64 inline void SetEndLine(
int value) { m_endLineHasBeenSet =
true; m_endLine = value; }
76 inline void SetFindingArn(
const char* value) { m_findingArnHasBeenSet =
true; m_findingArn.assign(value); }
88 inline void SetStartLine(
int value) { m_startLineHasBeenSet =
true; m_startLine = value; }
108 bool m_codeSnippetHasBeenSet =
false;
111 bool m_endLineHasBeenSet =
false;
114 bool m_findingArnHasBeenSet =
false;
117 bool m_startLineHasBeenSet =
false;
120 bool m_suggestedFixesHasBeenSet =
false;
AWS_INSPECTOR2_API CodeSnippetResult(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API CodeSnippetResult()
CodeSnippetResult & WithStartLine(int value)
bool FindingArnHasBeenSet() const
CodeSnippetResult & WithCodeSnippet(const Aws::Vector< CodeLine > &value)
void SetCodeSnippet(const Aws::Vector< CodeLine > &value)
CodeSnippetResult & WithEndLine(int value)
void SetEndLine(int value)
void SetFindingArn(Aws::String &&value)
void SetFindingArn(const char *value)
CodeSnippetResult & WithFindingArn(const char *value)
bool SuggestedFixesHasBeenSet() const
CodeSnippetResult & AddSuggestedFixes(const SuggestedFix &value)
void SetStartLine(int value)
void SetFindingArn(const Aws::String &value)
void SetSuggestedFixes(Aws::Vector< SuggestedFix > &&value)
CodeSnippetResult & AddCodeSnippet(CodeLine &&value)
CodeSnippetResult & WithCodeSnippet(Aws::Vector< CodeLine > &&value)
const Aws::String & GetFindingArn() const
CodeSnippetResult & WithFindingArn(const Aws::String &value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCodeSnippet(Aws::Vector< CodeLine > &&value)
CodeSnippetResult & AddSuggestedFixes(SuggestedFix &&value)
const Aws::Vector< SuggestedFix > & GetSuggestedFixes() const
CodeSnippetResult & AddCodeSnippet(const CodeLine &value)
CodeSnippetResult & WithFindingArn(Aws::String &&value)
bool CodeSnippetHasBeenSet() const
void SetSuggestedFixes(const Aws::Vector< SuggestedFix > &value)
bool StartLineHasBeenSet() const
const Aws::Vector< CodeLine > & GetCodeSnippet() const
AWS_INSPECTOR2_API CodeSnippetResult & operator=(Aws::Utils::Json::JsonView jsonValue)
CodeSnippetResult & WithSuggestedFixes(const Aws::Vector< SuggestedFix > &value)
CodeSnippetResult & WithSuggestedFixes(Aws::Vector< SuggestedFix > &&value)
bool EndLineHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue