/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

A finding from a BatchUpdateFindings request that Security Hub * was unable to update.

See Also:

AWS * API Reference

*/ class AWS_SECURITYHUB_API BatchUpdateFindingsUnprocessedFinding { public: BatchUpdateFindingsUnprocessedFinding(); BatchUpdateFindingsUnprocessedFinding(Aws::Utils::Json::JsonView jsonValue); BatchUpdateFindingsUnprocessedFinding& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

The identifier of the finding that was not updated.

*/ inline const AwsSecurityFindingIdentifier& GetFindingIdentifier() const{ return m_findingIdentifier; } /** *

The identifier of the finding that was not updated.

*/ inline bool FindingIdentifierHasBeenSet() const { return m_findingIdentifierHasBeenSet; } /** *

The identifier of the finding that was not updated.

*/ inline void SetFindingIdentifier(const AwsSecurityFindingIdentifier& value) { m_findingIdentifierHasBeenSet = true; m_findingIdentifier = value; } /** *

The identifier of the finding that was not updated.

*/ inline void SetFindingIdentifier(AwsSecurityFindingIdentifier&& value) { m_findingIdentifierHasBeenSet = true; m_findingIdentifier = std::move(value); } /** *

The identifier of the finding that was not updated.

*/ inline BatchUpdateFindingsUnprocessedFinding& WithFindingIdentifier(const AwsSecurityFindingIdentifier& value) { SetFindingIdentifier(value); return *this;} /** *

The identifier of the finding that was not updated.

*/ inline BatchUpdateFindingsUnprocessedFinding& WithFindingIdentifier(AwsSecurityFindingIdentifier&& value) { SetFindingIdentifier(std::move(value)); return *this;} /** *

The code associated with the error.

*/ inline const Aws::String& GetErrorCode() const{ return m_errorCode; } /** *

The code associated with the error.

*/ inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } /** *

The code associated with the error.

*/ inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } /** *

The code associated with the error.

*/ inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } /** *

The code associated with the error.

*/ inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); } /** *

The code associated with the error.

*/ inline BatchUpdateFindingsUnprocessedFinding& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;} /** *

The code associated with the error.

*/ inline BatchUpdateFindingsUnprocessedFinding& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;} /** *

The code associated with the error.

*/ inline BatchUpdateFindingsUnprocessedFinding& WithErrorCode(const char* value) { SetErrorCode(value); return *this;} /** *

The message associated with the error.

*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *

The message associated with the error.

*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *

The message associated with the error.

*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *

The message associated with the error.

*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *

The message associated with the error.

*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *

The message associated with the error.

*/ inline BatchUpdateFindingsUnprocessedFinding& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *

The message associated with the error.

*/ inline BatchUpdateFindingsUnprocessedFinding& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *

The message associated with the error.

*/ inline BatchUpdateFindingsUnprocessedFinding& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} private: AwsSecurityFindingIdentifier m_findingIdentifier; bool m_findingIdentifierHasBeenSet; Aws::String m_errorCode; bool m_errorCodeHasBeenSet; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet; }; } // namespace Model } // namespace SecurityHub } // namespace Aws