/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains information about any errors encountered while trying to retrieve a
* code snippet.See Also:
AWS
* API Reference
The error code for the error that prevented a code snippet from being * retrieved.
*/ inline const CodeSnippetErrorCode& GetErrorCode() const{ return m_errorCode; } /** *The error code for the error that prevented a code snippet from being * retrieved.
*/ inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } /** *The error code for the error that prevented a code snippet from being * retrieved.
*/ inline void SetErrorCode(const CodeSnippetErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } /** *The error code for the error that prevented a code snippet from being * retrieved.
*/ inline void SetErrorCode(CodeSnippetErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } /** *The error code for the error that prevented a code snippet from being * retrieved.
*/ inline CodeSnippetError& WithErrorCode(const CodeSnippetErrorCode& value) { SetErrorCode(value); return *this;} /** *The error code for the error that prevented a code snippet from being * retrieved.
*/ inline CodeSnippetError& WithErrorCode(CodeSnippetErrorCode&& value) { SetErrorCode(std::move(value)); return *this;} /** *The error message received when Amazon Inspector failed to retrieve a code * snippet.
*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *The error message received when Amazon Inspector failed to retrieve a code * snippet.
*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *The error message received when Amazon Inspector failed to retrieve a code * snippet.
*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *The error message received when Amazon Inspector failed to retrieve a code * snippet.
*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *The error message received when Amazon Inspector failed to retrieve a code * snippet.
*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *The error message received when Amazon Inspector failed to retrieve a code * snippet.
*/ inline CodeSnippetError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *The error message received when Amazon Inspector failed to retrieve a code * snippet.
*/ inline CodeSnippetError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *The error message received when Amazon Inspector failed to retrieve a code * snippet.
*/ inline CodeSnippetError& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} /** *The ARN of the finding that a code snippet couldn't be retrieved for.
*/ inline const Aws::String& GetFindingArn() const{ return m_findingArn; } /** *The ARN of the finding that a code snippet couldn't be retrieved for.
*/ inline bool FindingArnHasBeenSet() const { return m_findingArnHasBeenSet; } /** *The ARN of the finding that a code snippet couldn't be retrieved for.
*/ inline void SetFindingArn(const Aws::String& value) { m_findingArnHasBeenSet = true; m_findingArn = value; } /** *The ARN of the finding that a code snippet couldn't be retrieved for.
*/ inline void SetFindingArn(Aws::String&& value) { m_findingArnHasBeenSet = true; m_findingArn = std::move(value); } /** *The ARN of the finding that a code snippet couldn't be retrieved for.
*/ inline void SetFindingArn(const char* value) { m_findingArnHasBeenSet = true; m_findingArn.assign(value); } /** *The ARN of the finding that a code snippet couldn't be retrieved for.
*/ inline CodeSnippetError& WithFindingArn(const Aws::String& value) { SetFindingArn(value); return *this;} /** *The ARN of the finding that a code snippet couldn't be retrieved for.
*/ inline CodeSnippetError& WithFindingArn(Aws::String&& value) { SetFindingArn(std::move(value)); return *this;} /** *The ARN of the finding that a code snippet couldn't be retrieved for.
*/ inline CodeSnippetError& WithFindingArn(const char* value) { SetFindingArn(value); return *this;} private: CodeSnippetErrorCode m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; Aws::String m_findingArn; bool m_findingArnHasBeenSet = false; }; } // namespace Model } // namespace Inspector2 } // namespace Aws