/** * 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 Http { class URI; } //namespace Http namespace ManagedBlockchain { namespace Model { /** */ class ListNodesRequest : public ManagedBlockchainRequest { public: AWS_MANAGEDBLOCKCHAIN_API ListNodesRequest(); // 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 "ListNodes"; } AWS_MANAGEDBLOCKCHAIN_API Aws::String SerializePayload() const override; AWS_MANAGEDBLOCKCHAIN_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The unique identifier of the network for which to list nodes.

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

The unique identifier of the network for which to list nodes.

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

The unique identifier of the network for which to list nodes.

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

The unique identifier of the network for which to list nodes.

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

The unique identifier of the network for which to list nodes.

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

The unique identifier of the network for which to list nodes.

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

The unique identifier of the network for which to list nodes.

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

The unique identifier of the network for which to list nodes.

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

The unique identifier of the member who owns the nodes to list.

*

Applies only to Hyperledger Fabric and is required for Hyperledger * Fabric.

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

The unique identifier of the member who owns the nodes to list.

*

Applies only to Hyperledger Fabric and is required for Hyperledger * Fabric.

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

The unique identifier of the member who owns the nodes to list.

*

Applies only to Hyperledger Fabric and is required for Hyperledger * Fabric.

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

The unique identifier of the member who owns the nodes to list.

*

Applies only to Hyperledger Fabric and is required for Hyperledger * Fabric.

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

The unique identifier of the member who owns the nodes to list.

*

Applies only to Hyperledger Fabric and is required for Hyperledger * Fabric.

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

The unique identifier of the member who owns the nodes to list.

*

Applies only to Hyperledger Fabric and is required for Hyperledger * Fabric.

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

The unique identifier of the member who owns the nodes to list.

*

Applies only to Hyperledger Fabric and is required for Hyperledger * Fabric.

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

The unique identifier of the member who owns the nodes to list.

*

Applies only to Hyperledger Fabric and is required for Hyperledger * Fabric.

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

An optional status specifier. If provided, only nodes currently in this * status are listed.

*/ inline const NodeStatus& GetStatus() const{ return m_status; } /** *

An optional status specifier. If provided, only nodes currently in this * status are listed.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

An optional status specifier. If provided, only nodes currently in this * status are listed.

*/ inline void SetStatus(const NodeStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

An optional status specifier. If provided, only nodes currently in this * status are listed.

*/ inline void SetStatus(NodeStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

An optional status specifier. If provided, only nodes currently in this * status are listed.

*/ inline ListNodesRequest& WithStatus(const NodeStatus& value) { SetStatus(value); return *this;} /** *

An optional status specifier. If provided, only nodes currently in this * status are listed.

*/ inline ListNodesRequest& WithStatus(NodeStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The maximum number of nodes to list.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

The maximum number of nodes to list.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

The maximum number of nodes to list.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

The maximum number of nodes to list.

*/ inline ListNodesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

The pagination token that indicates the next set of results to retrieve.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The pagination token that indicates the next set of results to retrieve.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

The pagination token that indicates the next set of results to retrieve.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

The pagination token that indicates the next set of results to retrieve.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

The pagination token that indicates the next set of results to retrieve.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

The pagination token that indicates the next set of results to retrieve.

*/ inline ListNodesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The pagination token that indicates the next set of results to retrieve.

*/ inline ListNodesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The pagination token that indicates the next set of results to retrieve.

*/ inline ListNodesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::String m_networkId; bool m_networkIdHasBeenSet = false; Aws::String m_memberId; bool m_memberIdHasBeenSet = false; NodeStatus m_status; bool m_statusHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace ManagedBlockchain } // namespace Aws