/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains information on a code snippet retrieved by Amazon Inspector from a
* code vulnerability finding.See Also:
AWS
* API Reference
Contains information on the retrieved code snippet.
*/ inline const Aws::VectorContains information on the retrieved code snippet.
*/ inline bool CodeSnippetHasBeenSet() const { return m_codeSnippetHasBeenSet; } /** *Contains information on the retrieved code snippet.
*/ inline void SetCodeSnippet(const Aws::VectorContains information on the retrieved code snippet.
*/ inline void SetCodeSnippet(Aws::VectorContains information on the retrieved code snippet.
*/ inline CodeSnippetResult& WithCodeSnippet(const Aws::VectorContains information on the retrieved code snippet.
*/ inline CodeSnippetResult& WithCodeSnippet(Aws::VectorContains information on the retrieved code snippet.
*/ inline CodeSnippetResult& AddCodeSnippet(const CodeLine& value) { m_codeSnippetHasBeenSet = true; m_codeSnippet.push_back(value); return *this; } /** *Contains information on the retrieved code snippet.
*/ inline CodeSnippetResult& AddCodeSnippet(CodeLine&& value) { m_codeSnippetHasBeenSet = true; m_codeSnippet.push_back(std::move(value)); return *this; } /** *The line number of the last line of a code snippet.
*/ inline int GetEndLine() const{ return m_endLine; } /** *The line number of the last line of a code snippet.
*/ inline bool EndLineHasBeenSet() const { return m_endLineHasBeenSet; } /** *The line number of the last line of a code snippet.
*/ inline void SetEndLine(int value) { m_endLineHasBeenSet = true; m_endLine = value; } /** *The line number of the last line of a code snippet.
*/ inline CodeSnippetResult& WithEndLine(int value) { SetEndLine(value); return *this;} /** *The ARN of a finding that the code snippet is associated with.
*/ inline const Aws::String& GetFindingArn() const{ return m_findingArn; } /** *The ARN of a finding that the code snippet is associated with.
*/ inline bool FindingArnHasBeenSet() const { return m_findingArnHasBeenSet; } /** *The ARN of a finding that the code snippet is associated with.
*/ inline void SetFindingArn(const Aws::String& value) { m_findingArnHasBeenSet = true; m_findingArn = value; } /** *The ARN of a finding that the code snippet is associated with.
*/ inline void SetFindingArn(Aws::String&& value) { m_findingArnHasBeenSet = true; m_findingArn = std::move(value); } /** *The ARN of a finding that the code snippet is associated with.
*/ inline void SetFindingArn(const char* value) { m_findingArnHasBeenSet = true; m_findingArn.assign(value); } /** *The ARN of a finding that the code snippet is associated with.
*/ inline CodeSnippetResult& WithFindingArn(const Aws::String& value) { SetFindingArn(value); return *this;} /** *The ARN of a finding that the code snippet is associated with.
*/ inline CodeSnippetResult& WithFindingArn(Aws::String&& value) { SetFindingArn(std::move(value)); return *this;} /** *The ARN of a finding that the code snippet is associated with.
*/ inline CodeSnippetResult& WithFindingArn(const char* value) { SetFindingArn(value); return *this;} /** *The line number of the first line of a code snippet.
*/ inline int GetStartLine() const{ return m_startLine; } /** *The line number of the first line of a code snippet.
*/ inline bool StartLineHasBeenSet() const { return m_startLineHasBeenSet; } /** *The line number of the first line of a code snippet.
*/ inline void SetStartLine(int value) { m_startLineHasBeenSet = true; m_startLine = value; } /** *The line number of the first line of a code snippet.
*/ inline CodeSnippetResult& WithStartLine(int value) { SetStartLine(value); return *this;} /** *Details of a suggested code fix.
*/ inline const Aws::VectorDetails of a suggested code fix.
*/ inline bool SuggestedFixesHasBeenSet() const { return m_suggestedFixesHasBeenSet; } /** *Details of a suggested code fix.
*/ inline void SetSuggestedFixes(const Aws::VectorDetails of a suggested code fix.
*/ inline void SetSuggestedFixes(Aws::VectorDetails of a suggested code fix.
*/ inline CodeSnippetResult& WithSuggestedFixes(const Aws::VectorDetails of a suggested code fix.
*/ inline CodeSnippetResult& WithSuggestedFixes(Aws::VectorDetails of a suggested code fix.
*/ inline CodeSnippetResult& AddSuggestedFixes(const SuggestedFix& value) { m_suggestedFixesHasBeenSet = true; m_suggestedFixes.push_back(value); return *this; } /** *Details of a suggested code fix.
*/ inline CodeSnippetResult& AddSuggestedFixes(SuggestedFix&& value) { m_suggestedFixesHasBeenSet = true; m_suggestedFixes.push_back(std::move(value)); return *this; } private: Aws::Vector