/** * 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 GuardDuty { namespace Model { /** */ class AWS_GUARDDUTY_API UpdateOrganizationConfigurationRequest : public GuardDutyRequest { public: 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::String SerializePayload() const override; /** *

The ID of the detector to update the delegated administrator for.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } /** *

The ID of the detector to update the delegated administrator for.

*/ inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } /** *

The ID of the detector to update the delegated administrator for.

*/ inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; } /** *

The ID of the detector to update the delegated administrator for.

*/ inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); } /** *

The ID of the detector to update the delegated administrator for.

*/ inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); } /** *

The ID of the detector to update the delegated administrator for.

*/ inline UpdateOrganizationConfigurationRequest& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;} /** *

The ID of the detector to update the delegated administrator for.

*/ inline UpdateOrganizationConfigurationRequest& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;} /** *

The ID of the detector to update the delegated administrator for.

*/ inline UpdateOrganizationConfigurationRequest& WithDetectorId(const char* value) { SetDetectorId(value); return *this;} /** *

Indicates whether to automatically enable member accounts in the * organization.

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

Indicates whether to automatically enable member accounts in the * organization.

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

Indicates whether to automatically enable member accounts in the * organization.

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

Indicates whether to automatically enable member accounts in the * organization.

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

An object describes which data sources will be updated.

*/ inline const OrganizationDataSourceConfigurations& GetDataSources() const{ return m_dataSources; } /** *

An object describes which data sources will be updated.

*/ inline bool DataSourcesHasBeenSet() const { return m_dataSourcesHasBeenSet; } /** *

An object describes which data sources will be updated.

*/ inline void SetDataSources(const OrganizationDataSourceConfigurations& value) { m_dataSourcesHasBeenSet = true; m_dataSources = value; } /** *

An object describes which data sources will be updated.

*/ inline void SetDataSources(OrganizationDataSourceConfigurations&& value) { m_dataSourcesHasBeenSet = true; m_dataSources = std::move(value); } /** *

An object describes which data sources will be updated.

*/ inline UpdateOrganizationConfigurationRequest& WithDataSources(const OrganizationDataSourceConfigurations& value) { SetDataSources(value); return *this;} /** *

An object describes which data sources will be updated.

*/ inline UpdateOrganizationConfigurationRequest& WithDataSources(OrganizationDataSourceConfigurations&& value) { SetDataSources(std::move(value)); return *this;} private: Aws::String m_detectorId; bool m_detectorIdHasBeenSet; bool m_autoEnable; bool m_autoEnableHasBeenSet; OrganizationDataSourceConfigurations m_dataSources; bool m_dataSourcesHasBeenSet; }; } // namespace Model } // namespace GuardDuty } // namespace Aws