AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateAccessPolicyRequest.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#include <aws/opensearchserverless/model/AccessPolicyType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace OpenSearchServerless {
17namespace Model {
18
22 public:
23 AWS_OPENSEARCHSERVERLESS_API UpdateAccessPolicyRequest() = 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 "UpdateAccessPolicy"; }
30
31 AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override;
32
33 AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
39 inline AccessPolicyType GetType() const { return m_type; }
40 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
41 inline void SetType(AccessPolicyType value) {
42 m_typeHasBeenSet = true;
43 m_type = value;
44 }
46 SetType(value);
47 return *this;
48 }
50
52
55 inline const Aws::String& GetName() const { return m_name; }
56 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 template <typename NameT = Aws::String>
58 void SetName(NameT&& value) {
59 m_nameHasBeenSet = true;
60 m_name = std::forward<NameT>(value);
61 }
62 template <typename NameT = Aws::String>
64 SetName(std::forward<NameT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetPolicyVersion() const { return m_policyVersion; }
74 inline bool PolicyVersionHasBeenSet() const { return m_policyVersionHasBeenSet; }
75 template <typename PolicyVersionT = Aws::String>
76 void SetPolicyVersion(PolicyVersionT&& value) {
77 m_policyVersionHasBeenSet = true;
78 m_policyVersion = std::forward<PolicyVersionT>(value);
79 }
80 template <typename PolicyVersionT = Aws::String>
82 SetPolicyVersion(std::forward<PolicyVersionT>(value));
83 return *this;
84 }
86
88
92 inline const Aws::String& GetDescription() const { return m_description; }
93 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
94 template <typename DescriptionT = Aws::String>
95 void SetDescription(DescriptionT&& value) {
96 m_descriptionHasBeenSet = true;
97 m_description = std::forward<DescriptionT>(value);
98 }
99 template <typename DescriptionT = Aws::String>
101 SetDescription(std::forward<DescriptionT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetPolicy() const { return m_policy; }
111 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
112 template <typename PolicyT = Aws::String>
113 void SetPolicy(PolicyT&& value) {
114 m_policyHasBeenSet = true;
115 m_policy = std::forward<PolicyT>(value);
116 }
117 template <typename PolicyT = Aws::String>
119 SetPolicy(std::forward<PolicyT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::String& GetClientToken() const { return m_clientToken; }
129 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
130 template <typename ClientTokenT = Aws::String>
131 void SetClientToken(ClientTokenT&& value) {
132 m_clientTokenHasBeenSet = true;
133 m_clientToken = std::forward<ClientTokenT>(value);
134 }
135 template <typename ClientTokenT = Aws::String>
137 SetClientToken(std::forward<ClientTokenT>(value));
138 return *this;
139 }
141 private:
143
144 Aws::String m_name;
145
146 Aws::String m_policyVersion;
147
148 Aws::String m_description;
149
150 Aws::String m_policy;
151
153 bool m_typeHasBeenSet = false;
154 bool m_nameHasBeenSet = false;
155 bool m_policyVersionHasBeenSet = false;
156 bool m_descriptionHasBeenSet = false;
157 bool m_policyHasBeenSet = false;
158 bool m_clientTokenHasBeenSet = true;
159};
160
161} // namespace Model
162} // namespace OpenSearchServerless
163} // namespace Aws
UpdateAccessPolicyRequest & WithDescription(DescriptionT &&value)
AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override
AWS_OPENSEARCHSERVERLESS_API UpdateAccessPolicyRequest()=default
UpdateAccessPolicyRequest & WithPolicyVersion(PolicyVersionT &&value)
UpdateAccessPolicyRequest & WithType(AccessPolicyType value)
UpdateAccessPolicyRequest & WithClientToken(ClientTokenT &&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