/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ManagedBlockchain { namespace Model { /** *

An action to invite a specific AWS account to create a member and join the * network. The InviteAction is carried out when a * Proposal is APPROVED.

See Also:

AWS * API Reference

*/ class AWS_MANAGEDBLOCKCHAIN_API InviteAction { public: InviteAction(); InviteAction(Aws::Utils::Json::JsonView jsonValue); InviteAction& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

The AWS account ID to invite.

*/ inline const Aws::String& GetPrincipal() const{ return m_principal; } /** *

The AWS account ID to invite.

*/ inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; } /** *

The AWS account ID to invite.

*/ inline void SetPrincipal(const Aws::String& value) { m_principalHasBeenSet = true; m_principal = value; } /** *

The AWS account ID to invite.

*/ inline void SetPrincipal(Aws::String&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); } /** *

The AWS account ID to invite.

*/ inline void SetPrincipal(const char* value) { m_principalHasBeenSet = true; m_principal.assign(value); } /** *

The AWS account ID to invite.

*/ inline InviteAction& WithPrincipal(const Aws::String& value) { SetPrincipal(value); return *this;} /** *

The AWS account ID to invite.

*/ inline InviteAction& WithPrincipal(Aws::String&& value) { SetPrincipal(std::move(value)); return *this;} /** *

The AWS account ID to invite.

*/ inline InviteAction& WithPrincipal(const char* value) { SetPrincipal(value); return *this;} private: Aws::String m_principal; bool m_principalHasBeenSet; }; } // namespace Model } // namespace ManagedBlockchain } // namespace Aws