AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LifecyclePolicyDetail.h
1
6#pragma once
7#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/Document.h>
10#include <aws/opensearchserverless/model/LifecyclePolicyType.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 LifecyclePolicyDetail();
38 AWS_OPENSEARCHSERVERLESS_API LifecyclePolicyDetail(Aws::Utils::Json::JsonView jsonValue);
39 AWS_OPENSEARCHSERVERLESS_API LifecyclePolicyDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline long long GetCreatedDate() const{ return m_createdDate; }
48 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
49 inline void SetCreatedDate(long long value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
50 inline LifecyclePolicyDetail& WithCreatedDate(long long value) { SetCreatedDate(value); return *this;}
52
54
57 inline const Aws::String& GetDescription() const{ return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
60 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
61 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
62 inline LifecyclePolicyDetail& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
63 inline LifecyclePolicyDetail& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
64 inline LifecyclePolicyDetail& WithDescription(const char* value) { SetDescription(value); return *this;}
66
68
71 inline long long GetLastModifiedDate() const{ return m_lastModifiedDate; }
72 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
73 inline void SetLastModifiedDate(long long value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
74 inline LifecyclePolicyDetail& WithLastModifiedDate(long long value) { SetLastModifiedDate(value); return *this;}
76
78
81 inline const Aws::String& GetName() const{ return m_name; }
82 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
83 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
84 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
85 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
86 inline LifecyclePolicyDetail& WithName(const Aws::String& value) { SetName(value); return *this;}
87 inline LifecyclePolicyDetail& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
88 inline LifecyclePolicyDetail& WithName(const char* value) { SetName(value); return *this;}
90
92
95 inline Aws::Utils::DocumentView GetPolicy() const{ return m_policy; }
96 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
97 inline void SetPolicy(const Aws::Utils::Document& value) { m_policyHasBeenSet = true; m_policy = value; }
98 inline void SetPolicy(Aws::Utils::Document&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
99 inline LifecyclePolicyDetail& WithPolicy(const Aws::Utils::Document& value) { SetPolicy(value); return *this;}
100 inline LifecyclePolicyDetail& WithPolicy(Aws::Utils::Document&& value) { SetPolicy(std::move(value)); return *this;}
102
104
107 inline const Aws::String& GetPolicyVersion() const{ return m_policyVersion; }
108 inline bool PolicyVersionHasBeenSet() const { return m_policyVersionHasBeenSet; }
109 inline void SetPolicyVersion(const Aws::String& value) { m_policyVersionHasBeenSet = true; m_policyVersion = value; }
110 inline void SetPolicyVersion(Aws::String&& value) { m_policyVersionHasBeenSet = true; m_policyVersion = std::move(value); }
111 inline void SetPolicyVersion(const char* value) { m_policyVersionHasBeenSet = true; m_policyVersion.assign(value); }
112 inline LifecyclePolicyDetail& WithPolicyVersion(const Aws::String& value) { SetPolicyVersion(value); return *this;}
113 inline LifecyclePolicyDetail& WithPolicyVersion(Aws::String&& value) { SetPolicyVersion(std::move(value)); return *this;}
114 inline LifecyclePolicyDetail& WithPolicyVersion(const char* value) { SetPolicyVersion(value); return *this;}
116
118
121 inline const LifecyclePolicyType& GetType() const{ return m_type; }
122 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
123 inline void SetType(const LifecyclePolicyType& value) { m_typeHasBeenSet = true; m_type = value; }
124 inline void SetType(LifecyclePolicyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
125 inline LifecyclePolicyDetail& WithType(const LifecyclePolicyType& value) { SetType(value); return *this;}
126 inline LifecyclePolicyDetail& WithType(LifecyclePolicyType&& value) { SetType(std::move(value)); return *this;}
128 private:
129
130 long long m_createdDate;
131 bool m_createdDateHasBeenSet = false;
132
133 Aws::String m_description;
134 bool m_descriptionHasBeenSet = false;
135
136 long long m_lastModifiedDate;
137 bool m_lastModifiedDateHasBeenSet = false;
138
139 Aws::String m_name;
140 bool m_nameHasBeenSet = false;
141
142 Aws::Utils::Document m_policy;
143 bool m_policyHasBeenSet = false;
144
145 Aws::String m_policyVersion;
146 bool m_policyVersionHasBeenSet = false;
147
148 LifecyclePolicyType m_type;
149 bool m_typeHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace OpenSearchServerless
154} // namespace Aws
LifecyclePolicyDetail & WithPolicyVersion(Aws::String &&value)
LifecyclePolicyDetail & WithName(const char *value)
LifecyclePolicyDetail & WithPolicy(const Aws::Utils::Document &value)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
LifecyclePolicyDetail & WithDescription(Aws::String &&value)
LifecyclePolicyDetail & WithType(LifecyclePolicyType &&value)
LifecyclePolicyDetail & WithLastModifiedDate(long long value)
AWS_OPENSEARCHSERVERLESS_API LifecyclePolicyDetail(Aws::Utils::Json::JsonView jsonValue)
LifecyclePolicyDetail & WithName(Aws::String &&value)
LifecyclePolicyDetail & WithDescription(const char *value)
LifecyclePolicyDetail & WithType(const LifecyclePolicyType &value)
LifecyclePolicyDetail & WithPolicyVersion(const Aws::String &value)
LifecyclePolicyDetail & WithDescription(const Aws::String &value)
LifecyclePolicyDetail & WithCreatedDate(long long value)
LifecyclePolicyDetail & WithPolicy(Aws::Utils::Document &&value)
LifecyclePolicyDetail & WithName(const Aws::String &value)
AWS_OPENSEARCHSERVERLESS_API LifecyclePolicyDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
LifecyclePolicyDetail & WithPolicyVersion(const char *value)
AWS_OPENSEARCHSERVERLESS_API LifecyclePolicyDetail()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue