7#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
8#include <aws/opensearchserverless/OpenSearchServerlessRequest.h>
9#include <aws/opensearchserverless/model/LifecyclePolicyType.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>
79 template<
typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
81 template<
typename DescriptionT = Aws::String>
91 template<
typename PolicyT = Aws::String>
92 void SetPolicy(PolicyT&& value) { m_policyHasBeenSet =
true; m_policy = std::forward<PolicyT>(value); }
93 template<
typename PolicyT = Aws::String>
103 template<
typename ClientTokenT = Aws::String>
104 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet =
true; m_clientToken = std::forward<ClientTokenT>(value); }
105 template<
typename ClientTokenT = Aws::String>
111 bool m_typeHasBeenSet =
false;
114 bool m_nameHasBeenSet =
false;
117 bool m_policyVersionHasBeenSet =
false;
120 bool m_descriptionHasBeenSet =
false;
123 bool m_policyHasBeenSet =
false;
126 bool m_clientTokenHasBeenSet =
true;
bool ClientTokenHasBeenSet() const
bool DescriptionHasBeenSet() const
bool TypeHasBeenSet() const
const Aws::String & GetName() const
const Aws::String & GetPolicy() const
const Aws::String & GetDescription() const
void SetPolicy(PolicyT &&value)
bool PolicyVersionHasBeenSet() const
UpdateLifecyclePolicyRequest & WithPolicyVersion(PolicyVersionT &&value)
bool PolicyHasBeenSet() const
UpdateLifecyclePolicyRequest & WithName(NameT &&value)
LifecyclePolicyType GetType() const
void SetName(NameT &&value)
virtual const char * GetServiceRequestName() const override
AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override
const Aws::String & GetPolicyVersion() const
UpdateLifecyclePolicyRequest & WithDescription(DescriptionT &&value)
bool NameHasBeenSet() const
UpdateLifecyclePolicyRequest & WithType(LifecyclePolicyType value)
UpdateLifecyclePolicyRequest & WithPolicy(PolicyT &&value)
void SetType(LifecyclePolicyType value)
AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetClientToken() const
AWS_OPENSEARCHSERVERLESS_API UpdateLifecyclePolicyRequest()=default
void SetPolicyVersion(PolicyVersionT &&value)
void SetClientToken(ClientTokenT &&value)
void SetDescription(DescriptionT &&value)
UpdateLifecyclePolicyRequest & 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