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

The Amazon Web Services account ID for the account that sent the * invitation.

*/ inline const Aws::String& GetAdministratorAccountId() const{ return m_administratorAccountId; } /** *

The Amazon Web Services account ID for the account that sent the * invitation.

*/ inline bool AdministratorAccountIdHasBeenSet() const { return m_administratorAccountIdHasBeenSet; } /** *

The Amazon Web Services account ID for the account that sent the * invitation.

*/ inline void SetAdministratorAccountId(const Aws::String& value) { m_administratorAccountIdHasBeenSet = true; m_administratorAccountId = value; } /** *

The Amazon Web Services account ID for the account that sent the * invitation.

*/ inline void SetAdministratorAccountId(Aws::String&& value) { m_administratorAccountIdHasBeenSet = true; m_administratorAccountId = std::move(value); } /** *

The Amazon Web Services account ID for the account that sent the * invitation.

*/ inline void SetAdministratorAccountId(const char* value) { m_administratorAccountIdHasBeenSet = true; m_administratorAccountId.assign(value); } /** *

The Amazon Web Services account ID for the account that sent the * invitation.

*/ inline AcceptInvitationRequest& WithAdministratorAccountId(const Aws::String& value) { SetAdministratorAccountId(value); return *this;} /** *

The Amazon Web Services account ID for the account that sent the * invitation.

*/ inline AcceptInvitationRequest& WithAdministratorAccountId(Aws::String&& value) { SetAdministratorAccountId(std::move(value)); return *this;} /** *

The Amazon Web Services account ID for the account that sent the * invitation.

*/ inline AcceptInvitationRequest& WithAdministratorAccountId(const char* value) { SetAdministratorAccountId(value); return *this;} /** *

The unique identifier for the invitation to accept.

*/ inline const Aws::String& GetInvitationId() const{ return m_invitationId; } /** *

The unique identifier for the invitation to accept.

*/ inline bool InvitationIdHasBeenSet() const { return m_invitationIdHasBeenSet; } /** *

The unique identifier for the invitation to accept.

*/ inline void SetInvitationId(const Aws::String& value) { m_invitationIdHasBeenSet = true; m_invitationId = value; } /** *

The unique identifier for the invitation to accept.

*/ inline void SetInvitationId(Aws::String&& value) { m_invitationIdHasBeenSet = true; m_invitationId = std::move(value); } /** *

The unique identifier for the invitation to accept.

*/ inline void SetInvitationId(const char* value) { m_invitationIdHasBeenSet = true; m_invitationId.assign(value); } /** *

The unique identifier for the invitation to accept.

*/ inline AcceptInvitationRequest& WithInvitationId(const Aws::String& value) { SetInvitationId(value); return *this;} /** *

The unique identifier for the invitation to accept.

*/ inline AcceptInvitationRequest& WithInvitationId(Aws::String&& value) { SetInvitationId(std::move(value)); return *this;} /** *

The unique identifier for the invitation to accept.

*/ inline AcceptInvitationRequest& WithInvitationId(const char* value) { SetInvitationId(value); return *this;} /** *

(Deprecated) The Amazon Web Services account ID for the account that sent the * invitation. This property has been replaced by the administratorAccountId * property and is retained only for backward compatibility.

*/ inline const Aws::String& GetMasterAccount() const{ return m_masterAccount; } /** *

(Deprecated) The Amazon Web Services account ID for the account that sent the * invitation. This property has been replaced by the administratorAccountId * property and is retained only for backward compatibility.

*/ inline bool MasterAccountHasBeenSet() const { return m_masterAccountHasBeenSet; } /** *

(Deprecated) The Amazon Web Services account ID for the account that sent the * invitation. This property has been replaced by the administratorAccountId * property and is retained only for backward compatibility.

*/ inline void SetMasterAccount(const Aws::String& value) { m_masterAccountHasBeenSet = true; m_masterAccount = value; } /** *

(Deprecated) The Amazon Web Services account ID for the account that sent the * invitation. This property has been replaced by the administratorAccountId * property and is retained only for backward compatibility.

*/ inline void SetMasterAccount(Aws::String&& value) { m_masterAccountHasBeenSet = true; m_masterAccount = std::move(value); } /** *

(Deprecated) The Amazon Web Services account ID for the account that sent the * invitation. This property has been replaced by the administratorAccountId * property and is retained only for backward compatibility.

*/ inline void SetMasterAccount(const char* value) { m_masterAccountHasBeenSet = true; m_masterAccount.assign(value); } /** *

(Deprecated) The Amazon Web Services account ID for the account that sent the * invitation. This property has been replaced by the administratorAccountId * property and is retained only for backward compatibility.

*/ inline AcceptInvitationRequest& WithMasterAccount(const Aws::String& value) { SetMasterAccount(value); return *this;} /** *

(Deprecated) The Amazon Web Services account ID for the account that sent the * invitation. This property has been replaced by the administratorAccountId * property and is retained only for backward compatibility.

*/ inline AcceptInvitationRequest& WithMasterAccount(Aws::String&& value) { SetMasterAccount(std::move(value)); return *this;} /** *

(Deprecated) The Amazon Web Services account ID for the account that sent the * invitation. This property has been replaced by the administratorAccountId * property and is retained only for backward compatibility.

*/ inline AcceptInvitationRequest& WithMasterAccount(const char* value) { SetMasterAccount(value); return *this;} private: Aws::String m_administratorAccountId; bool m_administratorAccountIdHasBeenSet = false; Aws::String m_invitationId; bool m_invitationIdHasBeenSet = false; Aws::String m_masterAccount; bool m_masterAccountHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws