AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateProposalRequest.h
1
6#pragma once
7#include <aws/managedblockchain/ManagedBlockchain_EXPORTS.h>
8#include <aws/managedblockchain/ManagedBlockchainRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/managedblockchain/model/ProposalActions.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace ManagedBlockchain
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_MANAGEDBLOCKCHAIN_API CreateProposalRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateProposal"; }
34
35 AWS_MANAGEDBLOCKCHAIN_API Aws::String SerializePayload() const override;
36
37
39
46 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
47 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
48 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
49 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
50 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
52 inline CreateProposalRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
53 inline CreateProposalRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
55
57
60 inline const Aws::String& GetNetworkId() const{ return m_networkId; }
61 inline bool NetworkIdHasBeenSet() const { return m_networkIdHasBeenSet; }
62 inline void SetNetworkId(const Aws::String& value) { m_networkIdHasBeenSet = true; m_networkId = value; }
63 inline void SetNetworkId(Aws::String&& value) { m_networkIdHasBeenSet = true; m_networkId = std::move(value); }
64 inline void SetNetworkId(const char* value) { m_networkIdHasBeenSet = true; m_networkId.assign(value); }
65 inline CreateProposalRequest& WithNetworkId(const Aws::String& value) { SetNetworkId(value); return *this;}
66 inline CreateProposalRequest& WithNetworkId(Aws::String&& value) { SetNetworkId(std::move(value)); return *this;}
67 inline CreateProposalRequest& WithNetworkId(const char* value) { SetNetworkId(value); return *this;}
69
71
76 inline const Aws::String& GetMemberId() const{ return m_memberId; }
77 inline bool MemberIdHasBeenSet() const { return m_memberIdHasBeenSet; }
78 inline void SetMemberId(const Aws::String& value) { m_memberIdHasBeenSet = true; m_memberId = value; }
79 inline void SetMemberId(Aws::String&& value) { m_memberIdHasBeenSet = true; m_memberId = std::move(value); }
80 inline void SetMemberId(const char* value) { m_memberIdHasBeenSet = true; m_memberId.assign(value); }
81 inline CreateProposalRequest& WithMemberId(const Aws::String& value) { SetMemberId(value); return *this;}
82 inline CreateProposalRequest& WithMemberId(Aws::String&& value) { SetMemberId(std::move(value)); return *this;}
83 inline CreateProposalRequest& WithMemberId(const char* value) { SetMemberId(value); return *this;}
85
87
93 inline const ProposalActions& GetActions() const{ return m_actions; }
94 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
95 inline void SetActions(const ProposalActions& value) { m_actionsHasBeenSet = true; m_actions = value; }
96 inline void SetActions(ProposalActions&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
97 inline CreateProposalRequest& WithActions(const ProposalActions& value) { SetActions(value); return *this;}
98 inline CreateProposalRequest& WithActions(ProposalActions&& value) { SetActions(std::move(value)); return *this;}
100
102
106 inline const Aws::String& GetDescription() const{ return m_description; }
107 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
108 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
109 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
110 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
111 inline CreateProposalRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
112 inline CreateProposalRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
113 inline CreateProposalRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
115
117
129 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
130 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
131 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
132 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
133 inline CreateProposalRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
134 inline CreateProposalRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
135 inline CreateProposalRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
136 inline CreateProposalRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
137 inline CreateProposalRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
138 inline CreateProposalRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
139 inline CreateProposalRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
140 inline CreateProposalRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
141 inline CreateProposalRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
143 private:
144
145 Aws::String m_clientRequestToken;
146 bool m_clientRequestTokenHasBeenSet = false;
147
148 Aws::String m_networkId;
149 bool m_networkIdHasBeenSet = false;
150
151 Aws::String m_memberId;
152 bool m_memberIdHasBeenSet = false;
153
154 ProposalActions m_actions;
155 bool m_actionsHasBeenSet = false;
156
157 Aws::String m_description;
158 bool m_descriptionHasBeenSet = false;
159
161 bool m_tagsHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace ManagedBlockchain
166} // namespace Aws
CreateProposalRequest & WithMemberId(Aws::String &&value)
CreateProposalRequest & WithClientRequestToken(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateProposalRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateProposalRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateProposalRequest & WithMemberId(const Aws::String &value)
AWS_MANAGEDBLOCKCHAIN_API Aws::String SerializePayload() const override
CreateProposalRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateProposalRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateProposalRequest & WithNetworkId(const Aws::String &value)
CreateProposalRequest & WithNetworkId(const char *value)
CreateProposalRequest & WithClientRequestToken(const char *value)
CreateProposalRequest & WithClientRequestToken(Aws::String &&value)
CreateProposalRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateProposalRequest & WithMemberId(const char *value)
CreateProposalRequest & AddTags(const char *key, const char *value)
CreateProposalRequest & WithActions(const ProposalActions &value)
CreateProposalRequest & AddTags(Aws::String &&key, const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateProposalRequest & WithDescription(const char *value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateProposalRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateProposalRequest & AddTags(const char *key, Aws::String &&value)
CreateProposalRequest & WithDescription(Aws::String &&value)
CreateProposalRequest & WithActions(ProposalActions &&value)
CreateProposalRequest & WithDescription(const Aws::String &value)
CreateProposalRequest & WithNetworkId(Aws::String &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String