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/S3_EXPORTS.h>
8#include <aws/s3/model/LifecycleExpiration.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3/model/ExpirationStatus.h>
11#include <aws/s3/model/Transition.h>
12#include <aws/s3/model/NoncurrentVersionTransition.h>
13#include <aws/s3/model/NoncurrentVersionExpiration.h>
14#include <aws/s3/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 S3
27{
28namespace Model
29{
30
42 class Rule
43 {
44 public:
45 AWS_S3_API Rule();
46 AWS_S3_API Rule(const Aws::Utils::Xml::XmlNode& xmlNode);
47 AWS_S3_API Rule& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
48
49 AWS_S3_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 S3
184} // namespace Aws
const Aws::String & GetID() const
Definition Rule.h:69
Rule & WithStatus(const ExpirationStatus &value)
Definition Rule.h:107
Rule & WithPrefix(const char *value)
Definition Rule.h:95
void SetPrefix(Aws::String &&value)
Definition Rule.h:91
void SetNoncurrentVersionTransition(NoncurrentVersionTransition &&value)
Definition Rule.h:131
Rule & WithPrefix(Aws::String &&value)
Definition Rule.h:94
Rule & WithAbortIncompleteMultipartUpload(const AbortIncompleteMultipartUpload &value)
Definition Rule.h:152
Rule & WithID(const Aws::String &value)
Definition Rule.h:74
const Aws::String & GetPrefix() const
Definition Rule.h:88
void SetID(Aws::String &&value)
Definition Rule.h:72
void SetID(const char *value)
Definition Rule.h:73
void SetExpiration(LifecycleExpiration &&value)
Definition Rule.h:59
Rule & WithAbortIncompleteMultipartUpload(AbortIncompleteMultipartUpload &&value)
Definition Rule.h:153
void SetTransition(Transition &&value)
Definition Rule.h:121
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
bool StatusHasBeenSet() const
Definition Rule.h:104
const Transition & GetTransition() const
Definition Rule.h:118
const LifecycleExpiration & GetExpiration() const
Definition Rule.h:56
bool PrefixHasBeenSet() const
Definition Rule.h:89
bool IDHasBeenSet() const
Definition Rule.h:70
const NoncurrentVersionTransition & GetNoncurrentVersionTransition() const
Definition Rule.h:128
void SetNoncurrentVersionExpiration(const NoncurrentVersionExpiration &value)
Definition Rule.h:140
void SetPrefix(const Aws::String &value)
Definition Rule.h:90
Rule & WithPrefix(const Aws::String &value)
Definition Rule.h:93
void SetAbortIncompleteMultipartUpload(AbortIncompleteMultipartUpload &&value)
Definition Rule.h:151
void SetNoncurrentVersionTransition(const NoncurrentVersionTransition &value)
Definition Rule.h:130
const AbortIncompleteMultipartUpload & GetAbortIncompleteMultipartUpload() const
Definition Rule.h:148
Rule & WithNoncurrentVersionTransition(NoncurrentVersionTransition &&value)
Definition Rule.h:133
Rule & WithID(const char *value)
Definition Rule.h:76
const NoncurrentVersionExpiration & GetNoncurrentVersionExpiration() const
Definition Rule.h:138
bool TransitionHasBeenSet() const
Definition Rule.h:119
Rule & WithNoncurrentVersionExpiration(NoncurrentVersionExpiration &&value)
Definition Rule.h:143
bool NoncurrentVersionTransitionHasBeenSet() const
Definition Rule.h:129
void SetExpiration(const LifecycleExpiration &value)
Definition Rule.h:58
Rule & WithNoncurrentVersionExpiration(const NoncurrentVersionExpiration &value)
Definition Rule.h:142
Rule & WithTransition(const Transition &value)
Definition Rule.h:122
AWS_S3_API Rule(const Aws::Utils::Xml::XmlNode &xmlNode)
bool ExpirationHasBeenSet() const
Definition Rule.h:57
void SetID(const Aws::String &value)
Definition Rule.h:71
void SetPrefix(const char *value)
Definition Rule.h:92
Rule & WithID(Aws::String &&value)
Definition Rule.h:75
void SetNoncurrentVersionExpiration(NoncurrentVersionExpiration &&value)
Definition Rule.h:141
Rule & WithNoncurrentVersionTransition(const NoncurrentVersionTransition &value)
Definition Rule.h:132
Rule & WithExpiration(const LifecycleExpiration &value)
Definition Rule.h:60
bool AbortIncompleteMultipartUploadHasBeenSet() const
Definition Rule.h:149
void SetStatus(ExpirationStatus &&value)
Definition Rule.h:106
AWS_S3_API Rule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Rule & WithStatus(ExpirationStatus &&value)
Definition Rule.h:108
bool NoncurrentVersionExpirationHasBeenSet() const
Definition Rule.h:139
void SetStatus(const ExpirationStatus &value)
Definition Rule.h:105
Rule & WithTransition(Transition &&value)
Definition Rule.h:123
void SetTransition(const Transition &value)
Definition Rule.h:120
const ExpirationStatus & GetStatus() const
Definition Rule.h:103
Rule & WithExpiration(LifecycleExpiration &&value)
Definition Rule.h:61
void SetAbortIncompleteMultipartUpload(const AbortIncompleteMultipartUpload &value)
Definition Rule.h:150
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String