AWS SDK for C++  1.9.123
AWS SDK for C++
GetProposalRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace ManagedBlockchain
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "GetProposal"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
38  inline const Aws::String& GetNetworkId() const{ return m_networkId; }
39 
43  inline bool NetworkIdHasBeenSet() const { return m_networkIdHasBeenSet; }
44 
48  inline void SetNetworkId(const Aws::String& value) { m_networkIdHasBeenSet = true; m_networkId = value; }
49 
53  inline void SetNetworkId(Aws::String&& value) { m_networkIdHasBeenSet = true; m_networkId = std::move(value); }
54 
58  inline void SetNetworkId(const char* value) { m_networkIdHasBeenSet = true; m_networkId.assign(value); }
59 
63  inline GetProposalRequest& WithNetworkId(const Aws::String& value) { SetNetworkId(value); return *this;}
64 
68  inline GetProposalRequest& WithNetworkId(Aws::String&& value) { SetNetworkId(std::move(value)); return *this;}
69 
73  inline GetProposalRequest& WithNetworkId(const char* value) { SetNetworkId(value); return *this;}
74 
75 
79  inline const Aws::String& GetProposalId() const{ return m_proposalId; }
80 
84  inline bool ProposalIdHasBeenSet() const { return m_proposalIdHasBeenSet; }
85 
89  inline void SetProposalId(const Aws::String& value) { m_proposalIdHasBeenSet = true; m_proposalId = value; }
90 
94  inline void SetProposalId(Aws::String&& value) { m_proposalIdHasBeenSet = true; m_proposalId = std::move(value); }
95 
99  inline void SetProposalId(const char* value) { m_proposalIdHasBeenSet = true; m_proposalId.assign(value); }
100 
104  inline GetProposalRequest& WithProposalId(const Aws::String& value) { SetProposalId(value); return *this;}
105 
109  inline GetProposalRequest& WithProposalId(Aws::String&& value) { SetProposalId(std::move(value)); return *this;}
110 
114  inline GetProposalRequest& WithProposalId(const char* value) { SetProposalId(value); return *this;}
115 
116  private:
117 
118  Aws::String m_networkId;
119  bool m_networkIdHasBeenSet;
120 
121  Aws::String m_proposalId;
122  bool m_proposalIdHasBeenSet;
123  };
124 
125 } // namespace Model
126 } // namespace ManagedBlockchain
127 } // namespace Aws
Aws::ManagedBlockchain::Model::GetProposalRequest::WithProposalId
GetProposalRequest & WithProposalId(const char *value)
Definition: GetProposalRequest.h:114
Aws::ManagedBlockchain::Model::GetProposalRequest::WithProposalId
GetProposalRequest & WithProposalId(const Aws::String &value)
Definition: GetProposalRequest.h:104
Aws::ManagedBlockchain::Model::GetProposalRequest::SetNetworkId
void SetNetworkId(Aws::String &&value)
Definition: GetProposalRequest.h:53
Aws::ManagedBlockchain::Model::GetProposalRequest
Definition: GetProposalRequest.h:22
Aws::ManagedBlockchain::Model::GetProposalRequest::ProposalIdHasBeenSet
bool ProposalIdHasBeenSet() const
Definition: GetProposalRequest.h:84
Aws::ManagedBlockchain::Model::GetProposalRequest::SetNetworkId
void SetNetworkId(const char *value)
Definition: GetProposalRequest.h:58
Aws::ManagedBlockchain::Model::GetProposalRequest::WithNetworkId
GetProposalRequest & WithNetworkId(const char *value)
Definition: GetProposalRequest.h:73
Aws::ManagedBlockchain::Model::GetProposalRequest::GetProposalRequest
GetProposalRequest()
Aws::ManagedBlockchain::Model::GetProposalRequest::GetProposalId
const Aws::String & GetProposalId() const
Definition: GetProposalRequest.h:79
Aws::ManagedBlockchain::Model::GetProposalRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetProposalRequest.h:30
Aws::ManagedBlockchain::Model::GetProposalRequest::SetProposalId
void SetProposalId(const Aws::String &value)
Definition: GetProposalRequest.h:89
Aws::ManagedBlockchain::Model::GetProposalRequest::SetNetworkId
void SetNetworkId(const Aws::String &value)
Definition: GetProposalRequest.h:48
Aws::ManagedBlockchain::Model::GetProposalRequest::WithProposalId
GetProposalRequest & WithProposalId(Aws::String &&value)
Definition: GetProposalRequest.h:109
AWSString.h
Aws::ManagedBlockchain::ManagedBlockchainRequest
Definition: ManagedBlockchainRequest.h:17
Aws::ManagedBlockchain::Model::GetProposalRequest::WithNetworkId
GetProposalRequest & WithNetworkId(Aws::String &&value)
Definition: GetProposalRequest.h:68
Aws::ManagedBlockchain::Model::GetProposalRequest::WithNetworkId
GetProposalRequest & WithNetworkId(const Aws::String &value)
Definition: GetProposalRequest.h:63
ManagedBlockchainRequest.h
AWS_MANAGEDBLOCKCHAIN_API
#define AWS_MANAGEDBLOCKCHAIN_API
Definition: ManagedBlockchain_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
ManagedBlockchain_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ManagedBlockchain::Model::GetProposalRequest::NetworkIdHasBeenSet
bool NetworkIdHasBeenSet() const
Definition: GetProposalRequest.h:43
Aws::ManagedBlockchain::Model::GetProposalRequest::SetProposalId
void SetProposalId(const char *value)
Definition: GetProposalRequest.h:99
Aws::ManagedBlockchain::Model::GetProposalRequest::SetProposalId
void SetProposalId(Aws::String &&value)
Definition: GetProposalRequest.h:94
Aws::ManagedBlockchain::Model::GetProposalRequest::GetNetworkId
const Aws::String & GetNetworkId() const
Definition: GetProposalRequest.h:38
Aws::ManagedBlockchain::Model::GetProposalRequest::SerializePayload
Aws::String SerializePayload() const override