/** * 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 Detective { namespace Model { /** */ class AWS_DETECTIVE_API CreateMembersRequest : public DetectiveRequest { 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 ARN of the behavior graph to invite the member accounts to contribute * their data to.

*/ inline const Aws::String& GetGraphArn() const{ return m_graphArn; } /** *

The ARN of the behavior graph to invite the member accounts to contribute * their data to.

*/ inline bool GraphArnHasBeenSet() const { return m_graphArnHasBeenSet; } /** *

The ARN of the behavior graph to invite the member accounts to contribute * their data to.

*/ inline void SetGraphArn(const Aws::String& value) { m_graphArnHasBeenSet = true; m_graphArn = value; } /** *

The ARN of the behavior graph to invite the member accounts to contribute * their data to.

*/ inline void SetGraphArn(Aws::String&& value) { m_graphArnHasBeenSet = true; m_graphArn = std::move(value); } /** *

The ARN of the behavior graph to invite the member accounts to contribute * their data to.

*/ inline void SetGraphArn(const char* value) { m_graphArnHasBeenSet = true; m_graphArn.assign(value); } /** *

The ARN of the behavior graph to invite the member accounts to contribute * their data to.

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

The ARN of the behavior graph to invite the member accounts to contribute * their data to.

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

The ARN of the behavior graph to invite the member accounts to contribute * their data to.

*/ inline CreateMembersRequest& WithGraphArn(const char* value) { SetGraphArn(value); return *this;} /** *

Customized message text to include in the invitation email message to the * invited member accounts.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

Customized message text to include in the invitation email message to the * invited member accounts.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

Customized message text to include in the invitation email message to the * invited member accounts.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

Customized message text to include in the invitation email message to the * invited member accounts.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

Customized message text to include in the invitation email message to the * invited member accounts.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

Customized message text to include in the invitation email message to the * invited member accounts.

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

Customized message text to include in the invitation email message to the * invited member accounts.

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

Customized message text to include in the invitation email message to the * invited member accounts.

*/ inline CreateMembersRequest& WithMessage(const char* value) { SetMessage(value); return *this;} /** *

The list of AWS accounts to invite to become member accounts in the behavior * graph. For each invited account, the account list contains the account * identifier and the AWS account root user email address.

*/ inline const Aws::Vector& GetAccounts() const{ return m_accounts; } /** *

The list of AWS accounts to invite to become member accounts in the behavior * graph. For each invited account, the account list contains the account * identifier and the AWS account root user email address.

*/ inline bool AccountsHasBeenSet() const { return m_accountsHasBeenSet; } /** *

The list of AWS accounts to invite to become member accounts in the behavior * graph. For each invited account, the account list contains the account * identifier and the AWS account root user email address.

*/ inline void SetAccounts(const Aws::Vector& value) { m_accountsHasBeenSet = true; m_accounts = value; } /** *

The list of AWS accounts to invite to become member accounts in the behavior * graph. For each invited account, the account list contains the account * identifier and the AWS account root user email address.

*/ inline void SetAccounts(Aws::Vector&& value) { m_accountsHasBeenSet = true; m_accounts = std::move(value); } /** *

The list of AWS accounts to invite to become member accounts in the behavior * graph. For each invited account, the account list contains the account * identifier and the AWS account root user email address.

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

The list of AWS accounts to invite to become member accounts in the behavior * graph. For each invited account, the account list contains the account * identifier and the AWS account root user email address.

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

The list of AWS accounts to invite to become member accounts in the behavior * graph. For each invited account, the account list contains the account * identifier and the AWS account root user email address.

*/ inline CreateMembersRequest& AddAccounts(const Account& value) { m_accountsHasBeenSet = true; m_accounts.push_back(value); return *this; } /** *

The list of AWS accounts to invite to become member accounts in the behavior * graph. For each invited account, the account list contains the account * identifier and the AWS account root user email address.

*/ inline CreateMembersRequest& AddAccounts(Account&& value) { m_accountsHasBeenSet = true; m_accounts.push_back(std::move(value)); return *this; } private: Aws::String m_graphArn; bool m_graphArnHasBeenSet; Aws::String m_message; bool m_messageHasBeenSet; Aws::Vector m_accounts; bool m_accountsHasBeenSet; }; } // namespace Model } // namespace Detective } // namespace Aws