AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
50 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
51 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
53 inline CreateAccessorRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
54 inline CreateAccessorRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
56
58
62 inline const AccessorType& GetAccessorType() const{ return m_accessorType; }
63 inline bool AccessorTypeHasBeenSet() const { return m_accessorTypeHasBeenSet; }
64 inline void SetAccessorType(const AccessorType& value) { m_accessorTypeHasBeenSet = true; m_accessorType = value; }
65 inline void SetAccessorType(AccessorType&& value) { m_accessorTypeHasBeenSet = true; m_accessorType = std::move(value); }
66 inline CreateAccessorRequest& WithAccessorType(const AccessorType& value) { SetAccessorType(value); return *this;}
67 inline CreateAccessorRequest& WithAccessorType(AccessorType&& value) { SetAccessorType(std::move(value)); return *this;}
69
71
83 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
84 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
85 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
86 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
87 inline CreateAccessorRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
88 inline CreateAccessorRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
89 inline CreateAccessorRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
90 inline CreateAccessorRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
91 inline CreateAccessorRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
92 inline CreateAccessorRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
93 inline CreateAccessorRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
94 inline CreateAccessorRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
95 inline CreateAccessorRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
97
99
112 inline const AccessorNetworkType& GetNetworkType() const{ return m_networkType; }
113 inline bool NetworkTypeHasBeenSet() const { return m_networkTypeHasBeenSet; }
114 inline void SetNetworkType(const AccessorNetworkType& value) { m_networkTypeHasBeenSet = true; m_networkType = value; }
115 inline void SetNetworkType(AccessorNetworkType&& value) { m_networkTypeHasBeenSet = true; m_networkType = std::move(value); }
116 inline CreateAccessorRequest& WithNetworkType(const AccessorNetworkType& value) { SetNetworkType(value); return *this;}
117 inline CreateAccessorRequest& WithNetworkType(AccessorNetworkType&& value) { SetNetworkType(std::move(value)); return *this;}
119 private:
120
121 Aws::String m_clientRequestToken;
122 bool m_clientRequestTokenHasBeenSet = false;
123
124 AccessorType m_accessorType;
125 bool m_accessorTypeHasBeenSet = false;
126
128 bool m_tagsHasBeenSet = false;
129
130 AccessorNetworkType m_networkType;
131 bool m_networkTypeHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace ManagedBlockchain
136} // namespace Aws
CreateAccessorRequest & WithAccessorType(const AccessorType &value)
CreateAccessorRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateAccessorRequest & AddTags(const char *key, const char *value)
CreateAccessorRequest & AddTags(Aws::String &&key, const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateAccessorRequest & AddTags(const char *key, Aws::String &&value)
CreateAccessorRequest & WithNetworkType(AccessorNetworkType &&value)
CreateAccessorRequest & AddTags(const Aws::String &key, Aws::String &&value)
AWS_MANAGEDBLOCKCHAIN_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateAccessorRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateAccessorRequest & WithClientRequestToken(Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateAccessorRequest & WithClientRequestToken(const char *value)
virtual const char * GetServiceRequestName() const override
CreateAccessorRequest & WithClientRequestToken(const Aws::String &value)
CreateAccessorRequest & WithNetworkType(const AccessorNetworkType &value)
CreateAccessorRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateAccessorRequest & AddTags(Aws::String &&key, const char *value)
CreateAccessorRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetNetworkType(const AccessorNetworkType &value)
CreateAccessorRequest & WithAccessorType(AccessorType &&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