AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateAccessPolicyRequest.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 CreateAccessPolicyRequest() = 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 "CreateAccessPolicy"; }
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
74 inline const Aws::String& GetDescription() const { return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 template <typename DescriptionT = Aws::String>
77 void SetDescription(DescriptionT&& value) {
78 m_descriptionHasBeenSet = true;
79 m_description = std::forward<DescriptionT>(value);
80 }
81 template <typename DescriptionT = Aws::String>
83 SetDescription(std::forward<DescriptionT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetPolicy() const { return m_policy; }
93 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
94 template <typename PolicyT = Aws::String>
95 void SetPolicy(PolicyT&& value) {
96 m_policyHasBeenSet = true;
97 m_policy = std::forward<PolicyT>(value);
98 }
99 template <typename PolicyT = Aws::String>
101 SetPolicy(std::forward<PolicyT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetClientToken() const { return m_clientToken; }
111 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
112 template <typename ClientTokenT = Aws::String>
113 void SetClientToken(ClientTokenT&& value) {
114 m_clientTokenHasBeenSet = true;
115 m_clientToken = std::forward<ClientTokenT>(value);
116 }
117 template <typename ClientTokenT = Aws::String>
119 SetClientToken(std::forward<ClientTokenT>(value));
120 return *this;
121 }
123 private:
125
126 Aws::String m_name;
127
128 Aws::String m_description;
129
130 Aws::String m_policy;
131
133 bool m_typeHasBeenSet = false;
134 bool m_nameHasBeenSet = false;
135 bool m_descriptionHasBeenSet = false;
136 bool m_policyHasBeenSet = false;
137 bool m_clientTokenHasBeenSet = true;
138};
139
140} // namespace Model
141} // namespace OpenSearchServerless
142} // namespace Aws
AWS_OPENSEARCHSERVERLESS_API CreateAccessPolicyRequest()=default
CreateAccessPolicyRequest & WithClientToken(ClientTokenT &&value)
AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override
CreateAccessPolicyRequest & WithType(AccessPolicyType value)
AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateAccessPolicyRequest & 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