7#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
8#include <aws/opensearchserverless/model/LifecyclePolicyType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
22namespace OpenSearchServerless
57 template<
typename NameT = Aws::String>
58 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
59 template<
typename NameT = Aws::String>
69 template<
typename PolicyVersionT = Aws::String>
70 void SetPolicyVersion(PolicyVersionT&& value) { m_policyVersionHasBeenSet =
true; m_policyVersion = std::forward<PolicyVersionT>(value); }
71 template<
typename PolicyVersionT = Aws::String>
81 template<
typename DescriptionT = Aws::String>
82 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
83 template<
typename DescriptionT = Aws::String>
93 inline void SetCreatedDate(
long long value) { m_createdDateHasBeenSet =
true; m_createdDate = value; }
103 inline void SetLastModifiedDate(
long long value) { m_lastModifiedDateHasBeenSet =
true; m_lastModifiedDate = value; }
109 bool m_typeHasBeenSet =
false;
112 bool m_nameHasBeenSet =
false;
115 bool m_policyVersionHasBeenSet =
false;
118 bool m_descriptionHasBeenSet =
false;
120 long long m_createdDate{0};
121 bool m_createdDateHasBeenSet =
false;
123 long long m_lastModifiedDate{0};
124 bool m_lastModifiedDateHasBeenSet =
false;
AWS_OPENSEARCHSERVERLESS_API LifecyclePolicySummary(Aws::Utils::Json::JsonView jsonValue)
void SetName(NameT &&value)
void SetType(LifecyclePolicyType value)
const Aws::String & GetName() const
void SetPolicyVersion(PolicyVersionT &&value)
AWS_OPENSEARCHSERVERLESS_API LifecyclePolicySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
long long GetCreatedDate() const
void SetCreatedDate(long long value)
LifecyclePolicySummary & WithPolicyVersion(PolicyVersionT &&value)
LifecyclePolicySummary & WithCreatedDate(long long value)
LifecyclePolicySummary & WithLastModifiedDate(long long value)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetDescription() const
AWS_OPENSEARCHSERVERLESS_API LifecyclePolicySummary()=default
long long GetLastModifiedDate() const
bool NameHasBeenSet() const
void SetDescription(DescriptionT &&value)
bool TypeHasBeenSet() const
LifecyclePolicySummary & WithDescription(DescriptionT &&value)
bool PolicyVersionHasBeenSet() const
LifecyclePolicySummary & WithName(NameT &&value)
bool DescriptionHasBeenSet() const
bool LastModifiedDateHasBeenSet() const
LifecyclePolicyType GetType() const
bool CreatedDateHasBeenSet() const
LifecyclePolicySummary & WithType(LifecyclePolicyType value)
const Aws::String & GetPolicyVersion() const
void SetLastModifiedDate(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue