AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
CreateIndexRequest.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/resource-explorer-2/ResourceExplorer2Request.h>
11#include <aws/resource-explorer-2/ResourceExplorer2_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ResourceExplorer2 {
17namespace Model {
18
22 public:
23 AWS_RESOURCEEXPLORER2_API CreateIndexRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateIndex"; }
30
31 AWS_RESOURCEEXPLORER2_API Aws::String SerializePayload() const override;
32
34
41 inline const Aws::String& GetClientToken() const { return m_clientToken; }
42 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
43 template <typename ClientTokenT = Aws::String>
44 void SetClientToken(ClientTokenT&& value) {
45 m_clientTokenHasBeenSet = true;
46 m_clientToken = std::forward<ClientTokenT>(value);
47 }
48 template <typename ClientTokenT = Aws::String>
49 CreateIndexRequest& WithClientToken(ClientTokenT&& value) {
50 SetClientToken(std::forward<ClientTokenT>(value));
51 return *this;
52 }
54
56
61 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
62 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
63 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
64 void SetTags(TagsT&& value) {
65 m_tagsHasBeenSet = true;
66 m_tags = std::forward<TagsT>(value);
67 }
68 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
69 CreateIndexRequest& WithTags(TagsT&& value) {
70 SetTags(std::forward<TagsT>(value));
71 return *this;
72 }
73 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
74 CreateIndexRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
75 m_tagsHasBeenSet = true;
76 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
77 return *this;
78 }
80 private:
82
84 bool m_clientTokenHasBeenSet = true;
85 bool m_tagsHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace ResourceExplorer2
90} // namespace Aws
AWS_RESOURCEEXPLORER2_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateIndexRequest & WithTags(TagsT &&value)
CreateIndexRequest & WithClientToken(ClientTokenT &&value)
virtual const char * GetServiceRequestName() const override
AWS_RESOURCEEXPLORER2_API CreateIndexRequest()=default
CreateIndexRequest & AddTags(TagsKeyT &&key, TagsValueT &&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