/** * 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 AWS_MACIE2_API CreateInvitationsRequest : public Macie2Request { public: 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::String SerializePayload() const override; /** *

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

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

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

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

An array that lists AWS 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 AWS 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 AWS 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 AWS 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 AWS 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 AWS 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 AWS 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 an email notification to the root user of each * account that the invitation will be sent to. This notification is in addition to * an alert that the root user receives in AWS Personal Health Dashboard. To send * an email notification to the root user of each account, set this value to * true.

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

Specifies whether to send an email notification to the root user of each * account that the invitation will be sent to. This notification is in addition to * an alert that the root user receives in AWS Personal Health Dashboard. To send * an email notification to the root user of each account, set this value to * true.

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

Specifies whether to send an email notification to the root user of each * account that the invitation will be sent to. This notification is in addition to * an alert that the root user receives in AWS Personal Health Dashboard. To send * an email notification to the root user of each account, set this value to * true.

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

Specifies whether to send an email notification to the root user of each * account that the invitation will be sent to. This notification is in addition to * an alert that the root user receives in AWS Personal Health Dashboard. To send * an email notification to the root user of each account, set this value to * true.

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

A custom message to include in the invitation. Amazon Macie adds this message * to the standard content that it sends for an invitation.

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

A custom message to include in the invitation. Amazon Macie adds this message * to the standard content that it sends for an invitation.

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

A custom message to include in the invitation. Amazon Macie adds this message * to the standard content that it sends for an invitation.

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

A custom message to include in the invitation. Amazon Macie adds this message * to the standard content that it sends for an invitation.

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

A custom message to include in the invitation. Amazon Macie adds this message * to the standard content that it sends for an invitation.

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

A custom message to include in the invitation. Amazon Macie adds this message * to the standard content that it sends for an invitation.

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

A custom message to include in the invitation. Amazon Macie adds this message * to the standard content that it sends for an invitation.

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

A custom message to include in the invitation. Amazon Macie adds this message * to the standard content that it sends for an invitation.

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