/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains information about the error that caused a finding to fail to be
* retrieved.See Also:
AWS
* API Reference
A code associated with the type of error.
*/ inline const ErrorCode& GetErrorCode() const{ return m_errorCode; } /** *A code associated with the type of error.
*/ inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } /** *A code associated with the type of error.
*/ inline void SetErrorCode(const ErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } /** *A code associated with the type of error.
*/ inline void SetErrorCode(ErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } /** *A code associated with the type of error.
*/ inline BatchGetFindingsError& WithErrorCode(const ErrorCode& value) { SetErrorCode(value); return *this;} /** *A code associated with the type of error.
*/ inline BatchGetFindingsError& WithErrorCode(ErrorCode&& value) { SetErrorCode(std::move(value)); return *this;} /** *The finding ID of the finding that was not fetched.
*/ inline const Aws::String& GetFindingId() const{ return m_findingId; } /** *The finding ID of the finding that was not fetched.
*/ inline bool FindingIdHasBeenSet() const { return m_findingIdHasBeenSet; } /** *The finding ID of the finding that was not fetched.
*/ inline void SetFindingId(const Aws::String& value) { m_findingIdHasBeenSet = true; m_findingId = value; } /** *The finding ID of the finding that was not fetched.
*/ inline void SetFindingId(Aws::String&& value) { m_findingIdHasBeenSet = true; m_findingId = std::move(value); } /** *The finding ID of the finding that was not fetched.
*/ inline void SetFindingId(const char* value) { m_findingIdHasBeenSet = true; m_findingId.assign(value); } /** *The finding ID of the finding that was not fetched.
*/ inline BatchGetFindingsError& WithFindingId(const Aws::String& value) { SetFindingId(value); return *this;} /** *The finding ID of the finding that was not fetched.
*/ inline BatchGetFindingsError& WithFindingId(Aws::String&& value) { SetFindingId(std::move(value)); return *this;} /** *The finding ID of the finding that was not fetched.
*/ inline BatchGetFindingsError& WithFindingId(const char* value) { SetFindingId(value); return *this;} /** *Describes the error.
*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *Describes the error.
*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *Describes the error.
*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *Describes the error.
*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *Describes the error.
*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *Describes the error.
*/ inline BatchGetFindingsError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *Describes the error.
*/ inline BatchGetFindingsError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *Describes the error.
*/ inline BatchGetFindingsError& WithMessage(const char* value) { SetMessage(value); return *this;} /** *The name of the scan that generated the finding.
*/ inline const Aws::String& GetScanName() const{ return m_scanName; } /** *The name of the scan that generated the finding.
*/ inline bool ScanNameHasBeenSet() const { return m_scanNameHasBeenSet; } /** *The name of the scan that generated the finding.
*/ inline void SetScanName(const Aws::String& value) { m_scanNameHasBeenSet = true; m_scanName = value; } /** *The name of the scan that generated the finding.
*/ inline void SetScanName(Aws::String&& value) { m_scanNameHasBeenSet = true; m_scanName = std::move(value); } /** *The name of the scan that generated the finding.
*/ inline void SetScanName(const char* value) { m_scanNameHasBeenSet = true; m_scanName.assign(value); } /** *The name of the scan that generated the finding.
*/ inline BatchGetFindingsError& WithScanName(const Aws::String& value) { SetScanName(value); return *this;} /** *The name of the scan that generated the finding.
*/ inline BatchGetFindingsError& WithScanName(Aws::String&& value) { SetScanName(std::move(value)); return *this;} /** *The name of the scan that generated the finding.
*/ inline BatchGetFindingsError& WithScanName(const char* value) { SetScanName(value); return *this;} private: ErrorCode m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::String m_findingId; bool m_findingIdHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; Aws::String m_scanName; bool m_scanNameHasBeenSet = false; }; } // namespace Model } // namespace CodeGuruSecurity } // namespace Aws