/** * 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 { /** *

Attributes of Hyperledger Fabric for a peer node on a Hyperledger Fabric * network on Managed Blockchain.

See Also:

AWS * API Reference

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

The endpoint that identifies the peer node for all services except peer * channel-based event services.

*/ inline const Aws::String& GetPeerEndpoint() const{ return m_peerEndpoint; } /** *

The endpoint that identifies the peer node for all services except peer * channel-based event services.

*/ inline bool PeerEndpointHasBeenSet() const { return m_peerEndpointHasBeenSet; } /** *

The endpoint that identifies the peer node for all services except peer * channel-based event services.

*/ inline void SetPeerEndpoint(const Aws::String& value) { m_peerEndpointHasBeenSet = true; m_peerEndpoint = value; } /** *

The endpoint that identifies the peer node for all services except peer * channel-based event services.

*/ inline void SetPeerEndpoint(Aws::String&& value) { m_peerEndpointHasBeenSet = true; m_peerEndpoint = std::move(value); } /** *

The endpoint that identifies the peer node for all services except peer * channel-based event services.

*/ inline void SetPeerEndpoint(const char* value) { m_peerEndpointHasBeenSet = true; m_peerEndpoint.assign(value); } /** *

The endpoint that identifies the peer node for all services except peer * channel-based event services.

*/ inline NodeFabricAttributes& WithPeerEndpoint(const Aws::String& value) { SetPeerEndpoint(value); return *this;} /** *

The endpoint that identifies the peer node for all services except peer * channel-based event services.

*/ inline NodeFabricAttributes& WithPeerEndpoint(Aws::String&& value) { SetPeerEndpoint(std::move(value)); return *this;} /** *

The endpoint that identifies the peer node for all services except peer * channel-based event services.

*/ inline NodeFabricAttributes& WithPeerEndpoint(const char* value) { SetPeerEndpoint(value); return *this;} /** *

The endpoint that identifies the peer node for peer channel-based event * services.

*/ inline const Aws::String& GetPeerEventEndpoint() const{ return m_peerEventEndpoint; } /** *

The endpoint that identifies the peer node for peer channel-based event * services.

*/ inline bool PeerEventEndpointHasBeenSet() const { return m_peerEventEndpointHasBeenSet; } /** *

The endpoint that identifies the peer node for peer channel-based event * services.

*/ inline void SetPeerEventEndpoint(const Aws::String& value) { m_peerEventEndpointHasBeenSet = true; m_peerEventEndpoint = value; } /** *

The endpoint that identifies the peer node for peer channel-based event * services.

*/ inline void SetPeerEventEndpoint(Aws::String&& value) { m_peerEventEndpointHasBeenSet = true; m_peerEventEndpoint = std::move(value); } /** *

The endpoint that identifies the peer node for peer channel-based event * services.

*/ inline void SetPeerEventEndpoint(const char* value) { m_peerEventEndpointHasBeenSet = true; m_peerEventEndpoint.assign(value); } /** *

The endpoint that identifies the peer node for peer channel-based event * services.

*/ inline NodeFabricAttributes& WithPeerEventEndpoint(const Aws::String& value) { SetPeerEventEndpoint(value); return *this;} /** *

The endpoint that identifies the peer node for peer channel-based event * services.

*/ inline NodeFabricAttributes& WithPeerEventEndpoint(Aws::String&& value) { SetPeerEventEndpoint(std::move(value)); return *this;} /** *

The endpoint that identifies the peer node for peer channel-based event * services.

*/ inline NodeFabricAttributes& WithPeerEventEndpoint(const char* value) { SetPeerEventEndpoint(value); return *this;} private: Aws::String m_peerEndpoint; bool m_peerEndpointHasBeenSet = false; Aws::String m_peerEventEndpoint; bool m_peerEventEndpointHasBeenSet = false; }; } // namespace Model } // namespace ManagedBlockchain } // namespace Aws