/** * 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 SecurityHub { namespace Model { /** */ class UpdateOrganizationConfigurationRequest : public SecurityHubRequest { public: AWS_SECURITYHUB_API UpdateOrganizationConfigurationRequest(); // 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 "UpdateOrganizationConfiguration"; } AWS_SECURITYHUB_API Aws::String SerializePayload() const override; /** *

Whether to automatically enable Security Hub for new accounts in the * organization.

By default, this is false, and new accounts * are not added automatically.

To automatically enable Security Hub for new * accounts, set this to true.

*/ inline bool GetAutoEnable() const{ return m_autoEnable; } /** *

Whether to automatically enable Security Hub for new accounts in the * organization.

By default, this is false, and new accounts * are not added automatically.

To automatically enable Security Hub for new * accounts, set this to true.

*/ inline bool AutoEnableHasBeenSet() const { return m_autoEnableHasBeenSet; } /** *

Whether to automatically enable Security Hub for new accounts in the * organization.

By default, this is false, and new accounts * are not added automatically.

To automatically enable Security Hub for new * accounts, set this to true.

*/ inline void SetAutoEnable(bool value) { m_autoEnableHasBeenSet = true; m_autoEnable = value; } /** *

Whether to automatically enable Security Hub for new accounts in the * organization.

By default, this is false, and new accounts * are not added automatically.

To automatically enable Security Hub for new * accounts, set this to true.

*/ inline UpdateOrganizationConfigurationRequest& WithAutoEnable(bool value) { SetAutoEnable(value); return *this;} /** *

Whether to automatically enable Security Hub default * standards for new member accounts in the organization.

By default, * this parameter is equal to DEFAULT, and new member accounts are * automatically enabled with default Security Hub standards.

To opt out of * enabling default standards for new member accounts, set this parameter equal to * NONE.

*/ inline const AutoEnableStandards& GetAutoEnableStandards() const{ return m_autoEnableStandards; } /** *

Whether to automatically enable Security Hub default * standards for new member accounts in the organization.

By default, * this parameter is equal to DEFAULT, and new member accounts are * automatically enabled with default Security Hub standards.

To opt out of * enabling default standards for new member accounts, set this parameter equal to * NONE.

*/ inline bool AutoEnableStandardsHasBeenSet() const { return m_autoEnableStandardsHasBeenSet; } /** *

Whether to automatically enable Security Hub default * standards for new member accounts in the organization.

By default, * this parameter is equal to DEFAULT, and new member accounts are * automatically enabled with default Security Hub standards.

To opt out of * enabling default standards for new member accounts, set this parameter equal to * NONE.

*/ inline void SetAutoEnableStandards(const AutoEnableStandards& value) { m_autoEnableStandardsHasBeenSet = true; m_autoEnableStandards = value; } /** *

Whether to automatically enable Security Hub default * standards for new member accounts in the organization.

By default, * this parameter is equal to DEFAULT, and new member accounts are * automatically enabled with default Security Hub standards.

To opt out of * enabling default standards for new member accounts, set this parameter equal to * NONE.

*/ inline void SetAutoEnableStandards(AutoEnableStandards&& value) { m_autoEnableStandardsHasBeenSet = true; m_autoEnableStandards = std::move(value); } /** *

Whether to automatically enable Security Hub default * standards for new member accounts in the organization.

By default, * this parameter is equal to DEFAULT, and new member accounts are * automatically enabled with default Security Hub standards.

To opt out of * enabling default standards for new member accounts, set this parameter equal to * NONE.

*/ inline UpdateOrganizationConfigurationRequest& WithAutoEnableStandards(const AutoEnableStandards& value) { SetAutoEnableStandards(value); return *this;} /** *

Whether to automatically enable Security Hub default * standards for new member accounts in the organization.

By default, * this parameter is equal to DEFAULT, and new member accounts are * automatically enabled with default Security Hub standards.

To opt out of * enabling default standards for new member accounts, set this parameter equal to * NONE.

*/ inline UpdateOrganizationConfigurationRequest& WithAutoEnableStandards(AutoEnableStandards&& value) { SetAutoEnableStandards(std::move(value)); return *this;} private: bool m_autoEnable; bool m_autoEnableHasBeenSet = false; AutoEnableStandards m_autoEnableStandards; bool m_autoEnableStandardsHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws