AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Rule.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/s3-crt/model/LifecycleExpiration.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3-crt/model/ExpirationStatus.h>
11#include <aws/s3-crt/model/Transition.h>
12#include <aws/s3-crt/model/NoncurrentVersionTransition.h>
13#include <aws/s3-crt/model/NoncurrentVersionExpiration.h>
14#include <aws/s3-crt/model/AbortIncompleteMultipartUpload.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace S3Crt
27{
28namespace Model
29{
30
42 class Rule
43 {
44 public:
45 AWS_S3CRT_API Rule();
46 AWS_S3CRT_API Rule(const Aws::Utils::Xml::XmlNode& xmlNode);
47 AWS_S3CRT_API Rule& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
48
49 AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
50
51
53
56 inline const LifecycleExpiration& GetExpiration() const{ return m_expiration; }
57 inline bool ExpirationHasBeenSet() const { return m_expirationHasBeenSet; }
58 inline void SetExpiration(const LifecycleExpiration& value) { m_expirationHasBeenSet = true; m_expiration = value; }
59 inline void SetExpiration(LifecycleExpiration&& value) { m_expirationHasBeenSet = true; m_expiration = std::move(value); }
60 inline Rule& WithExpiration(const LifecycleExpiration& value) { SetExpiration(value); return *this;}
61 inline Rule& WithExpiration(LifecycleExpiration&& value) { SetExpiration(std::move(value)); return *this;}
63
65
69 inline const Aws::String& GetID() const{ return m_iD; }
70 inline bool IDHasBeenSet() const { return m_iDHasBeenSet; }
71 inline void SetID(const Aws::String& value) { m_iDHasBeenSet = true; m_iD = value; }
72 inline void SetID(Aws::String&& value) { m_iDHasBeenSet = true; m_iD = std::move(value); }
73 inline void SetID(const char* value) { m_iDHasBeenSet = true; m_iD.assign(value); }
74 inline Rule& WithID(const Aws::String& value) { SetID(value); return *this;}
75 inline Rule& WithID(Aws::String&& value) { SetID(std::move(value)); return *this;}
76 inline Rule& WithID(const char* value) { SetID(value); return *this;}
78
80
88 inline const Aws::String& GetPrefix() const{ return m_prefix; }
89 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
90 inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
91 inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
92 inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
93 inline Rule& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
94 inline Rule& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
95 inline Rule& WithPrefix(const char* value) { SetPrefix(value); return *this;}
97
99
103 inline const ExpirationStatus& GetStatus() const{ return m_status; }
104 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
105 inline void SetStatus(const ExpirationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
106 inline void SetStatus(ExpirationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
107 inline Rule& WithStatus(const ExpirationStatus& value) { SetStatus(value); return *this;}
108 inline Rule& WithStatus(ExpirationStatus&& value) { SetStatus(std::move(value)); return *this;}
110
112
118 inline const Transition& GetTransition() const{ return m_transition; }
119 inline bool TransitionHasBeenSet() const { return m_transitionHasBeenSet; }
120 inline void SetTransition(const Transition& value) { m_transitionHasBeenSet = true; m_transition = value; }
121 inline void SetTransition(Transition&& value) { m_transitionHasBeenSet = true; m_transition = std::move(value); }
122 inline Rule& WithTransition(const Transition& value) { SetTransition(value); return *this;}
123 inline Rule& WithTransition(Transition&& value) { SetTransition(std::move(value)); return *this;}
125
127
128 inline const NoncurrentVersionTransition& GetNoncurrentVersionTransition() const{ return m_noncurrentVersionTransition; }
129 inline bool NoncurrentVersionTransitionHasBeenSet() const { return m_noncurrentVersionTransitionHasBeenSet; }
130 inline void SetNoncurrentVersionTransition(const NoncurrentVersionTransition& value) { m_noncurrentVersionTransitionHasBeenSet = true; m_noncurrentVersionTransition = value; }
131 inline void SetNoncurrentVersionTransition(NoncurrentVersionTransition&& value) { m_noncurrentVersionTransitionHasBeenSet = true; m_noncurrentVersionTransition = std::move(value); }
135
137
138 inline const NoncurrentVersionExpiration& GetNoncurrentVersionExpiration() const{ return m_noncurrentVersionExpiration; }
139 inline bool NoncurrentVersionExpirationHasBeenSet() const { return m_noncurrentVersionExpirationHasBeenSet; }
140 inline void SetNoncurrentVersionExpiration(const NoncurrentVersionExpiration& value) { m_noncurrentVersionExpirationHasBeenSet = true; m_noncurrentVersionExpiration = value; }
141 inline void SetNoncurrentVersionExpiration(NoncurrentVersionExpiration&& value) { m_noncurrentVersionExpirationHasBeenSet = true; m_noncurrentVersionExpiration = std::move(value); }
145
147
148 inline const AbortIncompleteMultipartUpload& GetAbortIncompleteMultipartUpload() const{ return m_abortIncompleteMultipartUpload; }
149 inline bool AbortIncompleteMultipartUploadHasBeenSet() const { return m_abortIncompleteMultipartUploadHasBeenSet; }
150 inline void SetAbortIncompleteMultipartUpload(const AbortIncompleteMultipartUpload& value) { m_abortIncompleteMultipartUploadHasBeenSet = true; m_abortIncompleteMultipartUpload = value; }
151 inline void SetAbortIncompleteMultipartUpload(AbortIncompleteMultipartUpload&& value) { m_abortIncompleteMultipartUploadHasBeenSet = true; m_abortIncompleteMultipartUpload = std::move(value); }
155 private:
156
157 LifecycleExpiration m_expiration;
158 bool m_expirationHasBeenSet = false;
159
160 Aws::String m_iD;
161 bool m_iDHasBeenSet = false;
162
163 Aws::String m_prefix;
164 bool m_prefixHasBeenSet = false;
165
166 ExpirationStatus m_status;
167 bool m_statusHasBeenSet = false;
168
169 Transition m_transition;
170 bool m_transitionHasBeenSet = false;
171
172 NoncurrentVersionTransition m_noncurrentVersionTransition;
173 bool m_noncurrentVersionTransitionHasBeenSet = false;
174
175 NoncurrentVersionExpiration m_noncurrentVersionExpiration;
176 bool m_noncurrentVersionExpirationHasBeenSet = false;
177
178 AbortIncompleteMultipartUpload m_abortIncompleteMultipartUpload;
179 bool m_abortIncompleteMultipartUploadHasBeenSet = false;
180 };
181
182} // namespace Model
183} // namespace S3Crt
184} // namespace Aws
void SetAbortIncompleteMultipartUpload(const AbortIncompleteMultipartUpload &value)
Definition Rule.h:150
bool IDHasBeenSet() const
Definition Rule.h:70
bool ExpirationHasBeenSet() const
Definition Rule.h:57
bool NoncurrentVersionTransitionHasBeenSet() const
Definition Rule.h:129
void SetNoncurrentVersionTransition(const NoncurrentVersionTransition &value)
Definition Rule.h:130
void SetNoncurrentVersionExpiration(NoncurrentVersionExpiration &&value)
Definition Rule.h:141
void SetExpiration(LifecycleExpiration &&value)
Definition Rule.h:59
Rule & WithTransition(const Transition &value)
Definition Rule.h:122
Rule & WithID(const Aws::String &value)
Definition Rule.h:74
void SetID(Aws::String &&value)
Definition Rule.h:72
const NoncurrentVersionExpiration & GetNoncurrentVersionExpiration() const
Definition Rule.h:138
Rule & WithNoncurrentVersionExpiration(const NoncurrentVersionExpiration &value)
Definition Rule.h:142
Rule & WithExpiration(LifecycleExpiration &&value)
Definition Rule.h:61
void SetTransition(const Transition &value)
Definition Rule.h:120
const AbortIncompleteMultipartUpload & GetAbortIncompleteMultipartUpload() const
Definition Rule.h:148
const Aws::String & GetPrefix() const
Definition Rule.h:88
Rule & WithAbortIncompleteMultipartUpload(const AbortIncompleteMultipartUpload &value)
Definition Rule.h:152
AWS_S3CRT_API Rule(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetStatus(const ExpirationStatus &value)
Definition Rule.h:105
bool NoncurrentVersionExpirationHasBeenSet() const
Definition Rule.h:139
void SetNoncurrentVersionExpiration(const NoncurrentVersionExpiration &value)
Definition Rule.h:140
AWS_S3CRT_API Rule()
Rule & WithPrefix(Aws::String &&value)
Definition Rule.h:94
bool StatusHasBeenSet() const
Definition Rule.h:104
void SetID(const Aws::String &value)
Definition Rule.h:71
Rule & WithNoncurrentVersionExpiration(NoncurrentVersionExpiration &&value)
Definition Rule.h:143
void SetTransition(Transition &&value)
Definition Rule.h:121
void SetExpiration(const LifecycleExpiration &value)
Definition Rule.h:58
Rule & WithID(Aws::String &&value)
Definition Rule.h:75
Rule & WithAbortIncompleteMultipartUpload(AbortIncompleteMultipartUpload &&value)
Definition Rule.h:153
const Aws::String & GetID() const
Definition Rule.h:69
bool TransitionHasBeenSet() const
Definition Rule.h:119
void SetStatus(ExpirationStatus &&value)
Definition Rule.h:106
bool PrefixHasBeenSet() const
Definition Rule.h:89
Rule & WithID(const char *value)
Definition Rule.h:76
Rule & WithNoncurrentVersionTransition(NoncurrentVersionTransition &&value)
Definition Rule.h:133
bool AbortIncompleteMultipartUploadHasBeenSet() const
Definition Rule.h:149
void SetID(const char *value)
Definition Rule.h:73
const ExpirationStatus & GetStatus() const
Definition Rule.h:103
AWS_S3CRT_API Rule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Rule & WithStatus(ExpirationStatus &&value)
Definition Rule.h:108
const NoncurrentVersionTransition & GetNoncurrentVersionTransition() const
Definition Rule.h:128
void SetPrefix(const char *value)
Definition Rule.h:92
AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Rule & WithPrefix(const char *value)
Definition Rule.h:95
Rule & WithStatus(const ExpirationStatus &value)
Definition Rule.h:107
Rule & WithNoncurrentVersionTransition(const NoncurrentVersionTransition &value)
Definition Rule.h:132
void SetPrefix(Aws::String &&value)
Definition Rule.h:91
Rule & WithExpiration(const LifecycleExpiration &value)
Definition Rule.h:60
const Transition & GetTransition() const
Definition Rule.h:118
Rule & WithTransition(Transition &&value)
Definition Rule.h:123
const LifecycleExpiration & GetExpiration() const
Definition Rule.h:56
void SetPrefix(const Aws::String &value)
Definition Rule.h:90
Rule & WithPrefix(const Aws::String &value)
Definition Rule.h:93
void SetNoncurrentVersionTransition(NoncurrentVersionTransition &&value)
Definition Rule.h:131
void SetAbortIncompleteMultipartUpload(AbortIncompleteMultipartUpload &&value)
Definition Rule.h:151
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String