AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EffectiveLifecyclePolicyDetail.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/ResourceType.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 EffectiveLifecyclePolicyDetail();
38 AWS_OPENSEARCHSERVERLESS_API EffectiveLifecyclePolicyDetail(Aws::Utils::Json::JsonView jsonValue);
40 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline bool GetNoMinRetentionPeriod() const{ return m_noMinRetentionPeriod; }
50 inline bool NoMinRetentionPeriodHasBeenSet() const { return m_noMinRetentionPeriodHasBeenSet; }
51 inline void SetNoMinRetentionPeriod(bool value) { m_noMinRetentionPeriodHasBeenSet = true; m_noMinRetentionPeriod = value; }
54
56
59 inline const Aws::String& GetPolicyName() const{ return m_policyName; }
60 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
61 inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
62 inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
63 inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
64 inline EffectiveLifecyclePolicyDetail& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
65 inline EffectiveLifecyclePolicyDetail& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
66 inline EffectiveLifecyclePolicyDetail& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
68
70
73 inline const Aws::String& GetResource() const{ return m_resource; }
74 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
75 inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; }
76 inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
77 inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); }
78 inline EffectiveLifecyclePolicyDetail& WithResource(const Aws::String& value) { SetResource(value); return *this;}
79 inline EffectiveLifecyclePolicyDetail& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
80 inline EffectiveLifecyclePolicyDetail& WithResource(const char* value) { SetResource(value); return *this;}
82
84
88 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
89 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
90 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
91 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
92 inline EffectiveLifecyclePolicyDetail& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
93 inline EffectiveLifecyclePolicyDetail& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
95
97
101 inline const Aws::String& GetRetentionPeriod() const{ return m_retentionPeriod; }
102 inline bool RetentionPeriodHasBeenSet() const { return m_retentionPeriodHasBeenSet; }
103 inline void SetRetentionPeriod(const Aws::String& value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = value; }
104 inline void SetRetentionPeriod(Aws::String&& value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = std::move(value); }
105 inline void SetRetentionPeriod(const char* value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod.assign(value); }
107 inline EffectiveLifecyclePolicyDetail& WithRetentionPeriod(Aws::String&& value) { SetRetentionPeriod(std::move(value)); return *this;}
108 inline EffectiveLifecyclePolicyDetail& WithRetentionPeriod(const char* value) { SetRetentionPeriod(value); return *this;}
110
112
115 inline const LifecyclePolicyType& GetType() const{ return m_type; }
116 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
117 inline void SetType(const LifecyclePolicyType& value) { m_typeHasBeenSet = true; m_type = value; }
118 inline void SetType(LifecyclePolicyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
119 inline EffectiveLifecyclePolicyDetail& WithType(const LifecyclePolicyType& value) { SetType(value); return *this;}
120 inline EffectiveLifecyclePolicyDetail& WithType(LifecyclePolicyType&& value) { SetType(std::move(value)); return *this;}
122 private:
123
124 bool m_noMinRetentionPeriod;
125 bool m_noMinRetentionPeriodHasBeenSet = false;
126
127 Aws::String m_policyName;
128 bool m_policyNameHasBeenSet = false;
129
130 Aws::String m_resource;
131 bool m_resourceHasBeenSet = false;
132
133 ResourceType m_resourceType;
134 bool m_resourceTypeHasBeenSet = false;
135
136 Aws::String m_retentionPeriod;
137 bool m_retentionPeriodHasBeenSet = false;
138
139 LifecyclePolicyType m_type;
140 bool m_typeHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace OpenSearchServerless
145} // namespace Aws
EffectiveLifecyclePolicyDetail & WithPolicyName(Aws::String &&value)
EffectiveLifecyclePolicyDetail & WithType(LifecyclePolicyType &&value)
EffectiveLifecyclePolicyDetail & WithPolicyName(const Aws::String &value)
EffectiveLifecyclePolicyDetail & WithRetentionPeriod(Aws::String &&value)
EffectiveLifecyclePolicyDetail & WithType(const LifecyclePolicyType &value)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
EffectiveLifecyclePolicyDetail & WithRetentionPeriod(const char *value)
AWS_OPENSEARCHSERVERLESS_API EffectiveLifecyclePolicyDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
EffectiveLifecyclePolicyDetail & WithResource(const Aws::String &value)
EffectiveLifecyclePolicyDetail & WithResource(Aws::String &&value)
EffectiveLifecyclePolicyDetail & WithPolicyName(const char *value)
EffectiveLifecyclePolicyDetail & WithRetentionPeriod(const Aws::String &value)
EffectiveLifecyclePolicyDetail & WithResourceType(const ResourceType &value)
EffectiveLifecyclePolicyDetail & WithResourceType(ResourceType &&value)
AWS_OPENSEARCHSERVERLESS_API EffectiveLifecyclePolicyDetail(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue