/** * 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 ManagedBlockchain { namespace Model { /** */ class GetProposalRequest : public ManagedBlockchainRequest { public: AWS_MANAGEDBLOCKCHAIN_API GetProposalRequest(); // 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 "GetProposal"; } AWS_MANAGEDBLOCKCHAIN_API Aws::String SerializePayload() const override; /** *

The unique identifier of the network for which the proposal is made.

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

The unique identifier of the network for which the proposal is made.

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

The unique identifier of the network for which the proposal is made.

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

The unique identifier of the network for which the proposal is made.

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

The unique identifier of the network for which the proposal is made.

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

The unique identifier of the network for which the proposal is made.

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

The unique identifier of the network for which the proposal is made.

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

The unique identifier of the network for which the proposal is made.

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

The unique identifier of the proposal.

*/ inline const Aws::String& GetProposalId() const{ return m_proposalId; } /** *

The unique identifier of the proposal.

*/ inline bool ProposalIdHasBeenSet() const { return m_proposalIdHasBeenSet; } /** *

The unique identifier of the proposal.

*/ inline void SetProposalId(const Aws::String& value) { m_proposalIdHasBeenSet = true; m_proposalId = value; } /** *

The unique identifier of the proposal.

*/ inline void SetProposalId(Aws::String&& value) { m_proposalIdHasBeenSet = true; m_proposalId = std::move(value); } /** *

The unique identifier of the proposal.

*/ inline void SetProposalId(const char* value) { m_proposalIdHasBeenSet = true; m_proposalId.assign(value); } /** *

The unique identifier of the proposal.

*/ inline GetProposalRequest& WithProposalId(const Aws::String& value) { SetProposalId(value); return *this;} /** *

The unique identifier of the proposal.

*/ inline GetProposalRequest& WithProposalId(Aws::String&& value) { SetProposalId(std::move(value)); return *this;} /** *

The unique identifier of the proposal.

*/ inline GetProposalRequest& WithProposalId(const char* value) { SetProposalId(value); return *this;} private: Aws::String m_networkId; bool m_networkIdHasBeenSet = false; Aws::String m_proposalId; bool m_proposalIdHasBeenSet = false; }; } // namespace Model } // namespace ManagedBlockchain } // namespace Aws