/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace GuardDuty { namespace Model { /** */ class UpdateOrganizationConfigurationRequest : public GuardDutyRequest { public: AWS_GUARDDUTY_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_GUARDDUTY_API Aws::String SerializePayload() const override; /** *

The ID of the detector that configures the delegated administrator.

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

The ID of the detector that configures the delegated administrator.

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

The ID of the detector that configures the delegated administrator.

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

The ID of the detector that configures the delegated administrator.

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

The ID of the detector that configures the delegated administrator.

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

The ID of the detector that configures the delegated administrator.

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

The ID of the detector that configures the delegated administrator.

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

The ID of the detector that configures the delegated administrator.

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

A list of features that will be configured for the organization.

*/ inline const Aws::Vector& GetFeatures() const{ return m_features; } /** *

A list of features that will be configured for the organization.

*/ inline bool FeaturesHasBeenSet() const { return m_featuresHasBeenSet; } /** *

A list of features that will be configured for the organization.

*/ inline void SetFeatures(const Aws::Vector& value) { m_featuresHasBeenSet = true; m_features = value; } /** *

A list of features that will be configured for the organization.

*/ inline void SetFeatures(Aws::Vector&& value) { m_featuresHasBeenSet = true; m_features = std::move(value); } /** *

A list of features that will be configured for the organization.

*/ inline UpdateOrganizationConfigurationRequest& WithFeatures(const Aws::Vector& value) { SetFeatures(value); return *this;} /** *

A list of features that will be configured for the organization.

*/ inline UpdateOrganizationConfigurationRequest& WithFeatures(Aws::Vector&& value) { SetFeatures(std::move(value)); return *this;} /** *

A list of features that will be configured for the organization.

*/ inline UpdateOrganizationConfigurationRequest& AddFeatures(const OrganizationFeatureConfiguration& value) { m_featuresHasBeenSet = true; m_features.push_back(value); return *this; } /** *

A list of features that will be configured for the organization.

*/ inline UpdateOrganizationConfigurationRequest& AddFeatures(OrganizationFeatureConfiguration&& value) { m_featuresHasBeenSet = true; m_features.push_back(std::move(value)); return *this; } /** *

Indicates the auto-enablement configuration of GuardDuty for the member * accounts in the organization.

  • NEW: Indicates * that when a new account joins the organization, they will have GuardDuty enabled * automatically.

  • ALL: Indicates that all accounts * in the Amazon Web Services Organization have GuardDuty enabled automatically. * This includes NEW accounts that join the organization and accounts * that may have been suspended or removed from the organization in GuardDuty.

    *
  • NONE: Indicates that GuardDuty will not be * automatically enabled for any accounts in the organization. GuardDuty must be * managed for each account individually by the administrator.

*/ inline const AutoEnableMembers& GetAutoEnableOrganizationMembers() const{ return m_autoEnableOrganizationMembers; } /** *

Indicates the auto-enablement configuration of GuardDuty for the member * accounts in the organization.

  • NEW: Indicates * that when a new account joins the organization, they will have GuardDuty enabled * automatically.

  • ALL: Indicates that all accounts * in the Amazon Web Services Organization have GuardDuty enabled automatically. * This includes NEW accounts that join the organization and accounts * that may have been suspended or removed from the organization in GuardDuty.

    *
  • NONE: Indicates that GuardDuty will not be * automatically enabled for any accounts in the organization. GuardDuty must be * managed for each account individually by the administrator.

*/ inline bool AutoEnableOrganizationMembersHasBeenSet() const { return m_autoEnableOrganizationMembersHasBeenSet; } /** *

Indicates the auto-enablement configuration of GuardDuty for the member * accounts in the organization.

  • NEW: Indicates * that when a new account joins the organization, they will have GuardDuty enabled * automatically.

  • ALL: Indicates that all accounts * in the Amazon Web Services Organization have GuardDuty enabled automatically. * This includes NEW accounts that join the organization and accounts * that may have been suspended or removed from the organization in GuardDuty.

    *
  • NONE: Indicates that GuardDuty will not be * automatically enabled for any accounts in the organization. GuardDuty must be * managed for each account individually by the administrator.

*/ inline void SetAutoEnableOrganizationMembers(const AutoEnableMembers& value) { m_autoEnableOrganizationMembersHasBeenSet = true; m_autoEnableOrganizationMembers = value; } /** *

Indicates the auto-enablement configuration of GuardDuty for the member * accounts in the organization.

  • NEW: Indicates * that when a new account joins the organization, they will have GuardDuty enabled * automatically.

  • ALL: Indicates that all accounts * in the Amazon Web Services Organization have GuardDuty enabled automatically. * This includes NEW accounts that join the organization and accounts * that may have been suspended or removed from the organization in GuardDuty.

    *
  • NONE: Indicates that GuardDuty will not be * automatically enabled for any accounts in the organization. GuardDuty must be * managed for each account individually by the administrator.

*/ inline void SetAutoEnableOrganizationMembers(AutoEnableMembers&& value) { m_autoEnableOrganizationMembersHasBeenSet = true; m_autoEnableOrganizationMembers = std::move(value); } /** *

Indicates the auto-enablement configuration of GuardDuty for the member * accounts in the organization.

  • NEW: Indicates * that when a new account joins the organization, they will have GuardDuty enabled * automatically.

  • ALL: Indicates that all accounts * in the Amazon Web Services Organization have GuardDuty enabled automatically. * This includes NEW accounts that join the organization and accounts * that may have been suspended or removed from the organization in GuardDuty.

    *
  • NONE: Indicates that GuardDuty will not be * automatically enabled for any accounts in the organization. GuardDuty must be * managed for each account individually by the administrator.

*/ inline UpdateOrganizationConfigurationRequest& WithAutoEnableOrganizationMembers(const AutoEnableMembers& value) { SetAutoEnableOrganizationMembers(value); return *this;} /** *

Indicates the auto-enablement configuration of GuardDuty for the member * accounts in the organization.

  • NEW: Indicates * that when a new account joins the organization, they will have GuardDuty enabled * automatically.

  • ALL: Indicates that all accounts * in the Amazon Web Services Organization have GuardDuty enabled automatically. * This includes NEW accounts that join the organization and accounts * that may have been suspended or removed from the organization in GuardDuty.

    *
  • NONE: Indicates that GuardDuty will not be * automatically enabled for any accounts in the organization. GuardDuty must be * managed for each account individually by the administrator.

*/ inline UpdateOrganizationConfigurationRequest& WithAutoEnableOrganizationMembers(AutoEnableMembers&& value) { SetAutoEnableOrganizationMembers(std::move(value)); return *this;} private: Aws::String m_detectorId; bool m_detectorIdHasBeenSet = false; Aws::Vector m_features; bool m_featuresHasBeenSet = false; AutoEnableMembers m_autoEnableOrganizationMembers; bool m_autoEnableOrganizationMembersHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws