7#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
8#include <aws/opensearchserverless/OpenSearchServerlessRequest.h>
9#include <aws/opensearchserverless/model/AccessPolicyType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/UUID.h>
16namespace OpenSearchServerless
55 template<
typename NameT = Aws::String>
56 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
57 template<
typename NameT = Aws::String>
67 template<
typename PolicyVersionT = Aws::String>
68 void SetPolicyVersion(PolicyVersionT&& value) { m_policyVersionHasBeenSet =
true; m_policyVersion = std::forward<PolicyVersionT>(value); }
69 template<
typename PolicyVersionT = Aws::String>
80 template<
typename DescriptionT = Aws::String>
81 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
82 template<
typename DescriptionT = Aws::String>
92 template<
typename PolicyT = Aws::String>
93 void SetPolicy(PolicyT&& value) { m_policyHasBeenSet =
true; m_policy = std::forward<PolicyT>(value); }
94 template<
typename PolicyT = Aws::String>
104 template<
typename ClientTokenT = Aws::String>
105 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet =
true; m_clientToken = std::forward<ClientTokenT>(value); }
106 template<
typename ClientTokenT = Aws::String>
112 bool m_typeHasBeenSet =
false;
115 bool m_nameHasBeenSet =
false;
118 bool m_policyVersionHasBeenSet =
false;
121 bool m_descriptionHasBeenSet =
false;
124 bool m_policyHasBeenSet =
false;
127 bool m_clientTokenHasBeenSet =
true;
UpdateAccessPolicyRequest & WithDescription(DescriptionT &&value)
AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
bool TypeHasBeenSet() const
void SetDescription(DescriptionT &&value)
AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override
void SetName(NameT &&value)
void SetClientToken(ClientTokenT &&value)
const Aws::String & GetName() const
void SetPolicy(PolicyT &&value)
AccessPolicyType GetType() const
const Aws::String & GetDescription() const
const Aws::String & GetPolicyVersion() const
bool PolicyVersionHasBeenSet() const
bool PolicyHasBeenSet() const
void SetType(AccessPolicyType value)
void SetPolicyVersion(PolicyVersionT &&value)
AWS_OPENSEARCHSERVERLESS_API UpdateAccessPolicyRequest()=default
const Aws::String & GetPolicy() const
UpdateAccessPolicyRequest & WithPolicyVersion(PolicyVersionT &&value)
virtual const char * GetServiceRequestName() const override
UpdateAccessPolicyRequest & WithType(AccessPolicyType value)
bool NameHasBeenSet() const
UpdateAccessPolicyRequest & WithName(NameT &&value)
const Aws::String & GetClientToken() const
bool ClientTokenHasBeenSet() const
UpdateAccessPolicyRequest & WithClientToken(ClientTokenT &&value)
UpdateAccessPolicyRequest & WithPolicy(PolicyT &&value)
bool DescriptionHasBeenSet() const
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String