/** * 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 Macie2 { namespace Model { /** */ class CreateInvitationsRequest : public Macie2Request { public: AWS_MACIE2_API CreateInvitationsRequest(); // 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 "CreateInvitations"; } AWS_MACIE2_API Aws::String SerializePayload() const override; /** *

An array that lists Amazon Web Services account IDs, one for each account to * send the invitation to.

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

An array that lists Amazon Web Services account IDs, one for each account to * send the invitation to.

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

An array that lists Amazon Web Services account IDs, one for each account to * send the invitation to.

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

An array that lists Amazon Web Services account IDs, one for each account to * send the invitation to.

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

An array that lists Amazon Web Services account IDs, one for each account to * send the invitation to.

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

An array that lists Amazon Web Services account IDs, one for each account to * send the invitation to.

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

An array that lists Amazon Web Services account IDs, one for each account to * send the invitation to.

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

An array that lists Amazon Web Services account IDs, one for each account to * send the invitation to.

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

An array that lists Amazon Web Services account IDs, one for each account to * send the invitation to.

*/ inline CreateInvitationsRequest& AddAccountIds(const char* value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; } /** *

Specifies whether to send the invitation as an email message. If this value * is false, Amazon Macie sends the invitation (as an email message) to the email * address that you specified for the recipient's account when you associated the * account with your account. The default value is false.

*/ inline bool GetDisableEmailNotification() const{ return m_disableEmailNotification; } /** *

Specifies whether to send the invitation as an email message. If this value * is false, Amazon Macie sends the invitation (as an email message) to the email * address that you specified for the recipient's account when you associated the * account with your account. The default value is false.

*/ inline bool DisableEmailNotificationHasBeenSet() const { return m_disableEmailNotificationHasBeenSet; } /** *

Specifies whether to send the invitation as an email message. If this value * is false, Amazon Macie sends the invitation (as an email message) to the email * address that you specified for the recipient's account when you associated the * account with your account. The default value is false.

*/ inline void SetDisableEmailNotification(bool value) { m_disableEmailNotificationHasBeenSet = true; m_disableEmailNotification = value; } /** *

Specifies whether to send the invitation as an email message. If this value * is false, Amazon Macie sends the invitation (as an email message) to the email * address that you specified for the recipient's account when you associated the * account with your account. The default value is false.

*/ inline CreateInvitationsRequest& WithDisableEmailNotification(bool value) { SetDisableEmailNotification(value); return *this;} /** *

Custom text to include in the email message that contains the invitation. The * text can contain as many as 80 alphanumeric characters.

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

Custom text to include in the email message that contains the invitation. The * text can contain as many as 80 alphanumeric characters.

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

Custom text to include in the email message that contains the invitation. The * text can contain as many as 80 alphanumeric characters.

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

Custom text to include in the email message that contains the invitation. The * text can contain as many as 80 alphanumeric characters.

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

Custom text to include in the email message that contains the invitation. The * text can contain as many as 80 alphanumeric characters.

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

Custom text to include in the email message that contains the invitation. The * text can contain as many as 80 alphanumeric characters.

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

Custom text to include in the email message that contains the invitation. The * text can contain as many as 80 alphanumeric characters.

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

Custom text to include in the email message that contains the invitation. The * text can contain as many as 80 alphanumeric characters.

*/ inline CreateInvitationsRequest& WithMessage(const char* value) { SetMessage(value); return *this;} private: Aws::Vector m_accountIds; bool m_accountIdsHasBeenSet = false; bool m_disableEmailNotification; bool m_disableEmailNotificationHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws