/** * 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 SecurityHub { namespace Model { /** */ class AWS_SECURITYHUB_API AcceptInvitationRequest : public SecurityHubRequest { public: 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::String SerializePayload() const override; /** *

The account ID of the Security Hub master account that sent the * invitation.

*/ inline const Aws::String& GetMasterId() const{ return m_masterId; } /** *

The account ID of the Security Hub master account that sent the * invitation.

*/ inline bool MasterIdHasBeenSet() const { return m_masterIdHasBeenSet; } /** *

The account ID of the Security Hub master account that sent the * invitation.

*/ inline void SetMasterId(const Aws::String& value) { m_masterIdHasBeenSet = true; m_masterId = value; } /** *

The account ID of the Security Hub master account that sent the * invitation.

*/ inline void SetMasterId(Aws::String&& value) { m_masterIdHasBeenSet = true; m_masterId = std::move(value); } /** *

The account ID of the Security Hub master account that sent the * invitation.

*/ inline void SetMasterId(const char* value) { m_masterIdHasBeenSet = true; m_masterId.assign(value); } /** *

The account ID of the Security Hub master account that sent the * invitation.

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

The account ID of the Security Hub master account that sent the * invitation.

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

The account ID of the Security Hub master account that sent the * invitation.

*/ inline AcceptInvitationRequest& WithMasterId(const char* value) { SetMasterId(value); return *this;} /** *

The ID of the invitation sent from the Security Hub master account.

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

The ID of the invitation sent from the Security Hub master account.

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

The ID of the invitation sent from the Security Hub master account.

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

The ID of the invitation sent from the Security Hub master account.

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

The ID of the invitation sent from the Security Hub master account.

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

The ID of the invitation sent from the Security Hub master account.

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

The ID of the invitation sent from the Security Hub master account.

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

The ID of the invitation sent from the Security Hub master account.

*/ inline AcceptInvitationRequest& WithInvitationId(const char* value) { SetInvitationId(value); return *this;} private: Aws::String m_masterId; bool m_masterIdHasBeenSet; Aws::String m_invitationId; bool m_invitationIdHasBeenSet; }; } // namespace Model } // namespace SecurityHub } // namespace Aws