7#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/opensearchserverless/model/ResourceType.h>
10#include <aws/opensearchserverless/model/LifecyclePolicyType.h>
23namespace OpenSearchServerless
51 inline void SetNoMinRetentionPeriod(
bool value) { m_noMinRetentionPeriodHasBeenSet =
true; m_noMinRetentionPeriod = value; }
63 inline void SetPolicyName(
const char* value) { m_policyNameHasBeenSet =
true; m_policyName.assign(value); }
77 inline void SetResource(
const char* value) { m_resourceHasBeenSet =
true; m_resource.assign(value); }
105 inline void SetRetentionPeriod(
const char* value) { m_retentionPeriodHasBeenSet =
true; m_retentionPeriod.assign(value); }
124 bool m_noMinRetentionPeriod;
125 bool m_noMinRetentionPeriodHasBeenSet =
false;
128 bool m_policyNameHasBeenSet =
false;
131 bool m_resourceHasBeenSet =
false;
134 bool m_resourceTypeHasBeenSet =
false;
137 bool m_retentionPeriodHasBeenSet =
false;
140 bool m_typeHasBeenSet =
false;
void SetRetentionPeriod(const char *value)
void SetNoMinRetentionPeriod(bool value)
EffectiveLifecyclePolicyDetail & WithPolicyName(Aws::String &&value)
const ResourceType & GetResourceType() const
EffectiveLifecyclePolicyDetail & WithType(LifecyclePolicyType &&value)
bool RetentionPeriodHasBeenSet() const
EffectiveLifecyclePolicyDetail & WithNoMinRetentionPeriod(bool value)
const Aws::String & GetResource() const
EffectiveLifecyclePolicyDetail & WithPolicyName(const Aws::String &value)
void SetPolicyName(const char *value)
EffectiveLifecyclePolicyDetail & WithRetentionPeriod(Aws::String &&value)
void SetType(const LifecyclePolicyType &value)
bool ResourceTypeHasBeenSet() const
EffectiveLifecyclePolicyDetail & WithType(const LifecyclePolicyType &value)
void SetResource(const char *value)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetResourceType(const ResourceType &value)
void SetResource(Aws::String &&value)
const Aws::String & GetRetentionPeriod() const
EffectiveLifecyclePolicyDetail & WithRetentionPeriod(const char *value)
void SetRetentionPeriod(const Aws::String &value)
void SetPolicyName(Aws::String &&value)
void SetResourceType(ResourceType &&value)
AWS_OPENSEARCHSERVERLESS_API EffectiveLifecyclePolicyDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
bool PolicyNameHasBeenSet() const
const LifecyclePolicyType & GetType() const
bool ResourceHasBeenSet() const
EffectiveLifecyclePolicyDetail & WithResource(const Aws::String &value)
void SetRetentionPeriod(Aws::String &&value)
EffectiveLifecyclePolicyDetail & WithResource(const char *value)
const Aws::String & GetPolicyName() const
EffectiveLifecyclePolicyDetail & WithResource(Aws::String &&value)
bool TypeHasBeenSet() const
EffectiveLifecyclePolicyDetail & WithPolicyName(const char *value)
EffectiveLifecyclePolicyDetail & WithRetentionPeriod(const Aws::String &value)
EffectiveLifecyclePolicyDetail & WithResourceType(const ResourceType &value)
void SetResource(const Aws::String &value)
EffectiveLifecyclePolicyDetail & WithResourceType(ResourceType &&value)
AWS_OPENSEARCHSERVERLESS_API EffectiveLifecyclePolicyDetail(Aws::Utils::Json::JsonView jsonValue)
bool GetNoMinRetentionPeriod() const
bool NoMinRetentionPeriodHasBeenSet() const
void SetPolicyName(const Aws::String &value)
void SetType(LifecyclePolicyType &&value)
AWS_OPENSEARCHSERVERLESS_API EffectiveLifecyclePolicyDetail()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue