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

Configuration properties of a node.

See Also:

AWS * API Reference

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

The Amazon Managed Blockchain instance type for the node.

*/ inline const Aws::String& GetInstanceType() const{ return m_instanceType; } /** *

The Amazon Managed Blockchain instance type for the node.

*/ inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; } /** *

The Amazon Managed Blockchain instance type for the node.

*/ inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; } /** *

The Amazon Managed Blockchain instance type for the node.

*/ inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); } /** *

The Amazon Managed Blockchain instance type for the node.

*/ inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); } /** *

The Amazon Managed Blockchain instance type for the node.

*/ inline NodeConfiguration& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;} /** *

The Amazon Managed Blockchain instance type for the node.

*/ inline NodeConfiguration& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;} /** *

The Amazon Managed Blockchain instance type for the node.

*/ inline NodeConfiguration& WithInstanceType(const char* value) { SetInstanceType(value); return *this;} /** *

The Availability Zone in which the node exists. Required for Ethereum nodes. *

*/ inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; } /** *

The Availability Zone in which the node exists. Required for Ethereum nodes. *

*/ inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; } /** *

The Availability Zone in which the node exists. Required for Ethereum nodes. *

*/ inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; } /** *

The Availability Zone in which the node exists. Required for Ethereum nodes. *

*/ inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); } /** *

The Availability Zone in which the node exists. Required for Ethereum nodes. *

*/ inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); } /** *

The Availability Zone in which the node exists. Required for Ethereum nodes. *

*/ inline NodeConfiguration& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;} /** *

The Availability Zone in which the node exists. Required for Ethereum nodes. *

*/ inline NodeConfiguration& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;} /** *

The Availability Zone in which the node exists. Required for Ethereum nodes. *

*/ inline NodeConfiguration& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;} /** *

Configuration properties for logging events associated with a peer node on a * Hyperledger Fabric network on Managed Blockchain.

*/ inline const NodeLogPublishingConfiguration& GetLogPublishingConfiguration() const{ return m_logPublishingConfiguration; } /** *

Configuration properties for logging events associated with a peer node on a * Hyperledger Fabric network on Managed Blockchain.

*/ inline bool LogPublishingConfigurationHasBeenSet() const { return m_logPublishingConfigurationHasBeenSet; } /** *

Configuration properties for logging events associated with a peer node on a * Hyperledger Fabric network on Managed Blockchain.

*/ inline void SetLogPublishingConfiguration(const NodeLogPublishingConfiguration& value) { m_logPublishingConfigurationHasBeenSet = true; m_logPublishingConfiguration = value; } /** *

Configuration properties for logging events associated with a peer node on a * Hyperledger Fabric network on Managed Blockchain.

*/ inline void SetLogPublishingConfiguration(NodeLogPublishingConfiguration&& value) { m_logPublishingConfigurationHasBeenSet = true; m_logPublishingConfiguration = std::move(value); } /** *

Configuration properties for logging events associated with a peer node on a * Hyperledger Fabric network on Managed Blockchain.

*/ inline NodeConfiguration& WithLogPublishingConfiguration(const NodeLogPublishingConfiguration& value) { SetLogPublishingConfiguration(value); return *this;} /** *

Configuration properties for logging events associated with a peer node on a * Hyperledger Fabric network on Managed Blockchain.

*/ inline NodeConfiguration& WithLogPublishingConfiguration(NodeLogPublishingConfiguration&& value) { SetLogPublishingConfiguration(std::move(value)); return *this;} /** *

The state database that the node uses. Values are LevelDB or * CouchDB. When using an Amazon Managed Blockchain network with * Hyperledger Fabric version 1.4 or later, the default is * CouchDB.

Applies only to Hyperledger Fabric.

*/ inline const StateDBType& GetStateDB() const{ return m_stateDB; } /** *

The state database that the node uses. Values are LevelDB or * CouchDB. When using an Amazon Managed Blockchain network with * Hyperledger Fabric version 1.4 or later, the default is * CouchDB.

Applies only to Hyperledger Fabric.

*/ inline bool StateDBHasBeenSet() const { return m_stateDBHasBeenSet; } /** *

The state database that the node uses. Values are LevelDB or * CouchDB. When using an Amazon Managed Blockchain network with * Hyperledger Fabric version 1.4 or later, the default is * CouchDB.

Applies only to Hyperledger Fabric.

*/ inline void SetStateDB(const StateDBType& value) { m_stateDBHasBeenSet = true; m_stateDB = value; } /** *

The state database that the node uses. Values are LevelDB or * CouchDB. When using an Amazon Managed Blockchain network with * Hyperledger Fabric version 1.4 or later, the default is * CouchDB.

Applies only to Hyperledger Fabric.

*/ inline void SetStateDB(StateDBType&& value) { m_stateDBHasBeenSet = true; m_stateDB = std::move(value); } /** *

The state database that the node uses. Values are LevelDB or * CouchDB. When using an Amazon Managed Blockchain network with * Hyperledger Fabric version 1.4 or later, the default is * CouchDB.

Applies only to Hyperledger Fabric.

*/ inline NodeConfiguration& WithStateDB(const StateDBType& value) { SetStateDB(value); return *this;} /** *

The state database that the node uses. Values are LevelDB or * CouchDB. When using an Amazon Managed Blockchain network with * Hyperledger Fabric version 1.4 or later, the default is * CouchDB.

Applies only to Hyperledger Fabric.

*/ inline NodeConfiguration& WithStateDB(StateDBType&& value) { SetStateDB(std::move(value)); return *this;} private: Aws::String m_instanceType; bool m_instanceTypeHasBeenSet = false; Aws::String m_availabilityZone; bool m_availabilityZoneHasBeenSet = false; NodeLogPublishingConfiguration m_logPublishingConfiguration; bool m_logPublishingConfigurationHasBeenSet = false; StateDBType m_stateDB; bool m_stateDBHasBeenSet = false; }; } // namespace Model } // namespace ManagedBlockchain } // namespace Aws