/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #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 which control's enablement status could not be updated * in a specified standard when calling the BatchUpdateStandardsControlAssociations * API. This parameter also provides details about why the request was unprocessed. *

See Also:

AWS * API Reference

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

An array of control and standard associations for which an update failed when * calling BatchUpdateStandardsControlAssociations. *

*/ inline const StandardsControlAssociationUpdate& GetStandardsControlAssociationUpdate() const{ return m_standardsControlAssociationUpdate; } /** *

An array of control and standard associations for which an update failed when * calling BatchUpdateStandardsControlAssociations. *

*/ inline bool StandardsControlAssociationUpdateHasBeenSet() const { return m_standardsControlAssociationUpdateHasBeenSet; } /** *

An array of control and standard associations for which an update failed when * calling BatchUpdateStandardsControlAssociations. *

*/ inline void SetStandardsControlAssociationUpdate(const StandardsControlAssociationUpdate& value) { m_standardsControlAssociationUpdateHasBeenSet = true; m_standardsControlAssociationUpdate = value; } /** *

An array of control and standard associations for which an update failed when * calling BatchUpdateStandardsControlAssociations. *

*/ inline void SetStandardsControlAssociationUpdate(StandardsControlAssociationUpdate&& value) { m_standardsControlAssociationUpdateHasBeenSet = true; m_standardsControlAssociationUpdate = std::move(value); } /** *

An array of control and standard associations for which an update failed when * calling BatchUpdateStandardsControlAssociations. *

*/ inline UnprocessedStandardsControlAssociationUpdate& WithStandardsControlAssociationUpdate(const StandardsControlAssociationUpdate& value) { SetStandardsControlAssociationUpdate(value); return *this;} /** *

An array of control and standard associations for which an update failed when * calling BatchUpdateStandardsControlAssociations. *

*/ inline UnprocessedStandardsControlAssociationUpdate& WithStandardsControlAssociationUpdate(StandardsControlAssociationUpdate&& value) { SetStandardsControlAssociationUpdate(std::move(value)); return *this;} /** *

The error code for the unprocessed update of the control's enablement status * in the specified standard.

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

The error code for the unprocessed update of the control's enablement status * in the specified standard.

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

The error code for the unprocessed update of the control's enablement status * in the specified standard.

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

The error code for the unprocessed update of the control's enablement status * in the specified standard.

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

The error code for the unprocessed update of the control's enablement status * in the specified standard.

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

The error code for the unprocessed update of the control's enablement status * in the specified standard.

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

The reason why a control's enablement status in the specified standard * couldn't be updated.

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

The reason why a control's enablement status in the specified standard * couldn't be updated.

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

The reason why a control's enablement status in the specified standard * couldn't be updated.

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

The reason why a control's enablement status in the specified standard * couldn't be updated.

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

The reason why a control's enablement status in the specified standard * couldn't be updated.

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

The reason why a control's enablement status in the specified standard * couldn't be updated.

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

The reason why a control's enablement status in the specified standard * couldn't be updated.

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

The reason why a control's enablement status in the specified standard * couldn't be updated.

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