7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
9#include <aws/opensearchserverless/model/LifecyclePolicyType.h>
10#include <aws/opensearchserverless/model/ResourceType.h>
21namespace OpenSearchServerless {
44 m_typeHasBeenSet =
true;
59 template <
typename ResourceT = Aws::String>
61 m_resourceHasBeenSet =
true;
62 m_resource = std::forward<ResourceT>(value);
64 template <
typename ResourceT = Aws::String>
77 template <
typename PolicyNameT = Aws::String>
79 m_policyNameHasBeenSet =
true;
80 m_policyName = std::forward<PolicyNameT>(value);
82 template <
typename PolicyNameT = Aws::String>
97 m_resourceTypeHasBeenSet =
true;
98 m_resourceType = value;
113 template <
typename RetentionPeriodT = Aws::String>
115 m_retentionPeriodHasBeenSet =
true;
116 m_retentionPeriod = std::forward<RetentionPeriodT>(value);
118 template <
typename RetentionPeriodT = Aws::String>
134 m_noMinRetentionPeriodHasBeenSet =
true;
135 m_noMinRetentionPeriod = value;
153 bool m_noMinRetentionPeriod{
false};
154 bool m_typeHasBeenSet =
false;
155 bool m_resourceHasBeenSet =
false;
156 bool m_policyNameHasBeenSet =
false;
157 bool m_resourceTypeHasBeenSet =
false;
158 bool m_retentionPeriodHasBeenSet =
false;
159 bool m_noMinRetentionPeriodHasBeenSet =
false;
ResourceType GetResourceType() const
void SetNoMinRetentionPeriod(bool value)
void SetResource(ResourceT &&value)
EffectiveLifecyclePolicyDetail & WithResourceType(ResourceType value)
EffectiveLifecyclePolicyDetail & WithRetentionPeriod(RetentionPeriodT &&value)
bool RetentionPeriodHasBeenSet() const
EffectiveLifecyclePolicyDetail & WithNoMinRetentionPeriod(bool value)
void SetType(LifecyclePolicyType value)
const Aws::String & GetResource() const
bool ResourceTypeHasBeenSet() const
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetRetentionPeriod() const
void SetPolicyName(PolicyNameT &&value)
void SetResourceType(ResourceType value)
AWS_OPENSEARCHSERVERLESS_API EffectiveLifecyclePolicyDetail()=default
AWS_OPENSEARCHSERVERLESS_API EffectiveLifecyclePolicyDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
bool PolicyNameHasBeenSet() const
bool ResourceHasBeenSet() const
LifecyclePolicyType GetType() const
void SetRetentionPeriod(RetentionPeriodT &&value)
EffectiveLifecyclePolicyDetail & WithResource(ResourceT &&value)
const Aws::String & GetPolicyName() const
bool TypeHasBeenSet() const
EffectiveLifecyclePolicyDetail & WithPolicyName(PolicyNameT &&value)
AWS_OPENSEARCHSERVERLESS_API EffectiveLifecyclePolicyDetail(Aws::Utils::Json::JsonView jsonValue)
bool GetNoMinRetentionPeriod() const
bool NoMinRetentionPeriodHasBeenSet() const
EffectiveLifecyclePolicyDetail & WithType(LifecyclePolicyType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue