/** * 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 { /** *

Provides details about a security control for which a response couldn't be * returned.

See Also:

AWS * API Reference

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

The control (identified with SecurityControlId, * SecurityControlArn, or a mix of both parameters) for which a * response couldn't be returned.

*/ inline const Aws::String& GetSecurityControlId() const{ return m_securityControlId; } /** *

The control (identified with SecurityControlId, * SecurityControlArn, or a mix of both parameters) for which a * response couldn't be returned.

*/ inline bool SecurityControlIdHasBeenSet() const { return m_securityControlIdHasBeenSet; } /** *

The control (identified with SecurityControlId, * SecurityControlArn, or a mix of both parameters) for which a * response couldn't be returned.

*/ inline void SetSecurityControlId(const Aws::String& value) { m_securityControlIdHasBeenSet = true; m_securityControlId = value; } /** *

The control (identified with SecurityControlId, * SecurityControlArn, or a mix of both parameters) for which a * response couldn't be returned.

*/ inline void SetSecurityControlId(Aws::String&& value) { m_securityControlIdHasBeenSet = true; m_securityControlId = std::move(value); } /** *

The control (identified with SecurityControlId, * SecurityControlArn, or a mix of both parameters) for which a * response couldn't be returned.

*/ inline void SetSecurityControlId(const char* value) { m_securityControlIdHasBeenSet = true; m_securityControlId.assign(value); } /** *

The control (identified with SecurityControlId, * SecurityControlArn, or a mix of both parameters) for which a * response couldn't be returned.

*/ inline UnprocessedSecurityControl& WithSecurityControlId(const Aws::String& value) { SetSecurityControlId(value); return *this;} /** *

The control (identified with SecurityControlId, * SecurityControlArn, or a mix of both parameters) for which a * response couldn't be returned.

*/ inline UnprocessedSecurityControl& WithSecurityControlId(Aws::String&& value) { SetSecurityControlId(std::move(value)); return *this;} /** *

The control (identified with SecurityControlId, * SecurityControlArn, or a mix of both parameters) for which a * response couldn't be returned.

*/ inline UnprocessedSecurityControl& WithSecurityControlId(const char* value) { SetSecurityControlId(value); return *this;} /** *

The error code for the unprocessed security control.

*/ inline const UnprocessedErrorCode& GetErrorCode() const{ return m_errorCode; } /** *

The error code for the unprocessed security control.

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

The error code for the unprocessed security control.

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

The error code for the unprocessed security control.

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

The error code for the unprocessed security control.

*/ inline UnprocessedSecurityControl& WithErrorCode(const UnprocessedErrorCode& value) { SetErrorCode(value); return *this;} /** *

The error code for the unprocessed security control.

*/ inline UnprocessedSecurityControl& WithErrorCode(UnprocessedErrorCode&& value) { SetErrorCode(std::move(value)); return *this;} /** *

The reason why the security control was unprocessed.

*/ inline const Aws::String& GetErrorReason() const{ return m_errorReason; } /** *

The reason why the security control was unprocessed.

*/ inline bool ErrorReasonHasBeenSet() const { return m_errorReasonHasBeenSet; } /** *

The reason why the security control was unprocessed.

*/ inline void SetErrorReason(const Aws::String& value) { m_errorReasonHasBeenSet = true; m_errorReason = value; } /** *

The reason why the security control was unprocessed.

*/ inline void SetErrorReason(Aws::String&& value) { m_errorReasonHasBeenSet = true; m_errorReason = std::move(value); } /** *

The reason why the security control was unprocessed.

*/ inline void SetErrorReason(const char* value) { m_errorReasonHasBeenSet = true; m_errorReason.assign(value); } /** *

The reason why the security control was unprocessed.

*/ inline UnprocessedSecurityControl& WithErrorReason(const Aws::String& value) { SetErrorReason(value); return *this;} /** *

The reason why the security control was unprocessed.

*/ inline UnprocessedSecurityControl& WithErrorReason(Aws::String&& value) { SetErrorReason(std::move(value)); return *this;} /** *

The reason why the security control was unprocessed.

*/ inline UnprocessedSecurityControl& WithErrorReason(const char* value) { SetErrorReason(value); return *this;} private: Aws::String m_securityControlId; bool m_securityControlIdHasBeenSet = false; UnprocessedErrorCode m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::String m_errorReason; bool m_errorReasonHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws