AWS SDK for C++  1.8.154
AWS SDK for C++
LifecycleRule.h
Go to the documentation of this file.
1 
6 #pragma once
17 #include <utility>
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Xml
24 {
25  class XmlNode;
26 } // namespace Xml
27 } // namespace Utils
28 namespace S3Control
29 {
30 namespace Model
31 {
32 
40  {
41  public:
45 
46  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
47 
48 
53  inline const LifecycleExpiration& GetExpiration() const{ return m_expiration; }
54 
59  inline bool ExpirationHasBeenSet() const { return m_expirationHasBeenSet; }
60 
65  inline void SetExpiration(const LifecycleExpiration& value) { m_expirationHasBeenSet = true; m_expiration = value; }
66 
71  inline void SetExpiration(LifecycleExpiration&& value) { m_expirationHasBeenSet = true; m_expiration = std::move(value); }
72 
77  inline LifecycleRule& WithExpiration(const LifecycleExpiration& value) { SetExpiration(value); return *this;}
78 
83  inline LifecycleRule& WithExpiration(LifecycleExpiration&& value) { SetExpiration(std::move(value)); return *this;}
84 
85 
90  inline const Aws::String& GetID() const{ return m_iD; }
91 
96  inline bool IDHasBeenSet() const { return m_iDHasBeenSet; }
97 
102  inline void SetID(const Aws::String& value) { m_iDHasBeenSet = true; m_iD = value; }
103 
108  inline void SetID(Aws::String&& value) { m_iDHasBeenSet = true; m_iD = std::move(value); }
109 
114  inline void SetID(const char* value) { m_iDHasBeenSet = true; m_iD.assign(value); }
115 
120  inline LifecycleRule& WithID(const Aws::String& value) { SetID(value); return *this;}
121 
126  inline LifecycleRule& WithID(Aws::String&& value) { SetID(std::move(value)); return *this;}
127 
132  inline LifecycleRule& WithID(const char* value) { SetID(value); return *this;}
133 
134 
138  inline const LifecycleRuleFilter& GetFilter() const{ return m_filter; }
139 
143  inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
144 
148  inline void SetFilter(const LifecycleRuleFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
149 
153  inline void SetFilter(LifecycleRuleFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
154 
158  inline LifecycleRule& WithFilter(const LifecycleRuleFilter& value) { SetFilter(value); return *this;}
159 
163  inline LifecycleRule& WithFilter(LifecycleRuleFilter&& value) { SetFilter(std::move(value)); return *this;}
164 
165 
170  inline const ExpirationStatus& GetStatus() const{ return m_status; }
171 
176  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
177 
182  inline void SetStatus(const ExpirationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
183 
188  inline void SetStatus(ExpirationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
189 
194  inline LifecycleRule& WithStatus(const ExpirationStatus& value) { SetStatus(value); return *this;}
195 
200  inline LifecycleRule& WithStatus(ExpirationStatus&& value) { SetStatus(std::move(value)); return *this;}
201 
202 
208  inline const Aws::Vector<Transition>& GetTransitions() const{ return m_transitions; }
209 
215  inline bool TransitionsHasBeenSet() const { return m_transitionsHasBeenSet; }
216 
222  inline void SetTransitions(const Aws::Vector<Transition>& value) { m_transitionsHasBeenSet = true; m_transitions = value; }
223 
229  inline void SetTransitions(Aws::Vector<Transition>&& value) { m_transitionsHasBeenSet = true; m_transitions = std::move(value); }
230 
236  inline LifecycleRule& WithTransitions(const Aws::Vector<Transition>& value) { SetTransitions(value); return *this;}
237 
243  inline LifecycleRule& WithTransitions(Aws::Vector<Transition>&& value) { SetTransitions(std::move(value)); return *this;}
244 
250  inline LifecycleRule& AddTransitions(const Transition& value) { m_transitionsHasBeenSet = true; m_transitions.push_back(value); return *this; }
251 
257  inline LifecycleRule& AddTransitions(Transition&& value) { m_transitionsHasBeenSet = true; m_transitions.push_back(std::move(value)); return *this; }
258 
259 
268  inline const Aws::Vector<NoncurrentVersionTransition>& GetNoncurrentVersionTransitions() const{ return m_noncurrentVersionTransitions; }
269 
278  inline bool NoncurrentVersionTransitionsHasBeenSet() const { return m_noncurrentVersionTransitionsHasBeenSet; }
279 
288  inline void SetNoncurrentVersionTransitions(const Aws::Vector<NoncurrentVersionTransition>& value) { m_noncurrentVersionTransitionsHasBeenSet = true; m_noncurrentVersionTransitions = value; }
289 
298  inline void SetNoncurrentVersionTransitions(Aws::Vector<NoncurrentVersionTransition>&& value) { m_noncurrentVersionTransitionsHasBeenSet = true; m_noncurrentVersionTransitions = std::move(value); }
299 
308  inline LifecycleRule& WithNoncurrentVersionTransitions(const Aws::Vector<NoncurrentVersionTransition>& value) { SetNoncurrentVersionTransitions(value); return *this;}
309 
318  inline LifecycleRule& WithNoncurrentVersionTransitions(Aws::Vector<NoncurrentVersionTransition>&& value) { SetNoncurrentVersionTransitions(std::move(value)); return *this;}
319 
328  inline LifecycleRule& AddNoncurrentVersionTransitions(const NoncurrentVersionTransition& value) { m_noncurrentVersionTransitionsHasBeenSet = true; m_noncurrentVersionTransitions.push_back(value); return *this; }
329 
338  inline LifecycleRule& AddNoncurrentVersionTransitions(NoncurrentVersionTransition&& value) { m_noncurrentVersionTransitionsHasBeenSet = true; m_noncurrentVersionTransitions.push_back(std::move(value)); return *this; }
339 
340 
345  inline const NoncurrentVersionExpiration& GetNoncurrentVersionExpiration() const{ return m_noncurrentVersionExpiration; }
346 
351  inline bool NoncurrentVersionExpirationHasBeenSet() const { return m_noncurrentVersionExpirationHasBeenSet; }
352 
357  inline void SetNoncurrentVersionExpiration(const NoncurrentVersionExpiration& value) { m_noncurrentVersionExpirationHasBeenSet = true; m_noncurrentVersionExpiration = value; }
358 
363  inline void SetNoncurrentVersionExpiration(NoncurrentVersionExpiration&& value) { m_noncurrentVersionExpirationHasBeenSet = true; m_noncurrentVersionExpiration = std::move(value); }
364 
369  inline LifecycleRule& WithNoncurrentVersionExpiration(const NoncurrentVersionExpiration& value) { SetNoncurrentVersionExpiration(value); return *this;}
370 
375  inline LifecycleRule& WithNoncurrentVersionExpiration(NoncurrentVersionExpiration&& value) { SetNoncurrentVersionExpiration(std::move(value)); return *this;}
376 
377 
386  inline const AbortIncompleteMultipartUpload& GetAbortIncompleteMultipartUpload() const{ return m_abortIncompleteMultipartUpload; }
387 
396  inline bool AbortIncompleteMultipartUploadHasBeenSet() const { return m_abortIncompleteMultipartUploadHasBeenSet; }
397 
406  inline void SetAbortIncompleteMultipartUpload(const AbortIncompleteMultipartUpload& value) { m_abortIncompleteMultipartUploadHasBeenSet = true; m_abortIncompleteMultipartUpload = value; }
407 
416  inline void SetAbortIncompleteMultipartUpload(AbortIncompleteMultipartUpload&& value) { m_abortIncompleteMultipartUploadHasBeenSet = true; m_abortIncompleteMultipartUpload = std::move(value); }
417 
426  inline LifecycleRule& WithAbortIncompleteMultipartUpload(const AbortIncompleteMultipartUpload& value) { SetAbortIncompleteMultipartUpload(value); return *this;}
427 
436  inline LifecycleRule& WithAbortIncompleteMultipartUpload(AbortIncompleteMultipartUpload&& value) { SetAbortIncompleteMultipartUpload(std::move(value)); return *this;}
437 
438  private:
439 
440  LifecycleExpiration m_expiration;
441  bool m_expirationHasBeenSet;
442 
443  Aws::String m_iD;
444  bool m_iDHasBeenSet;
445 
446  LifecycleRuleFilter m_filter;
447  bool m_filterHasBeenSet;
448 
449  ExpirationStatus m_status;
450  bool m_statusHasBeenSet;
451 
452  Aws::Vector<Transition> m_transitions;
453  bool m_transitionsHasBeenSet;
454 
455  Aws::Vector<NoncurrentVersionTransition> m_noncurrentVersionTransitions;
456  bool m_noncurrentVersionTransitionsHasBeenSet;
457 
458  NoncurrentVersionExpiration m_noncurrentVersionExpiration;
459  bool m_noncurrentVersionExpirationHasBeenSet;
460 
461  AbortIncompleteMultipartUpload m_abortIncompleteMultipartUpload;
462  bool m_abortIncompleteMultipartUploadHasBeenSet;
463  };
464 
465 } // namespace Model
466 } // namespace S3Control
467 } // namespace Aws
Aws::S3Control::Model::LifecycleRule::NoncurrentVersionTransitionsHasBeenSet
bool NoncurrentVersionTransitionsHasBeenSet() const
Definition: LifecycleRule.h:278
Aws::S3Control::Model::LifecycleRule::GetNoncurrentVersionExpiration
const NoncurrentVersionExpiration & GetNoncurrentVersionExpiration() const
Definition: LifecycleRule.h:345
Aws::S3Control::Model::LifecycleRule::GetFilter
const LifecycleRuleFilter & GetFilter() const
Definition: LifecycleRule.h:138
Aws::S3Control::Model::LifecycleExpiration
Definition: LifecycleExpiration.h:32
Aws::S3Control::Model::LifecycleRule::WithStatus
LifecycleRule & WithStatus(ExpirationStatus &&value)
Definition: LifecycleRule.h:200
Aws::S3Control::Model::LifecycleRule
Definition: LifecycleRule.h:40
Aws::S3Control::Model::NoncurrentVersionExpiration
Definition: NoncurrentVersionExpiration.h:30
Aws::S3Control::Model::LifecycleRule::GetAbortIncompleteMultipartUpload
const AbortIncompleteMultipartUpload & GetAbortIncompleteMultipartUpload() const
Definition: LifecycleRule.h:386
Aws::S3Control::Model::LifecycleRule::WithExpiration
LifecycleRule & WithExpiration(LifecycleExpiration &&value)
Definition: LifecycleRule.h:83
Aws::S3Control::Model::LifecycleRule::GetStatus
const ExpirationStatus & GetStatus() const
Definition: LifecycleRule.h:170
Aws::S3Control::Model::LifecycleRule::WithNoncurrentVersionExpiration
LifecycleRule & WithNoncurrentVersionExpiration(NoncurrentVersionExpiration &&value)
Definition: LifecycleRule.h:375
Aws::S3Control::Model::LifecycleRule::operator=
LifecycleRule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::S3Control::Model::LifecycleRule::GetExpiration
const LifecycleExpiration & GetExpiration() const
Definition: LifecycleRule.h:53
Aws::S3Control::Model::LifecycleRule::SetTransitions
void SetTransitions(const Aws::Vector< Transition > &value)
Definition: LifecycleRule.h:222
Aws::S3Control::Model::LifecycleRule::WithNoncurrentVersionTransitions
LifecycleRule & WithNoncurrentVersionTransitions(Aws::Vector< NoncurrentVersionTransition > &&value)
Definition: LifecycleRule.h:318
Aws::S3Control::Model::LifecycleRule::WithID
LifecycleRule & WithID(const Aws::String &value)
Definition: LifecycleRule.h:120
Aws::S3Control::Model::NoncurrentVersionTransition
Definition: NoncurrentVersionTransition.h:32
Aws::S3Control::Model::LifecycleRule::SetID
void SetID(const char *value)
Definition: LifecycleRule.h:114
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::S3Control::Model::LifecycleRule::NoncurrentVersionExpirationHasBeenSet
bool NoncurrentVersionExpirationHasBeenSet() const
Definition: LifecycleRule.h:351
Aws::S3Control::Model::LifecycleRule::WithID
LifecycleRule & WithID(const char *value)
Definition: LifecycleRule.h:132
Aws::S3Control::Model::LifecycleRule::AddNoncurrentVersionTransitions
LifecycleRule & AddNoncurrentVersionTransitions(const NoncurrentVersionTransition &value)
Definition: LifecycleRule.h:328
AWSVector.h
Aws::S3Control::Model::LifecycleRule::FilterHasBeenSet
bool FilterHasBeenSet() const
Definition: LifecycleRule.h:143
Aws::S3Control::Model::LifecycleRule::WithID
LifecycleRule & WithID(Aws::String &&value)
Definition: LifecycleRule.h:126
S3Control_EXPORTS.h
NoncurrentVersionExpiration.h
Aws::S3Control::Model::LifecycleRule::SetID
void SetID(const Aws::String &value)
Definition: LifecycleRule.h:102
Aws::S3Control::Model::LifecycleRule::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::S3Control::Model::LifecycleRule::WithNoncurrentVersionExpiration
LifecycleRule & WithNoncurrentVersionExpiration(const NoncurrentVersionExpiration &value)
Definition: LifecycleRule.h:369
Aws::S3Control::Model::LifecycleRule::WithNoncurrentVersionTransitions
LifecycleRule & WithNoncurrentVersionTransitions(const Aws::Vector< NoncurrentVersionTransition > &value)
Definition: LifecycleRule.h:308
Aws::S3Control::Model::LifecycleRule::WithAbortIncompleteMultipartUpload
LifecycleRule & WithAbortIncompleteMultipartUpload(const AbortIncompleteMultipartUpload &value)
Definition: LifecycleRule.h:426
Aws::S3Control::Model::LifecycleRule::SetAbortIncompleteMultipartUpload
void SetAbortIncompleteMultipartUpload(AbortIncompleteMultipartUpload &&value)
Definition: LifecycleRule.h:416
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::S3Control::Model::LifecycleRule::TransitionsHasBeenSet
bool TransitionsHasBeenSet() const
Definition: LifecycleRule.h:215
Aws::S3Control::Model::LifecycleRule::SetNoncurrentVersionTransitions
void SetNoncurrentVersionTransitions(const Aws::Vector< NoncurrentVersionTransition > &value)
Definition: LifecycleRule.h:288
Aws::S3Control::Model::LifecycleRule::WithTransitions
LifecycleRule & WithTransitions(Aws::Vector< Transition > &&value)
Definition: LifecycleRule.h:243
Aws::S3Control::Model::LifecycleRule::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: LifecycleRule.h:176
AWS_S3CONTROL_API
#define AWS_S3CONTROL_API
Definition: S3Control_EXPORTS.h:28
Aws::S3Control::Model::LifecycleRule::SetStatus
void SetStatus(const ExpirationStatus &value)
Definition: LifecycleRule.h:182
Aws::S3Control::Model::LifecycleRule::SetExpiration
void SetExpiration(const LifecycleExpiration &value)
Definition: LifecycleRule.h:65
Aws::S3Control::Model::LifecycleRule::WithStatus
LifecycleRule & WithStatus(const ExpirationStatus &value)
Definition: LifecycleRule.h:194
Aws::S3Control::Model::LifecycleRuleFilter
Definition: LifecycleRuleFilter.h:34
AbortIncompleteMultipartUpload.h
Aws::S3Control::Model::LifecycleRule::ExpirationHasBeenSet
bool ExpirationHasBeenSet() const
Definition: LifecycleRule.h:59
AWSString.h
Aws::S3Control::Model::LifecycleRule::AddNoncurrentVersionTransitions
LifecycleRule & AddNoncurrentVersionTransitions(NoncurrentVersionTransition &&value)
Definition: LifecycleRule.h:338
Aws::S3Control::Model::LifecycleRule::SetAbortIncompleteMultipartUpload
void SetAbortIncompleteMultipartUpload(const AbortIncompleteMultipartUpload &value)
Definition: LifecycleRule.h:406
Aws::S3Control::Model::LifecycleRule::AddTransitions
LifecycleRule & AddTransitions(Transition &&value)
Definition: LifecycleRule.h:257
Aws::S3Control::Model::LifecycleRule::SetFilter
void SetFilter(LifecycleRuleFilter &&value)
Definition: LifecycleRule.h:153
Aws::S3Control::Model::LifecycleRule::GetNoncurrentVersionTransitions
const Aws::Vector< NoncurrentVersionTransition > & GetNoncurrentVersionTransitions() const
Definition: LifecycleRule.h:268
Aws::S3Control::Model::Transition
Definition: Transition.h:36
LifecycleRuleFilter.h
Aws::S3Control::Model::LifecycleRule::WithTransitions
LifecycleRule & WithTransitions(const Aws::Vector< Transition > &value)
Definition: LifecycleRule.h:236
NoncurrentVersionTransition.h
Aws::S3Control::Model::LifecycleRule::GetTransitions
const Aws::Vector< Transition > & GetTransitions() const
Definition: LifecycleRule.h:208
Aws::S3Control::Model::LifecycleRule::GetID
const Aws::String & GetID() const
Definition: LifecycleRule.h:90
LifecycleExpiration.h
Aws::S3Control::Model::LifecycleRule::SetNoncurrentVersionTransitions
void SetNoncurrentVersionTransitions(Aws::Vector< NoncurrentVersionTransition > &&value)
Definition: LifecycleRule.h:298
Aws::S3Control::Model::LifecycleRule::SetStatus
void SetStatus(ExpirationStatus &&value)
Definition: LifecycleRule.h:188
Aws::S3Control::Model::LifecycleRule::WithFilter
LifecycleRule & WithFilter(const LifecycleRuleFilter &value)
Definition: LifecycleRule.h:158
Aws::S3Control::Model::LifecycleRule::SetID
void SetID(Aws::String &&value)
Definition: LifecycleRule.h:108
Aws::S3Control::Model::LifecycleRule::LifecycleRule
LifecycleRule(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws
Definition: AccessManagementClient.h:15
Aws::S3Control::Model::ExpirationStatus
ExpirationStatus
Definition: ExpirationStatus.h:17
Aws::S3Control::Model::LifecycleRule::SetFilter
void SetFilter(const LifecycleRuleFilter &value)
Definition: LifecycleRule.h:148
Aws::S3Control::Model::AbortIncompleteMultipartUpload
Definition: AbortIncompleteMultipartUpload.h:30
Aws::S3Control::Model::LifecycleRule::SetTransitions
void SetTransitions(Aws::Vector< Transition > &&value)
Definition: LifecycleRule.h:229
Aws::S3Control::Model::LifecycleRule::WithExpiration
LifecycleRule & WithExpiration(const LifecycleExpiration &value)
Definition: LifecycleRule.h:77
Aws::S3Control::Model::LifecycleRule::AddTransitions
LifecycleRule & AddTransitions(const Transition &value)
Definition: LifecycleRule.h:250
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::S3Control::Model::LifecycleRule::SetExpiration
void SetExpiration(LifecycleExpiration &&value)
Definition: LifecycleRule.h:71
Aws::S3Control::Model::LifecycleRule::AbortIncompleteMultipartUploadHasBeenSet
bool AbortIncompleteMultipartUploadHasBeenSet() const
Definition: LifecycleRule.h:396
Aws::S3Control::Model::LifecycleRule::WithAbortIncompleteMultipartUpload
LifecycleRule & WithAbortIncompleteMultipartUpload(AbortIncompleteMultipartUpload &&value)
Definition: LifecycleRule.h:436
Aws::S3Control::Model::LifecycleRule::IDHasBeenSet
bool IDHasBeenSet() const
Definition: LifecycleRule.h:96
Transition.h
Aws::S3Control::Model::LifecycleRule::SetNoncurrentVersionExpiration
void SetNoncurrentVersionExpiration(const NoncurrentVersionExpiration &value)
Definition: LifecycleRule.h:357
Aws::S3Control::Model::LifecycleRule::SetNoncurrentVersionExpiration
void SetNoncurrentVersionExpiration(NoncurrentVersionExpiration &&value)
Definition: LifecycleRule.h:363
Aws::S3Control::Model::LifecycleRule::LifecycleRule
LifecycleRule()
Aws::S3Control::Model::LifecycleRule::WithFilter
LifecycleRule & WithFilter(LifecycleRuleFilter &&value)
Definition: LifecycleRule.h:163
ExpirationStatus.h