/** * 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 BatchUpdateFindingsUnprocessedFinding { public: AWS_SECURITYHUB_API BatchUpdateFindingsUnprocessedFinding(); AWS_SECURITYHUB_API BatchUpdateFindingsUnprocessedFinding(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API BatchUpdateFindingsUnprocessedFinding& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API 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. Possible values are:

  • * ConcurrentUpdateError - Another request attempted to update the * finding while this request was being processed. This error may also occur if you * call * BatchUpdateFindings and * BatchImportFindings at the same time.

  • * DuplicatedFindingIdentifier - The request included two or more * findings with the same FindingIdentifier.

  • * FindingNotFound - The FindingIdentifier included in * the request did not match an existing finding.

  • * FindingSizeExceeded - The finding size was greater than the * permissible value of 240 KB.

  • InternalFailure - * An internal service failure occurred when updating the finding.

  • *

    InvalidInput - The finding update contained an invalid value * that did not satisfy the Amazon * Web Services Security Finding Format syntax.

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

The code associated with the error. Possible values are:

  • * ConcurrentUpdateError - Another request attempted to update the * finding while this request was being processed. This error may also occur if you * call * BatchUpdateFindings and * BatchImportFindings at the same time.

  • * DuplicatedFindingIdentifier - The request included two or more * findings with the same FindingIdentifier.

  • * FindingNotFound - The FindingIdentifier included in * the request did not match an existing finding.

  • * FindingSizeExceeded - The finding size was greater than the * permissible value of 240 KB.

  • InternalFailure - * An internal service failure occurred when updating the finding.

  • *

    InvalidInput - The finding update contained an invalid value * that did not satisfy the Amazon * Web Services Security Finding Format syntax.

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

The code associated with the error. Possible values are:

  • * ConcurrentUpdateError - Another request attempted to update the * finding while this request was being processed. This error may also occur if you * call * BatchUpdateFindings and * BatchImportFindings at the same time.

  • * DuplicatedFindingIdentifier - The request included two or more * findings with the same FindingIdentifier.

  • * FindingNotFound - The FindingIdentifier included in * the request did not match an existing finding.

  • * FindingSizeExceeded - The finding size was greater than the * permissible value of 240 KB.

  • InternalFailure - * An internal service failure occurred when updating the finding.

  • *

    InvalidInput - The finding update contained an invalid value * that did not satisfy the Amazon * Web Services Security Finding Format syntax.

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

The code associated with the error. Possible values are:

  • * ConcurrentUpdateError - Another request attempted to update the * finding while this request was being processed. This error may also occur if you * call * BatchUpdateFindings and * BatchImportFindings at the same time.

  • * DuplicatedFindingIdentifier - The request included two or more * findings with the same FindingIdentifier.

  • * FindingNotFound - The FindingIdentifier included in * the request did not match an existing finding.

  • * FindingSizeExceeded - The finding size was greater than the * permissible value of 240 KB.

  • InternalFailure - * An internal service failure occurred when updating the finding.

  • *

    InvalidInput - The finding update contained an invalid value * that did not satisfy the Amazon * Web Services Security Finding Format syntax.

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

The code associated with the error. Possible values are:

  • * ConcurrentUpdateError - Another request attempted to update the * finding while this request was being processed. This error may also occur if you * call * BatchUpdateFindings and * BatchImportFindings at the same time.

  • * DuplicatedFindingIdentifier - The request included two or more * findings with the same FindingIdentifier.

  • * FindingNotFound - The FindingIdentifier included in * the request did not match an existing finding.

  • * FindingSizeExceeded - The finding size was greater than the * permissible value of 240 KB.

  • InternalFailure - * An internal service failure occurred when updating the finding.

  • *

    InvalidInput - The finding update contained an invalid value * that did not satisfy the Amazon * Web Services Security Finding Format syntax.

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

The code associated with the error. Possible values are:

  • * ConcurrentUpdateError - Another request attempted to update the * finding while this request was being processed. This error may also occur if you * call * BatchUpdateFindings and * BatchImportFindings at the same time.

  • * DuplicatedFindingIdentifier - The request included two or more * findings with the same FindingIdentifier.

  • * FindingNotFound - The FindingIdentifier included in * the request did not match an existing finding.

  • * FindingSizeExceeded - The finding size was greater than the * permissible value of 240 KB.

  • InternalFailure - * An internal service failure occurred when updating the finding.

  • *

    InvalidInput - The finding update contained an invalid value * that did not satisfy the Amazon * Web Services Security Finding Format syntax.

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

The code associated with the error. Possible values are:

  • * ConcurrentUpdateError - Another request attempted to update the * finding while this request was being processed. This error may also occur if you * call * BatchUpdateFindings and * BatchImportFindings at the same time.

  • * DuplicatedFindingIdentifier - The request included two or more * findings with the same FindingIdentifier.

  • * FindingNotFound - The FindingIdentifier included in * the request did not match an existing finding.

  • * FindingSizeExceeded - The finding size was greater than the * permissible value of 240 KB.

  • InternalFailure - * An internal service failure occurred when updating the finding.

  • *

    InvalidInput - The finding update contained an invalid value * that did not satisfy the Amazon * Web Services Security Finding Format syntax.

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

The code associated with the error. Possible values are:

  • * ConcurrentUpdateError - Another request attempted to update the * finding while this request was being processed. This error may also occur if you * call * BatchUpdateFindings and * BatchImportFindings at the same time.

  • * DuplicatedFindingIdentifier - The request included two or more * findings with the same FindingIdentifier.

  • * FindingNotFound - The FindingIdentifier included in * the request did not match an existing finding.

  • * FindingSizeExceeded - The finding size was greater than the * permissible value of 240 KB.

  • InternalFailure - * An internal service failure occurred when updating the finding.

  • *

    InvalidInput - The finding update contained an invalid value * that did not satisfy the Amazon * Web Services Security Finding Format syntax.

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

The message associated with the error. Possible values are:

  • * Concurrent finding updates detected

  • * Finding Identifier is duplicated

  • Finding * Not Found

  • Finding size exceeded 240 KB *

  • Internal service failure

  • * Invalid Input

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

The message associated with the error. Possible values are:

  • * Concurrent finding updates detected

  • * Finding Identifier is duplicated

  • Finding * Not Found

  • Finding size exceeded 240 KB *

  • Internal service failure

  • * Invalid Input

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

The message associated with the error. Possible values are:

  • * Concurrent finding updates detected

  • * Finding Identifier is duplicated

  • Finding * Not Found

  • Finding size exceeded 240 KB *

  • Internal service failure

  • * Invalid Input

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

The message associated with the error. Possible values are:

  • * Concurrent finding updates detected

  • * Finding Identifier is duplicated

  • Finding * Not Found

  • Finding size exceeded 240 KB *

  • Internal service failure

  • * Invalid Input

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

The message associated with the error. Possible values are:

  • * Concurrent finding updates detected

  • * Finding Identifier is duplicated

  • Finding * Not Found

  • Finding size exceeded 240 KB *

  • Internal service failure

  • * Invalid Input

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

The message associated with the error. Possible values are:

  • * Concurrent finding updates detected

  • * Finding Identifier is duplicated

  • Finding * Not Found

  • Finding size exceeded 240 KB *

  • Internal service failure

  • * Invalid Input

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

The message associated with the error. Possible values are:

  • * Concurrent finding updates detected

  • * Finding Identifier is duplicated

  • Finding * Not Found

  • Finding size exceeded 240 KB *

  • Internal service failure

  • * Invalid Input

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

The message associated with the error. Possible values are:

  • * Concurrent finding updates detected

  • * Finding Identifier is duplicated

  • Finding * Not Found

  • Finding size exceeded 240 KB *

  • Internal service failure

  • * Invalid Input

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