/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ManagedBlockchain { namespace Model { /** *

Configuration properties of a peer node.

See Also:

AWS * API Reference

*/ class AWS_MANAGEDBLOCKCHAIN_API NodeConfiguration { public: NodeConfiguration(); NodeConfiguration(Aws::Utils::Json::JsonView jsonValue); NodeConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); 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.

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

The Availability Zone in which the node exists.

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

The Availability Zone in which the node exists.

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

The Availability Zone in which the node exists.

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

The Availability Zone in which the node exists.

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

The Availability Zone in which the node exists.

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

The Availability Zone in which the node exists.

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

The Availability Zone in which the node exists.

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

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

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

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

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

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

*/ inline NodeConfiguration& WithLogPublishingConfiguration(NodeLogPublishingConfiguration&& value) { SetLogPublishingConfiguration(std::move(value)); return *this;} private: Aws::String m_instanceType; bool m_instanceTypeHasBeenSet; Aws::String m_availabilityZone; bool m_availabilityZoneHasBeenSet; NodeLogPublishingConfiguration m_logPublishingConfiguration; bool m_logPublishingConfigurationHasBeenSet; }; } // namespace Model } // namespace ManagedBlockchain } // namespace Aws