7#include <aws/core/utils/Document.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
10#include <aws/opensearchserverless/model/LifecyclePolicyType.h>
21namespace OpenSearchServerless {
44 m_typeHasBeenSet =
true;
59 template <
typename NameT = Aws::String>
61 m_nameHasBeenSet =
true;
62 m_name = std::forward<NameT>(value);
64 template <
typename NameT = Aws::String>
66 SetName(std::forward<NameT>(value));
77 template <
typename PolicyVersionT = Aws::String>
79 m_policyVersionHasBeenSet =
true;
80 m_policyVersion = std::forward<PolicyVersionT>(value);
82 template <
typename PolicyVersionT = Aws::String>
95 template <
typename DescriptionT = Aws::String>
97 m_descriptionHasBeenSet =
true;
98 m_description = std::forward<DescriptionT>(value);
100 template <
typename DescriptionT = Aws::String>
113 template <
typename PolicyT = Aws::Utils::Document>
115 m_policyHasBeenSet =
true;
116 m_policy = std::forward<PolicyT>(value);
118 template <
typename PolicyT = Aws::Utils::Document>
132 m_createdDateHasBeenSet =
true;
133 m_createdDate = value;
148 m_lastModifiedDateHasBeenSet =
true;
149 m_lastModifiedDate = value;
167 long long m_createdDate{0};
169 long long m_lastModifiedDate{0};
170 bool m_typeHasBeenSet =
false;
171 bool m_nameHasBeenSet =
false;
172 bool m_policyVersionHasBeenSet =
false;
173 bool m_descriptionHasBeenSet =
false;
174 bool m_policyHasBeenSet =
false;
175 bool m_createdDateHasBeenSet =
false;
176 bool m_lastModifiedDateHasBeenSet =
false;
bool NameHasBeenSet() const
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDescription(DescriptionT &&value)
bool PolicyHasBeenSet() const
LifecyclePolicyDetail & WithDescription(DescriptionT &&value)
bool CreatedDateHasBeenSet() const
LifecyclePolicyDetail & WithLastModifiedDate(long long value)
bool PolicyVersionHasBeenSet() const
LifecyclePolicyDetail & WithPolicyVersion(PolicyVersionT &&value)
LifecyclePolicyDetail & WithPolicy(PolicyT &&value)
LifecyclePolicyDetail & WithType(LifecyclePolicyType value)
AWS_OPENSEARCHSERVERLESS_API LifecyclePolicyDetail(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
AWS_OPENSEARCHSERVERLESS_API LifecyclePolicyDetail()=default
long long GetLastModifiedDate() const
void SetLastModifiedDate(long long value)
const Aws::String & GetDescription() const
void SetType(LifecyclePolicyType value)
void SetName(NameT &&value)
void SetPolicy(PolicyT &&value)
void SetPolicyVersion(PolicyVersionT &&value)
LifecyclePolicyDetail & WithName(NameT &&value)
long long GetCreatedDate() const
bool LastModifiedDateHasBeenSet() const
LifecyclePolicyDetail & WithCreatedDate(long long value)
bool DescriptionHasBeenSet() const
AWS_OPENSEARCHSERVERLESS_API LifecyclePolicyDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::DocumentView GetPolicy() const
const Aws::String & GetPolicyVersion() const
LifecyclePolicyType GetType() const
bool TypeHasBeenSet() const
void SetCreatedDate(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue