/** * 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 Amazon Web Services account to create a member * and join the network. The InviteAction is carried out when a * Proposal is APPROVED.

Applies only to * Hyperledger Fabric.

See Also:

AWS * API Reference

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

The Amazon Web Services account ID to invite.

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

The Amazon Web Services account ID to invite.

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

The Amazon Web Services account ID to invite.

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

The Amazon Web Services account ID to invite.

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

The Amazon Web Services account ID to invite.

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

The Amazon Web Services account ID to invite.

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

The Amazon Web Services account ID to invite.

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

The Amazon Web Services account ID to invite.

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