AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LifecyclePolicySummary.h
1
6#pragma once
7#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/opensearchserverless/model/LifecyclePolicyType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace OpenSearchServerless
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_OPENSEARCHSERVERLESS_API LifecyclePolicySummary();
36 AWS_OPENSEARCHSERVERLESS_API LifecyclePolicySummary(Aws::Utils::Json::JsonView jsonValue);
37 AWS_OPENSEARCHSERVERLESS_API LifecyclePolicySummary& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline long long GetCreatedDate() const{ return m_createdDate; }
46 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
47 inline void SetCreatedDate(long long value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
48 inline LifecyclePolicySummary& WithCreatedDate(long long value) { SetCreatedDate(value); return *this;}
50
52
55 inline const Aws::String& GetDescription() const{ return m_description; }
56 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
57 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
58 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
59 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
60 inline LifecyclePolicySummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
61 inline LifecyclePolicySummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
62 inline LifecyclePolicySummary& WithDescription(const char* value) { SetDescription(value); return *this;}
64
66
69 inline long long GetLastModifiedDate() const{ return m_lastModifiedDate; }
70 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
71 inline void SetLastModifiedDate(long long value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
72 inline LifecyclePolicySummary& WithLastModifiedDate(long long value) { SetLastModifiedDate(value); return *this;}
74
76
79 inline const Aws::String& GetName() const{ return m_name; }
80 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
81 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
82 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
83 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
84 inline LifecyclePolicySummary& WithName(const Aws::String& value) { SetName(value); return *this;}
85 inline LifecyclePolicySummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
86 inline LifecyclePolicySummary& WithName(const char* value) { SetName(value); return *this;}
88
90
93 inline const Aws::String& GetPolicyVersion() const{ return m_policyVersion; }
94 inline bool PolicyVersionHasBeenSet() const { return m_policyVersionHasBeenSet; }
95 inline void SetPolicyVersion(const Aws::String& value) { m_policyVersionHasBeenSet = true; m_policyVersion = value; }
96 inline void SetPolicyVersion(Aws::String&& value) { m_policyVersionHasBeenSet = true; m_policyVersion = std::move(value); }
97 inline void SetPolicyVersion(const char* value) { m_policyVersionHasBeenSet = true; m_policyVersion.assign(value); }
98 inline LifecyclePolicySummary& WithPolicyVersion(const Aws::String& value) { SetPolicyVersion(value); return *this;}
99 inline LifecyclePolicySummary& WithPolicyVersion(Aws::String&& value) { SetPolicyVersion(std::move(value)); return *this;}
100 inline LifecyclePolicySummary& WithPolicyVersion(const char* value) { SetPolicyVersion(value); return *this;}
102
104
107 inline const LifecyclePolicyType& GetType() const{ return m_type; }
108 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
109 inline void SetType(const LifecyclePolicyType& value) { m_typeHasBeenSet = true; m_type = value; }
110 inline void SetType(LifecyclePolicyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
111 inline LifecyclePolicySummary& WithType(const LifecyclePolicyType& value) { SetType(value); return *this;}
112 inline LifecyclePolicySummary& WithType(LifecyclePolicyType&& value) { SetType(std::move(value)); return *this;}
114 private:
115
116 long long m_createdDate;
117 bool m_createdDateHasBeenSet = false;
118
119 Aws::String m_description;
120 bool m_descriptionHasBeenSet = false;
121
122 long long m_lastModifiedDate;
123 bool m_lastModifiedDateHasBeenSet = false;
124
125 Aws::String m_name;
126 bool m_nameHasBeenSet = false;
127
128 Aws::String m_policyVersion;
129 bool m_policyVersionHasBeenSet = false;
130
131 LifecyclePolicyType m_type;
132 bool m_typeHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace OpenSearchServerless
137} // namespace Aws
AWS_OPENSEARCHSERVERLESS_API LifecyclePolicySummary(Aws::Utils::Json::JsonView jsonValue)
LifecyclePolicySummary & WithPolicyVersion(Aws::String &&value)
LifecyclePolicySummary & WithName(const char *value)
LifecyclePolicySummary & WithType(LifecyclePolicyType &&value)
LifecyclePolicySummary & WithName(Aws::String &&value)
AWS_OPENSEARCHSERVERLESS_API LifecyclePolicySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
LifecyclePolicySummary & WithDescription(const Aws::String &value)
LifecyclePolicySummary & WithCreatedDate(long long value)
LifecyclePolicySummary & WithLastModifiedDate(long long value)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
LifecyclePolicySummary & WithPolicyVersion(const char *value)
LifecyclePolicySummary & WithName(const Aws::String &value)
LifecyclePolicySummary & WithPolicyVersion(const Aws::String &value)
LifecyclePolicySummary & WithDescription(const char *value)
LifecyclePolicySummary & WithDescription(Aws::String &&value)
LifecyclePolicySummary & WithType(const LifecyclePolicyType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue