AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateCollectionRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/opensearchserverless/OpenSearchServerlessRequest.h>
10#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace OpenSearchServerless {
16namespace Model {
17
21 public:
22 AWS_OPENSEARCHSERVERLESS_API UpdateCollectionRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateCollection"; }
29
30 AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override;
31
32 AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
38 inline const Aws::String& GetId() const { return m_id; }
39 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
40 template <typename IdT = Aws::String>
41 void SetId(IdT&& value) {
42 m_idHasBeenSet = true;
43 m_id = std::forward<IdT>(value);
44 }
45 template <typename IdT = Aws::String>
47 SetId(std::forward<IdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetDescription() const { return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 template <typename DescriptionT = Aws::String>
59 void SetDescription(DescriptionT&& value) {
60 m_descriptionHasBeenSet = true;
61 m_description = std::forward<DescriptionT>(value);
62 }
63 template <typename DescriptionT = Aws::String>
65 SetDescription(std::forward<DescriptionT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetClientToken() const { return m_clientToken; }
75 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
76 template <typename ClientTokenT = Aws::String>
77 void SetClientToken(ClientTokenT&& value) {
78 m_clientTokenHasBeenSet = true;
79 m_clientToken = std::forward<ClientTokenT>(value);
80 }
81 template <typename ClientTokenT = Aws::String>
83 SetClientToken(std::forward<ClientTokenT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_id;
89
90 Aws::String m_description;
91
93 bool m_idHasBeenSet = false;
94 bool m_descriptionHasBeenSet = false;
95 bool m_clientTokenHasBeenSet = true;
96};
97
98} // namespace Model
99} // namespace OpenSearchServerless
100} // namespace Aws
AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override
UpdateCollectionRequest & WithClientToken(ClientTokenT &&value)
AWS_OPENSEARCHSERVERLESS_API UpdateCollectionRequest()=default
AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateCollectionRequest & WithDescription(DescriptionT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String