AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EffectiveLifecyclePolicyDetail.h
1
6#pragma once
7#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
8#include <aws/opensearchserverless/model/LifecyclePolicyType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/opensearchserverless/model/ResourceType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace OpenSearchServerless
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_OPENSEARCHSERVERLESS_API EffectiveLifecyclePolicyDetail() = default;
38 AWS_OPENSEARCHSERVERLESS_API EffectiveLifecyclePolicyDetail(Aws::Utils::Json::JsonView jsonValue);
40 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline LifecyclePolicyType GetType() const { return m_type; }
48 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
49 inline void SetType(LifecyclePolicyType value) { m_typeHasBeenSet = true; m_type = value; }
52
54
57 inline const Aws::String& GetResource() const { return m_resource; }
58 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
59 template<typename ResourceT = Aws::String>
60 void SetResource(ResourceT&& value) { m_resourceHasBeenSet = true; m_resource = std::forward<ResourceT>(value); }
61 template<typename ResourceT = Aws::String>
62 EffectiveLifecyclePolicyDetail& WithResource(ResourceT&& value) { SetResource(std::forward<ResourceT>(value)); return *this;}
64
66
69 inline const Aws::String& GetPolicyName() const { return m_policyName; }
70 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
71 template<typename PolicyNameT = Aws::String>
72 void SetPolicyName(PolicyNameT&& value) { m_policyNameHasBeenSet = true; m_policyName = std::forward<PolicyNameT>(value); }
73 template<typename PolicyNameT = Aws::String>
74 EffectiveLifecyclePolicyDetail& WithPolicyName(PolicyNameT&& value) { SetPolicyName(std::forward<PolicyNameT>(value)); return *this;}
76
78
82 inline ResourceType GetResourceType() const { return m_resourceType; }
83 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
84 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
87
89
93 inline const Aws::String& GetRetentionPeriod() const { return m_retentionPeriod; }
94 inline bool RetentionPeriodHasBeenSet() const { return m_retentionPeriodHasBeenSet; }
95 template<typename RetentionPeriodT = Aws::String>
96 void SetRetentionPeriod(RetentionPeriodT&& value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = std::forward<RetentionPeriodT>(value); }
97 template<typename RetentionPeriodT = Aws::String>
98 EffectiveLifecyclePolicyDetail& WithRetentionPeriod(RetentionPeriodT&& value) { SetRetentionPeriod(std::forward<RetentionPeriodT>(value)); return *this;}
100
102
107 inline bool GetNoMinRetentionPeriod() const { return m_noMinRetentionPeriod; }
108 inline bool NoMinRetentionPeriodHasBeenSet() const { return m_noMinRetentionPeriodHasBeenSet; }
109 inline void SetNoMinRetentionPeriod(bool value) { m_noMinRetentionPeriodHasBeenSet = true; m_noMinRetentionPeriod = value; }
112 private:
113
115 bool m_typeHasBeenSet = false;
116
117 Aws::String m_resource;
118 bool m_resourceHasBeenSet = false;
119
120 Aws::String m_policyName;
121 bool m_policyNameHasBeenSet = false;
122
123 ResourceType m_resourceType{ResourceType::NOT_SET};
124 bool m_resourceTypeHasBeenSet = false;
125
126 Aws::String m_retentionPeriod;
127 bool m_retentionPeriodHasBeenSet = false;
128
129 bool m_noMinRetentionPeriod{false};
130 bool m_noMinRetentionPeriodHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace OpenSearchServerless
135} // namespace Aws
EffectiveLifecyclePolicyDetail & WithResourceType(ResourceType value)
EffectiveLifecyclePolicyDetail & WithRetentionPeriod(RetentionPeriodT &&value)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHSERVERLESS_API EffectiveLifecyclePolicyDetail()=default
AWS_OPENSEARCHSERVERLESS_API EffectiveLifecyclePolicyDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
EffectiveLifecyclePolicyDetail & WithPolicyName(PolicyNameT &&value)
AWS_OPENSEARCHSERVERLESS_API EffectiveLifecyclePolicyDetail(Aws::Utils::Json::JsonView jsonValue)
EffectiveLifecyclePolicyDetail & WithType(LifecyclePolicyType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue