/** * 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 StartMonitoringMembersRequest : public GuardDutyRequest { public: AWS_GUARDDUTY_API StartMonitoringMembersRequest(); // 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 "StartMonitoringMembers"; } AWS_GUARDDUTY_API Aws::String SerializePayload() const override; /** *

The unique ID of the detector of the GuardDuty administrator account * associated with the member accounts to monitor.

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

The unique ID of the detector of the GuardDuty administrator account * associated with the member accounts to monitor.

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

The unique ID of the detector of the GuardDuty administrator account * associated with the member accounts to monitor.

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

The unique ID of the detector of the GuardDuty administrator account * associated with the member accounts to monitor.

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

The unique ID of the detector of the GuardDuty administrator account * associated with the member accounts to monitor.

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

The unique ID of the detector of the GuardDuty administrator account * associated with the member accounts to monitor.

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

The unique ID of the detector of the GuardDuty administrator account * associated with the member accounts to monitor.

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

The unique ID of the detector of the GuardDuty administrator account * associated with the member accounts to monitor.

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

A list of account IDs of the GuardDuty member accounts to start * monitoring.

*/ inline const Aws::Vector& GetAccountIds() const{ return m_accountIds; } /** *

A list of account IDs of the GuardDuty member accounts to start * monitoring.

*/ inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; } /** *

A list of account IDs of the GuardDuty member accounts to start * monitoring.

*/ inline void SetAccountIds(const Aws::Vector& value) { m_accountIdsHasBeenSet = true; m_accountIds = value; } /** *

A list of account IDs of the GuardDuty member accounts to start * monitoring.

*/ inline void SetAccountIds(Aws::Vector&& value) { m_accountIdsHasBeenSet = true; m_accountIds = std::move(value); } /** *

A list of account IDs of the GuardDuty member accounts to start * monitoring.

*/ inline StartMonitoringMembersRequest& WithAccountIds(const Aws::Vector& value) { SetAccountIds(value); return *this;} /** *

A list of account IDs of the GuardDuty member accounts to start * monitoring.

*/ inline StartMonitoringMembersRequest& WithAccountIds(Aws::Vector&& value) { SetAccountIds(std::move(value)); return *this;} /** *

A list of account IDs of the GuardDuty member accounts to start * monitoring.

*/ inline StartMonitoringMembersRequest& AddAccountIds(const Aws::String& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; } /** *

A list of account IDs of the GuardDuty member accounts to start * monitoring.

*/ inline StartMonitoringMembersRequest& AddAccountIds(Aws::String&& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(std::move(value)); return *this; } /** *

A list of account IDs of the GuardDuty member accounts to start * monitoring.

*/ inline StartMonitoringMembersRequest& AddAccountIds(const char* value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; } private: Aws::String m_detectorId; bool m_detectorIdHasBeenSet = false; Aws::Vector m_accountIds; bool m_accountIdsHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws