AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LifecycleRule.h
1
6#pragma once
7#include <aws/s3control/S3Control_EXPORTS.h>
8#include <aws/s3control/model/LifecycleExpiration.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3control/model/LifecycleRuleFilter.h>
11#include <aws/s3control/model/ExpirationStatus.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/s3control/model/NoncurrentVersionExpiration.h>
14#include <aws/s3control/model/AbortIncompleteMultipartUpload.h>
15#include <aws/s3control/model/Transition.h>
16#include <aws/s3control/model/NoncurrentVersionTransition.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Xml
24{
25 class XmlNode;
26} // namespace Xml
27} // namespace Utils
28namespace S3Control
29{
30namespace Model
31{
32
40 {
41 public:
42 AWS_S3CONTROL_API LifecycleRule();
43 AWS_S3CONTROL_API LifecycleRule(const Aws::Utils::Xml::XmlNode& xmlNode);
44 AWS_S3CONTROL_API LifecycleRule& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45
46 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
47
48
50
54 inline const LifecycleExpiration& GetExpiration() const{ return m_expiration; }
55 inline bool ExpirationHasBeenSet() const { return m_expirationHasBeenSet; }
56 inline void SetExpiration(const LifecycleExpiration& value) { m_expirationHasBeenSet = true; m_expiration = value; }
57 inline void SetExpiration(LifecycleExpiration&& value) { m_expirationHasBeenSet = true; m_expiration = std::move(value); }
58 inline LifecycleRule& WithExpiration(const LifecycleExpiration& value) { SetExpiration(value); return *this;}
59 inline LifecycleRule& WithExpiration(LifecycleExpiration&& value) { SetExpiration(std::move(value)); return *this;}
61
63
67 inline const Aws::String& GetID() const{ return m_iD; }
68 inline bool IDHasBeenSet() const { return m_iDHasBeenSet; }
69 inline void SetID(const Aws::String& value) { m_iDHasBeenSet = true; m_iD = value; }
70 inline void SetID(Aws::String&& value) { m_iDHasBeenSet = true; m_iD = std::move(value); }
71 inline void SetID(const char* value) { m_iDHasBeenSet = true; m_iD.assign(value); }
72 inline LifecycleRule& WithID(const Aws::String& value) { SetID(value); return *this;}
73 inline LifecycleRule& WithID(Aws::String&& value) { SetID(std::move(value)); return *this;}
74 inline LifecycleRule& WithID(const char* value) { SetID(value); return *this;}
76
78
81 inline const LifecycleRuleFilter& GetFilter() const{ return m_filter; }
82 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
83 inline void SetFilter(const LifecycleRuleFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
84 inline void SetFilter(LifecycleRuleFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
85 inline LifecycleRule& WithFilter(const LifecycleRuleFilter& value) { SetFilter(value); return *this;}
86 inline LifecycleRule& WithFilter(LifecycleRuleFilter&& value) { SetFilter(std::move(value)); return *this;}
88
90
94 inline const ExpirationStatus& GetStatus() const{ return m_status; }
95 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
96 inline void SetStatus(const ExpirationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
97 inline void SetStatus(ExpirationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
98 inline LifecycleRule& WithStatus(const ExpirationStatus& value) { SetStatus(value); return *this;}
99 inline LifecycleRule& WithStatus(ExpirationStatus&& value) { SetStatus(std::move(value)); return *this;}
101
103
108 inline const Aws::Vector<Transition>& GetTransitions() const{ return m_transitions; }
109 inline bool TransitionsHasBeenSet() const { return m_transitionsHasBeenSet; }
110 inline void SetTransitions(const Aws::Vector<Transition>& value) { m_transitionsHasBeenSet = true; m_transitions = value; }
111 inline void SetTransitions(Aws::Vector<Transition>&& value) { m_transitionsHasBeenSet = true; m_transitions = std::move(value); }
112 inline LifecycleRule& WithTransitions(const Aws::Vector<Transition>& value) { SetTransitions(value); return *this;}
113 inline LifecycleRule& WithTransitions(Aws::Vector<Transition>&& value) { SetTransitions(std::move(value)); return *this;}
114 inline LifecycleRule& AddTransitions(const Transition& value) { m_transitionsHasBeenSet = true; m_transitions.push_back(value); return *this; }
115 inline LifecycleRule& AddTransitions(Transition&& value) { m_transitionsHasBeenSet = true; m_transitions.push_back(std::move(value)); return *this; }
117
119
127 inline const Aws::Vector<NoncurrentVersionTransition>& GetNoncurrentVersionTransitions() const{ return m_noncurrentVersionTransitions; }
128 inline bool NoncurrentVersionTransitionsHasBeenSet() const { return m_noncurrentVersionTransitionsHasBeenSet; }
129 inline void SetNoncurrentVersionTransitions(const Aws::Vector<NoncurrentVersionTransition>& value) { m_noncurrentVersionTransitionsHasBeenSet = true; m_noncurrentVersionTransitions = value; }
130 inline void SetNoncurrentVersionTransitions(Aws::Vector<NoncurrentVersionTransition>&& value) { m_noncurrentVersionTransitionsHasBeenSet = true; m_noncurrentVersionTransitions = std::move(value); }
133 inline LifecycleRule& AddNoncurrentVersionTransitions(const NoncurrentVersionTransition& value) { m_noncurrentVersionTransitionsHasBeenSet = true; m_noncurrentVersionTransitions.push_back(value); return *this; }
134 inline LifecycleRule& AddNoncurrentVersionTransitions(NoncurrentVersionTransition&& value) { m_noncurrentVersionTransitionsHasBeenSet = true; m_noncurrentVersionTransitions.push_back(std::move(value)); return *this; }
136
138
141 inline const NoncurrentVersionExpiration& GetNoncurrentVersionExpiration() const{ return m_noncurrentVersionExpiration; }
142 inline bool NoncurrentVersionExpirationHasBeenSet() const { return m_noncurrentVersionExpirationHasBeenSet; }
143 inline void SetNoncurrentVersionExpiration(const NoncurrentVersionExpiration& value) { m_noncurrentVersionExpirationHasBeenSet = true; m_noncurrentVersionExpiration = value; }
144 inline void SetNoncurrentVersionExpiration(NoncurrentVersionExpiration&& value) { m_noncurrentVersionExpirationHasBeenSet = true; m_noncurrentVersionExpiration = std::move(value); }
148
150
158 inline const AbortIncompleteMultipartUpload& GetAbortIncompleteMultipartUpload() const{ return m_abortIncompleteMultipartUpload; }
159 inline bool AbortIncompleteMultipartUploadHasBeenSet() const { return m_abortIncompleteMultipartUploadHasBeenSet; }
160 inline void SetAbortIncompleteMultipartUpload(const AbortIncompleteMultipartUpload& value) { m_abortIncompleteMultipartUploadHasBeenSet = true; m_abortIncompleteMultipartUpload = value; }
161 inline void SetAbortIncompleteMultipartUpload(AbortIncompleteMultipartUpload&& value) { m_abortIncompleteMultipartUploadHasBeenSet = true; m_abortIncompleteMultipartUpload = std::move(value); }
165 private:
166
167 LifecycleExpiration m_expiration;
168 bool m_expirationHasBeenSet = false;
169
170 Aws::String m_iD;
171 bool m_iDHasBeenSet = false;
172
173 LifecycleRuleFilter m_filter;
174 bool m_filterHasBeenSet = false;
175
176 ExpirationStatus m_status;
177 bool m_statusHasBeenSet = false;
178
179 Aws::Vector<Transition> m_transitions;
180 bool m_transitionsHasBeenSet = false;
181
182 Aws::Vector<NoncurrentVersionTransition> m_noncurrentVersionTransitions;
183 bool m_noncurrentVersionTransitionsHasBeenSet = false;
184
185 NoncurrentVersionExpiration m_noncurrentVersionExpiration;
186 bool m_noncurrentVersionExpirationHasBeenSet = false;
187
188 AbortIncompleteMultipartUpload m_abortIncompleteMultipartUpload;
189 bool m_abortIncompleteMultipartUploadHasBeenSet = false;
190 };
191
192} // namespace Model
193} // namespace S3Control
194} // namespace Aws
const AbortIncompleteMultipartUpload & GetAbortIncompleteMultipartUpload() const
AWS_S3CONTROL_API LifecycleRule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LifecycleRule & AddTransitions(Transition &&value)
const NoncurrentVersionExpiration & GetNoncurrentVersionExpiration() const
void SetAbortIncompleteMultipartUpload(AbortIncompleteMultipartUpload &&value)
void SetExpiration(LifecycleExpiration &&value)
LifecycleRule & WithNoncurrentVersionExpiration(NoncurrentVersionExpiration &&value)
void SetTransitions(const Aws::Vector< Transition > &value)
LifecycleRule & WithFilter(LifecycleRuleFilter &&value)
LifecycleRule & WithStatus(ExpirationStatus &&value)
LifecycleRule & WithTransitions(const Aws::Vector< Transition > &value)
const LifecycleRuleFilter & GetFilter() const
void SetExpiration(const LifecycleExpiration &value)
LifecycleRule & WithAbortIncompleteMultipartUpload(AbortIncompleteMultipartUpload &&value)
void SetAbortIncompleteMultipartUpload(const AbortIncompleteMultipartUpload &value)
LifecycleRule & WithID(Aws::String &&value)
LifecycleRule & WithFilter(const LifecycleRuleFilter &value)
void SetID(const Aws::String &value)
LifecycleRule & WithID(const char *value)
const ExpirationStatus & GetStatus() const
LifecycleRule & AddTransitions(const Transition &value)
void SetNoncurrentVersionTransitions(const Aws::Vector< NoncurrentVersionTransition > &value)
void SetTransitions(Aws::Vector< Transition > &&value)
LifecycleRule & WithStatus(const ExpirationStatus &value)
const Aws::Vector< NoncurrentVersionTransition > & GetNoncurrentVersionTransitions() const
void SetNoncurrentVersionExpiration(const NoncurrentVersionExpiration &value)
void SetNoncurrentVersionTransitions(Aws::Vector< NoncurrentVersionTransition > &&value)
LifecycleRule & WithNoncurrentVersionExpiration(const NoncurrentVersionExpiration &value)
void SetNoncurrentVersionExpiration(NoncurrentVersionExpiration &&value)
LifecycleRule & WithExpiration(const LifecycleExpiration &value)
void SetID(Aws::String &&value)
LifecycleRule & WithTransitions(Aws::Vector< Transition > &&value)
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetStatus(ExpirationStatus &&value)
AWS_S3CONTROL_API LifecycleRule(const Aws::Utils::Xml::XmlNode &xmlNode)
LifecycleRule & WithExpiration(LifecycleExpiration &&value)
LifecycleRule & WithID(const Aws::String &value)
const Aws::Vector< Transition > & GetTransitions() const
void SetFilter(LifecycleRuleFilter &&value)
const LifecycleExpiration & GetExpiration() const
LifecycleRule & AddNoncurrentVersionTransitions(const NoncurrentVersionTransition &value)
LifecycleRule & WithAbortIncompleteMultipartUpload(const AbortIncompleteMultipartUpload &value)
const Aws::String & GetID() const
void SetStatus(const ExpirationStatus &value)
LifecycleRule & WithNoncurrentVersionTransitions(const Aws::Vector< NoncurrentVersionTransition > &value)
void SetFilter(const LifecycleRuleFilter &value)
LifecycleRule & AddNoncurrentVersionTransitions(NoncurrentVersionTransition &&value)
LifecycleRule & WithNoncurrentVersionTransitions(Aws::Vector< NoncurrentVersionTransition > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector