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

The unique ID of the detector of the GuardDuty account that you want to * associate member accounts with.

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

The unique ID of the detector of the GuardDuty account that you want to * associate member accounts with.

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

The unique ID of the detector of the GuardDuty account that you want to * associate member accounts with.

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

The unique ID of the detector of the GuardDuty account that you want to * associate member accounts with.

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

The unique ID of the detector of the GuardDuty account that you want to * associate member accounts with.

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

The unique ID of the detector of the GuardDuty account that you want to * associate member accounts with.

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

The unique ID of the detector of the GuardDuty account that you want to * associate member accounts with.

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

The unique ID of the detector of the GuardDuty account that you want to * associate member accounts with.

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

A list of account ID and email address pairs of the accounts that you want to * associate with the master GuardDuty account.

*/ inline const Aws::Vector& GetAccountDetails() const{ return m_accountDetails; } /** *

A list of account ID and email address pairs of the accounts that you want to * associate with the master GuardDuty account.

*/ inline bool AccountDetailsHasBeenSet() const { return m_accountDetailsHasBeenSet; } /** *

A list of account ID and email address pairs of the accounts that you want to * associate with the master GuardDuty account.

*/ inline void SetAccountDetails(const Aws::Vector& value) { m_accountDetailsHasBeenSet = true; m_accountDetails = value; } /** *

A list of account ID and email address pairs of the accounts that you want to * associate with the master GuardDuty account.

*/ inline void SetAccountDetails(Aws::Vector&& value) { m_accountDetailsHasBeenSet = true; m_accountDetails = std::move(value); } /** *

A list of account ID and email address pairs of the accounts that you want to * associate with the master GuardDuty account.

*/ inline CreateMembersRequest& WithAccountDetails(const Aws::Vector& value) { SetAccountDetails(value); return *this;} /** *

A list of account ID and email address pairs of the accounts that you want to * associate with the master GuardDuty account.

*/ inline CreateMembersRequest& WithAccountDetails(Aws::Vector&& value) { SetAccountDetails(std::move(value)); return *this;} /** *

A list of account ID and email address pairs of the accounts that you want to * associate with the master GuardDuty account.

*/ inline CreateMembersRequest& AddAccountDetails(const AccountDetail& value) { m_accountDetailsHasBeenSet = true; m_accountDetails.push_back(value); return *this; } /** *

A list of account ID and email address pairs of the accounts that you want to * associate with the master GuardDuty account.

*/ inline CreateMembersRequest& AddAccountDetails(AccountDetail&& value) { m_accountDetailsHasBeenSet = true; m_accountDetails.push_back(std::move(value)); return *this; } private: Aws::String m_detectorId; bool m_detectorIdHasBeenSet; Aws::Vector m_accountDetails; bool m_accountDetailsHasBeenSet; }; } // namespace Model } // namespace GuardDuty } // namespace Aws