/** * 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 ManagedBlockchain { namespace Model { /** */ class UpdateNodeRequest : public ManagedBlockchainRequest { public: AWS_MANAGEDBLOCKCHAIN_API UpdateNodeRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateNode"; } AWS_MANAGEDBLOCKCHAIN_API Aws::String SerializePayload() const override; /** *

The unique identifier of the network that the node is on.

*/ inline const Aws::String& GetNetworkId() const{ return m_networkId; } /** *

The unique identifier of the network that the node is on.

*/ inline bool NetworkIdHasBeenSet() const { return m_networkIdHasBeenSet; } /** *

The unique identifier of the network that the node is on.

*/ inline void SetNetworkId(const Aws::String& value) { m_networkIdHasBeenSet = true; m_networkId = value; } /** *

The unique identifier of the network that the node is on.

*/ inline void SetNetworkId(Aws::String&& value) { m_networkIdHasBeenSet = true; m_networkId = std::move(value); } /** *

The unique identifier of the network that the node is on.

*/ inline void SetNetworkId(const char* value) { m_networkIdHasBeenSet = true; m_networkId.assign(value); } /** *

The unique identifier of the network that the node is on.

*/ inline UpdateNodeRequest& WithNetworkId(const Aws::String& value) { SetNetworkId(value); return *this;} /** *

The unique identifier of the network that the node is on.

*/ inline UpdateNodeRequest& WithNetworkId(Aws::String&& value) { SetNetworkId(std::move(value)); return *this;} /** *

The unique identifier of the network that the node is on.

*/ inline UpdateNodeRequest& WithNetworkId(const char* value) { SetNetworkId(value); return *this;} /** *

The unique identifier of the member that owns the node.

Applies only * to Hyperledger Fabric.

*/ inline const Aws::String& GetMemberId() const{ return m_memberId; } /** *

The unique identifier of the member that owns the node.

Applies only * to Hyperledger Fabric.

*/ inline bool MemberIdHasBeenSet() const { return m_memberIdHasBeenSet; } /** *

The unique identifier of the member that owns the node.

Applies only * to Hyperledger Fabric.

*/ inline void SetMemberId(const Aws::String& value) { m_memberIdHasBeenSet = true; m_memberId = value; } /** *

The unique identifier of the member that owns the node.

Applies only * to Hyperledger Fabric.

*/ inline void SetMemberId(Aws::String&& value) { m_memberIdHasBeenSet = true; m_memberId = std::move(value); } /** *

The unique identifier of the member that owns the node.

Applies only * to Hyperledger Fabric.

*/ inline void SetMemberId(const char* value) { m_memberIdHasBeenSet = true; m_memberId.assign(value); } /** *

The unique identifier of the member that owns the node.

Applies only * to Hyperledger Fabric.

*/ inline UpdateNodeRequest& WithMemberId(const Aws::String& value) { SetMemberId(value); return *this;} /** *

The unique identifier of the member that owns the node.

Applies only * to Hyperledger Fabric.

*/ inline UpdateNodeRequest& WithMemberId(Aws::String&& value) { SetMemberId(std::move(value)); return *this;} /** *

The unique identifier of the member that owns the node.

Applies only * to Hyperledger Fabric.

*/ inline UpdateNodeRequest& WithMemberId(const char* value) { SetMemberId(value); return *this;} /** *

The unique identifier of the node.

*/ inline const Aws::String& GetNodeId() const{ return m_nodeId; } /** *

The unique identifier of the node.

*/ inline bool NodeIdHasBeenSet() const { return m_nodeIdHasBeenSet; } /** *

The unique identifier of the node.

*/ inline void SetNodeId(const Aws::String& value) { m_nodeIdHasBeenSet = true; m_nodeId = value; } /** *

The unique identifier of the node.

*/ inline void SetNodeId(Aws::String&& value) { m_nodeIdHasBeenSet = true; m_nodeId = std::move(value); } /** *

The unique identifier of the node.

*/ inline void SetNodeId(const char* value) { m_nodeIdHasBeenSet = true; m_nodeId.assign(value); } /** *

The unique identifier of the node.

*/ inline UpdateNodeRequest& WithNodeId(const Aws::String& value) { SetNodeId(value); return *this;} /** *

The unique identifier of the node.

*/ inline UpdateNodeRequest& WithNodeId(Aws::String&& value) { SetNodeId(std::move(value)); return *this;} /** *

The unique identifier of the node.

*/ inline UpdateNodeRequest& WithNodeId(const char* value) { SetNodeId(value); return *this;} /** *

Configuration properties for publishing to Amazon CloudWatch Logs.

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

Configuration properties for publishing to Amazon CloudWatch Logs.

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

Configuration properties for publishing to Amazon CloudWatch Logs.

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

Configuration properties for publishing to Amazon CloudWatch Logs.

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

Configuration properties for publishing to Amazon CloudWatch Logs.

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

Configuration properties for publishing to Amazon CloudWatch Logs.

*/ inline UpdateNodeRequest& WithLogPublishingConfiguration(NodeLogPublishingConfiguration&& value) { SetLogPublishingConfiguration(std::move(value)); return *this;} private: Aws::String m_networkId; bool m_networkIdHasBeenSet = false; Aws::String m_memberId; bool m_memberIdHasBeenSet = false; Aws::String m_nodeId; bool m_nodeIdHasBeenSet = false; NodeLogPublishingConfiguration m_logPublishingConfiguration; bool m_logPublishingConfigurationHasBeenSet = false; }; } // namespace Model } // namespace ManagedBlockchain } // namespace Aws