AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
LifecyclePolicySummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
9#include <aws/opensearchserverless/model/LifecyclePolicyType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace OpenSearchServerless {
21namespace Model {
22
29 public:
30 AWS_OPENSEARCHSERVERLESS_API LifecyclePolicySummary() = default;
31 AWS_OPENSEARCHSERVERLESS_API LifecyclePolicySummary(Aws::Utils::Json::JsonView jsonValue);
32 AWS_OPENSEARCHSERVERLESS_API LifecyclePolicySummary& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline LifecyclePolicyType GetType() const { return m_type; }
40 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
41 inline void SetType(LifecyclePolicyType value) {
42 m_typeHasBeenSet = true;
43 m_type = value;
44 }
46 SetType(value);
47 return *this;
48 }
50
52
55 inline const Aws::String& GetName() const { return m_name; }
56 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 template <typename NameT = Aws::String>
58 void SetName(NameT&& value) {
59 m_nameHasBeenSet = true;
60 m_name = std::forward<NameT>(value);
61 }
62 template <typename NameT = Aws::String>
64 SetName(std::forward<NameT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetPolicyVersion() const { return m_policyVersion; }
74 inline bool PolicyVersionHasBeenSet() const { return m_policyVersionHasBeenSet; }
75 template <typename PolicyVersionT = Aws::String>
76 void SetPolicyVersion(PolicyVersionT&& value) {
77 m_policyVersionHasBeenSet = true;
78 m_policyVersion = std::forward<PolicyVersionT>(value);
79 }
80 template <typename PolicyVersionT = Aws::String>
81 LifecyclePolicySummary& WithPolicyVersion(PolicyVersionT&& value) {
82 SetPolicyVersion(std::forward<PolicyVersionT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetDescription() const { return m_description; }
92 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
93 template <typename DescriptionT = Aws::String>
94 void SetDescription(DescriptionT&& value) {
95 m_descriptionHasBeenSet = true;
96 m_description = std::forward<DescriptionT>(value);
97 }
98 template <typename DescriptionT = Aws::String>
99 LifecyclePolicySummary& WithDescription(DescriptionT&& value) {
100 SetDescription(std::forward<DescriptionT>(value));
101 return *this;
102 }
104
106
109 inline long long GetCreatedDate() const { return m_createdDate; }
110 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
111 inline void SetCreatedDate(long long value) {
112 m_createdDateHasBeenSet = true;
113 m_createdDate = value;
114 }
115 inline LifecyclePolicySummary& WithCreatedDate(long long value) {
116 SetCreatedDate(value);
117 return *this;
118 }
120
122
125 inline long long GetLastModifiedDate() const { return m_lastModifiedDate; }
126 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
127 inline void SetLastModifiedDate(long long value) {
128 m_lastModifiedDateHasBeenSet = true;
129 m_lastModifiedDate = value;
130 }
132 SetLastModifiedDate(value);
133 return *this;
134 }
136 private:
138
139 Aws::String m_name;
140
141 Aws::String m_policyVersion;
142
143 Aws::String m_description;
144
145 long long m_createdDate{0};
146
147 long long m_lastModifiedDate{0};
148 bool m_typeHasBeenSet = false;
149 bool m_nameHasBeenSet = false;
150 bool m_policyVersionHasBeenSet = false;
151 bool m_descriptionHasBeenSet = false;
152 bool m_createdDateHasBeenSet = false;
153 bool m_lastModifiedDateHasBeenSet = false;
154};
155
156} // namespace Model
157} // namespace OpenSearchServerless
158} // namespace Aws
AWS_OPENSEARCHSERVERLESS_API LifecyclePolicySummary(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVERLESS_API LifecyclePolicySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
LifecyclePolicySummary & WithPolicyVersion(PolicyVersionT &&value)
LifecyclePolicySummary & WithCreatedDate(long long value)
LifecyclePolicySummary & WithLastModifiedDate(long long value)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHSERVERLESS_API LifecyclePolicySummary()=default
LifecyclePolicySummary & WithDescription(DescriptionT &&value)
LifecyclePolicySummary & WithType(LifecyclePolicyType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue