/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace ManagedBlockchain { namespace Model { /** */ class AWS_MANAGEDBLOCKCHAIN_API CreateNodeRequest : public ManagedBlockchainRequest { public: CreateNodeRequest(); // 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 "CreateNode"; } Aws::String SerializePayload() const override; /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the operation. An idempotent operation completes no more than one * time. This identifier is required only if you make a service request directly * using an HTTP client. It is generated automatically if you use an AWS SDK or the * AWS CLI.

*/ inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the operation. An idempotent operation completes no more than one * time. This identifier is required only if you make a service request directly * using an HTTP client. It is generated automatically if you use an AWS SDK or the * AWS CLI.

*/ inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the operation. An idempotent operation completes no more than one * time. This identifier is required only if you make a service request directly * using an HTTP client. It is generated automatically if you use an AWS SDK or the * AWS CLI.

*/ inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the operation. An idempotent operation completes no more than one * time. This identifier is required only if you make a service request directly * using an HTTP client. It is generated automatically if you use an AWS SDK or the * AWS CLI.

*/ inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the operation. An idempotent operation completes no more than one * time. This identifier is required only if you make a service request directly * using an HTTP client. It is generated automatically if you use an AWS SDK or the * AWS CLI.

*/ inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the operation. An idempotent operation completes no more than one * time. This identifier is required only if you make a service request directly * using an HTTP client. It is generated automatically if you use an AWS SDK or the * AWS CLI.

*/ inline CreateNodeRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the operation. An idempotent operation completes no more than one * time. This identifier is required only if you make a service request directly * using an HTTP client. It is generated automatically if you use an AWS SDK or the * AWS CLI.

*/ inline CreateNodeRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the operation. An idempotent operation completes no more than one * time. This identifier is required only if you make a service request directly * using an HTTP client. It is generated automatically if you use an AWS SDK or the * AWS CLI.

*/ inline CreateNodeRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} /** *

The unique identifier of the network in which this node runs.

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

The unique identifier of the network in which this node runs.

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

The unique identifier of the network in which this node runs.

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

The unique identifier of the network in which this node runs.

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

The unique identifier of the network in which this node runs.

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

The unique identifier of the network in which this node runs.

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

The unique identifier of the network in which this node runs.

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

The unique identifier of the network in which this node runs.

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

The unique identifier of the member that owns this node.

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

The unique identifier of the member that owns this node.

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

The unique identifier of the member that owns this node.

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

The unique identifier of the member that owns this node.

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

The unique identifier of the member that owns this node.

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

The unique identifier of the member that owns this node.

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

The unique identifier of the member that owns this node.

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

The unique identifier of the member that owns this node.

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

The properties of a node configuration.

*/ inline const NodeConfiguration& GetNodeConfiguration() const{ return m_nodeConfiguration; } /** *

The properties of a node configuration.

*/ inline bool NodeConfigurationHasBeenSet() const { return m_nodeConfigurationHasBeenSet; } /** *

The properties of a node configuration.

*/ inline void SetNodeConfiguration(const NodeConfiguration& value) { m_nodeConfigurationHasBeenSet = true; m_nodeConfiguration = value; } /** *

The properties of a node configuration.

*/ inline void SetNodeConfiguration(NodeConfiguration&& value) { m_nodeConfigurationHasBeenSet = true; m_nodeConfiguration = std::move(value); } /** *

The properties of a node configuration.

*/ inline CreateNodeRequest& WithNodeConfiguration(const NodeConfiguration& value) { SetNodeConfiguration(value); return *this;} /** *

The properties of a node configuration.

*/ inline CreateNodeRequest& WithNodeConfiguration(NodeConfiguration&& value) { SetNodeConfiguration(std::move(value)); return *this;} private: Aws::String m_clientRequestToken; bool m_clientRequestTokenHasBeenSet; Aws::String m_networkId; bool m_networkIdHasBeenSet; Aws::String m_memberId; bool m_memberIdHasBeenSet; NodeConfiguration m_nodeConfiguration; bool m_nodeConfigurationHasBeenSet; }; } // namespace Model } // namespace ManagedBlockchain } // namespace Aws