AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
LifecyclePolicyDetail.h
1
6#pragma once
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>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace OpenSearchServerless {
22namespace Model {
23
31 public:
32 AWS_OPENSEARCHSERVERLESS_API LifecyclePolicyDetail() = default;
33 AWS_OPENSEARCHSERVERLESS_API LifecyclePolicyDetail(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OPENSEARCHSERVERLESS_API LifecyclePolicyDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline LifecyclePolicyType GetType() const { return m_type; }
42 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
43 inline void SetType(LifecyclePolicyType value) {
44 m_typeHasBeenSet = true;
45 m_type = value;
46 }
48 SetType(value);
49 return *this;
50 }
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template <typename NameT = Aws::String>
60 void SetName(NameT&& value) {
61 m_nameHasBeenSet = true;
62 m_name = std::forward<NameT>(value);
63 }
64 template <typename NameT = Aws::String>
66 SetName(std::forward<NameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetPolicyVersion() const { return m_policyVersion; }
76 inline bool PolicyVersionHasBeenSet() const { return m_policyVersionHasBeenSet; }
77 template <typename PolicyVersionT = Aws::String>
78 void SetPolicyVersion(PolicyVersionT&& value) {
79 m_policyVersionHasBeenSet = true;
80 m_policyVersion = std::forward<PolicyVersionT>(value);
81 }
82 template <typename PolicyVersionT = Aws::String>
83 LifecyclePolicyDetail& WithPolicyVersion(PolicyVersionT&& value) {
84 SetPolicyVersion(std::forward<PolicyVersionT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetDescription() const { return m_description; }
94 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
95 template <typename DescriptionT = Aws::String>
96 void SetDescription(DescriptionT&& value) {
97 m_descriptionHasBeenSet = true;
98 m_description = std::forward<DescriptionT>(value);
99 }
100 template <typename DescriptionT = Aws::String>
101 LifecyclePolicyDetail& WithDescription(DescriptionT&& value) {
102 SetDescription(std::forward<DescriptionT>(value));
103 return *this;
104 }
106
108
111 inline Aws::Utils::DocumentView GetPolicy() const { return m_policy; }
112 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
113 template <typename PolicyT = Aws::Utils::Document>
114 void SetPolicy(PolicyT&& value) {
115 m_policyHasBeenSet = true;
116 m_policy = std::forward<PolicyT>(value);
117 }
118 template <typename PolicyT = Aws::Utils::Document>
120 SetPolicy(std::forward<PolicyT>(value));
121 return *this;
122 }
124
126
129 inline long long GetCreatedDate() const { return m_createdDate; }
130 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
131 inline void SetCreatedDate(long long value) {
132 m_createdDateHasBeenSet = true;
133 m_createdDate = value;
134 }
135 inline LifecyclePolicyDetail& WithCreatedDate(long long value) {
136 SetCreatedDate(value);
137 return *this;
138 }
140
142
145 inline long long GetLastModifiedDate() const { return m_lastModifiedDate; }
146 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
147 inline void SetLastModifiedDate(long long value) {
148 m_lastModifiedDateHasBeenSet = true;
149 m_lastModifiedDate = value;
150 }
152 SetLastModifiedDate(value);
153 return *this;
154 }
156 private:
158
159 Aws::String m_name;
160
161 Aws::String m_policyVersion;
162
163 Aws::String m_description;
164
165 Aws::Utils::Document m_policy;
166
167 long long m_createdDate{0};
168
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;
177};
178
179} // namespace Model
180} // namespace OpenSearchServerless
181} // namespace Aws
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
LifecyclePolicyDetail & WithDescription(DescriptionT &&value)
LifecyclePolicyDetail & WithLastModifiedDate(long long value)
LifecyclePolicyDetail & WithPolicyVersion(PolicyVersionT &&value)
LifecyclePolicyDetail & WithType(LifecyclePolicyType value)
AWS_OPENSEARCHSERVERLESS_API LifecyclePolicyDetail(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVERLESS_API LifecyclePolicyDetail()=default
LifecyclePolicyDetail & WithCreatedDate(long long value)
AWS_OPENSEARCHSERVERLESS_API LifecyclePolicyDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue