AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LifecyclePolicySummary.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 <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() = default;
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 LifecyclePolicyType GetType() const { return m_type; }
46 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
47 inline void SetType(LifecyclePolicyType value) { m_typeHasBeenSet = true; m_type = value; }
48 inline LifecyclePolicySummary& WithType(LifecyclePolicyType value) { SetType(value); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
59 template<typename NameT = Aws::String>
60 LifecyclePolicySummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
62
64
67 inline const Aws::String& GetPolicyVersion() const { return m_policyVersion; }
68 inline bool PolicyVersionHasBeenSet() const { return m_policyVersionHasBeenSet; }
69 template<typename PolicyVersionT = Aws::String>
70 void SetPolicyVersion(PolicyVersionT&& value) { m_policyVersionHasBeenSet = true; m_policyVersion = std::forward<PolicyVersionT>(value); }
71 template<typename PolicyVersionT = Aws::String>
72 LifecyclePolicySummary& WithPolicyVersion(PolicyVersionT&& value) { SetPolicyVersion(std::forward<PolicyVersionT>(value)); return *this;}
74
76
79 inline const Aws::String& GetDescription() const { return m_description; }
80 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 template<typename DescriptionT = Aws::String>
82 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
83 template<typename DescriptionT = Aws::String>
84 LifecyclePolicySummary& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
86
88
91 inline long long GetCreatedDate() const { return m_createdDate; }
92 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
93 inline void SetCreatedDate(long long value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
94 inline LifecyclePolicySummary& WithCreatedDate(long long value) { SetCreatedDate(value); return *this;}
96
98
101 inline long long GetLastModifiedDate() const { return m_lastModifiedDate; }
102 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
103 inline void SetLastModifiedDate(long long value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
104 inline LifecyclePolicySummary& WithLastModifiedDate(long long value) { SetLastModifiedDate(value); return *this;}
106 private:
107
109 bool m_typeHasBeenSet = false;
110
111 Aws::String m_name;
112 bool m_nameHasBeenSet = false;
113
114 Aws::String m_policyVersion;
115 bool m_policyVersionHasBeenSet = false;
116
117 Aws::String m_description;
118 bool m_descriptionHasBeenSet = false;
119
120 long long m_createdDate{0};
121 bool m_createdDateHasBeenSet = false;
122
123 long long m_lastModifiedDate{0};
124 bool m_lastModifiedDateHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace OpenSearchServerless
129} // 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