AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateAccessorRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/managedblockchain/ManagedBlockchainRequest.h>
11#include <aws/managedblockchain/ManagedBlockchain_EXPORTS.h>
12#include <aws/managedblockchain/model/AccessorNetworkType.h>
13#include <aws/managedblockchain/model/AccessorType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace ManagedBlockchain {
19namespace Model {
20
24 public:
25 AWS_MANAGEDBLOCKCHAIN_API CreateAccessorRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateAccessor"; }
32
33 AWS_MANAGEDBLOCKCHAIN_API Aws::String SerializePayload() const override;
34
36
43 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
44 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
45 template <typename ClientRequestTokenT = Aws::String>
46 void SetClientRequestToken(ClientRequestTokenT&& value) {
47 m_clientRequestTokenHasBeenSet = true;
48 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
49 }
50 template <typename ClientRequestTokenT = Aws::String>
51 CreateAccessorRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
52 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
53 return *this;
54 }
56
58
62 inline AccessorType GetAccessorType() const { return m_accessorType; }
63 inline bool AccessorTypeHasBeenSet() const { return m_accessorTypeHasBeenSet; }
64 inline void SetAccessorType(AccessorType value) {
65 m_accessorTypeHasBeenSet = true;
66 m_accessorType = value;
67 }
69 SetAccessorType(value);
70 return *this;
71 }
73
75
87 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
88 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
89 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
90 void SetTags(TagsT&& value) {
91 m_tagsHasBeenSet = true;
92 m_tags = std::forward<TagsT>(value);
93 }
94 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
96 SetTags(std::forward<TagsT>(value));
97 return *this;
98 }
99 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
100 CreateAccessorRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
101 m_tagsHasBeenSet = true;
102 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
103 return *this;
104 }
106
108
121 inline AccessorNetworkType GetNetworkType() const { return m_networkType; }
122 inline bool NetworkTypeHasBeenSet() const { return m_networkTypeHasBeenSet; }
124 m_networkTypeHasBeenSet = true;
125 m_networkType = value;
126 }
128 SetNetworkType(value);
129 return *this;
130 }
132 private:
133 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
134
135 AccessorType m_accessorType{AccessorType::NOT_SET};
136
138
140 bool m_clientRequestTokenHasBeenSet = true;
141 bool m_accessorTypeHasBeenSet = false;
142 bool m_tagsHasBeenSet = false;
143 bool m_networkTypeHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace ManagedBlockchain
148} // namespace Aws
CreateAccessorRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateAccessorRequest & WithClientRequestToken(ClientRequestTokenT &&value)
AWS_MANAGEDBLOCKCHAIN_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_MANAGEDBLOCKCHAIN_API CreateAccessorRequest()=default
virtual const char * GetServiceRequestName() const override
CreateAccessorRequest & WithAccessorType(AccessorType value)
CreateAccessorRequest & WithNetworkType(AccessorNetworkType value)
static Aws::Utils::UUID PseudoRandomUUID()
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