AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateAccessorRequest.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/AccessorType.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/managedblockchain/model/AccessorNetworkType.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace ManagedBlockchain
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_MANAGEDBLOCKCHAIN_API CreateAccessorRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateAccessor"; }
35
36 AWS_MANAGEDBLOCKCHAIN_API Aws::String SerializePayload() const override;
37
38
40
47 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
48 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
49 template<typename ClientRequestTokenT = Aws::String>
50 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
51 template<typename ClientRequestTokenT = Aws::String>
52 CreateAccessorRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
54
56
60 inline AccessorType GetAccessorType() const { return m_accessorType; }
61 inline bool AccessorTypeHasBeenSet() const { return m_accessorTypeHasBeenSet; }
62 inline void SetAccessorType(AccessorType value) { m_accessorTypeHasBeenSet = true; m_accessorType = value; }
65
67
79 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
80 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
81 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
82 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
83 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
84 CreateAccessorRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
85 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
86 CreateAccessorRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
87 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
88 }
90
92
105 inline AccessorNetworkType GetNetworkType() const { return m_networkType; }
106 inline bool NetworkTypeHasBeenSet() const { return m_networkTypeHasBeenSet; }
107 inline void SetNetworkType(AccessorNetworkType value) { m_networkTypeHasBeenSet = true; m_networkType = value; }
110 private:
111
112 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
113 bool m_clientRequestTokenHasBeenSet = true;
114
115 AccessorType m_accessorType{AccessorType::NOT_SET};
116 bool m_accessorTypeHasBeenSet = false;
117
119 bool m_tagsHasBeenSet = false;
120
122 bool m_networkTypeHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace ManagedBlockchain
127} // 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