/** * 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 SecurityHub { namespace Model { /** */ class UpdateStandardsControlRequest : public SecurityHubRequest { public: AWS_SECURITYHUB_API UpdateStandardsControlRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateStandardsControl"; } AWS_SECURITYHUB_API Aws::String SerializePayload() const override; /** *

The ARN of the security standard control to enable or disable.

*/ inline const Aws::String& GetStandardsControlArn() const{ return m_standardsControlArn; } /** *

The ARN of the security standard control to enable or disable.

*/ inline bool StandardsControlArnHasBeenSet() const { return m_standardsControlArnHasBeenSet; } /** *

The ARN of the security standard control to enable or disable.

*/ inline void SetStandardsControlArn(const Aws::String& value) { m_standardsControlArnHasBeenSet = true; m_standardsControlArn = value; } /** *

The ARN of the security standard control to enable or disable.

*/ inline void SetStandardsControlArn(Aws::String&& value) { m_standardsControlArnHasBeenSet = true; m_standardsControlArn = std::move(value); } /** *

The ARN of the security standard control to enable or disable.

*/ inline void SetStandardsControlArn(const char* value) { m_standardsControlArnHasBeenSet = true; m_standardsControlArn.assign(value); } /** *

The ARN of the security standard control to enable or disable.

*/ inline UpdateStandardsControlRequest& WithStandardsControlArn(const Aws::String& value) { SetStandardsControlArn(value); return *this;} /** *

The ARN of the security standard control to enable or disable.

*/ inline UpdateStandardsControlRequest& WithStandardsControlArn(Aws::String&& value) { SetStandardsControlArn(std::move(value)); return *this;} /** *

The ARN of the security standard control to enable or disable.

*/ inline UpdateStandardsControlRequest& WithStandardsControlArn(const char* value) { SetStandardsControlArn(value); return *this;} /** *

The updated status of the security standard control.

*/ inline const ControlStatus& GetControlStatus() const{ return m_controlStatus; } /** *

The updated status of the security standard control.

*/ inline bool ControlStatusHasBeenSet() const { return m_controlStatusHasBeenSet; } /** *

The updated status of the security standard control.

*/ inline void SetControlStatus(const ControlStatus& value) { m_controlStatusHasBeenSet = true; m_controlStatus = value; } /** *

The updated status of the security standard control.

*/ inline void SetControlStatus(ControlStatus&& value) { m_controlStatusHasBeenSet = true; m_controlStatus = std::move(value); } /** *

The updated status of the security standard control.

*/ inline UpdateStandardsControlRequest& WithControlStatus(const ControlStatus& value) { SetControlStatus(value); return *this;} /** *

The updated status of the security standard control.

*/ inline UpdateStandardsControlRequest& WithControlStatus(ControlStatus&& value) { SetControlStatus(std::move(value)); return *this;} /** *

A description of the reason why you are disabling a security standard * control. If you are disabling a control, then this is required.

*/ inline const Aws::String& GetDisabledReason() const{ return m_disabledReason; } /** *

A description of the reason why you are disabling a security standard * control. If you are disabling a control, then this is required.

*/ inline bool DisabledReasonHasBeenSet() const { return m_disabledReasonHasBeenSet; } /** *

A description of the reason why you are disabling a security standard * control. If you are disabling a control, then this is required.

*/ inline void SetDisabledReason(const Aws::String& value) { m_disabledReasonHasBeenSet = true; m_disabledReason = value; } /** *

A description of the reason why you are disabling a security standard * control. If you are disabling a control, then this is required.

*/ inline void SetDisabledReason(Aws::String&& value) { m_disabledReasonHasBeenSet = true; m_disabledReason = std::move(value); } /** *

A description of the reason why you are disabling a security standard * control. If you are disabling a control, then this is required.

*/ inline void SetDisabledReason(const char* value) { m_disabledReasonHasBeenSet = true; m_disabledReason.assign(value); } /** *

A description of the reason why you are disabling a security standard * control. If you are disabling a control, then this is required.

*/ inline UpdateStandardsControlRequest& WithDisabledReason(const Aws::String& value) { SetDisabledReason(value); return *this;} /** *

A description of the reason why you are disabling a security standard * control. If you are disabling a control, then this is required.

*/ inline UpdateStandardsControlRequest& WithDisabledReason(Aws::String&& value) { SetDisabledReason(std::move(value)); return *this;} /** *

A description of the reason why you are disabling a security standard * control. If you are disabling a control, then this is required.

*/ inline UpdateStandardsControlRequest& WithDisabledReason(const char* value) { SetDisabledReason(value); return *this;} private: Aws::String m_standardsControlArn; bool m_standardsControlArnHasBeenSet = false; ControlStatus m_controlStatus; bool m_controlStatusHasBeenSet = false; Aws::String m_disabledReason; bool m_disabledReasonHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws