AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
LifecycleRuleAndOperator.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
10#include <aws/s3/model/Tag.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace S3
23{
24namespace Model
25{
26
35 {
36 public:
40
42
43
47 inline const Aws::String& GetPrefix() const{ return m_prefix; }
48
52 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
53
57 inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
58
62 inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
63
67 inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
68
72 inline LifecycleRuleAndOperator& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
73
77 inline LifecycleRuleAndOperator& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
78
82 inline LifecycleRuleAndOperator& WithPrefix(const char* value) { SetPrefix(value); return *this;}
83
84
89 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
90
95 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
96
101 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
102
107 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
108
113 inline LifecycleRuleAndOperator& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
114
119 inline LifecycleRuleAndOperator& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
120
125 inline LifecycleRuleAndOperator& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
126
131 inline LifecycleRuleAndOperator& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
132
133
137 inline long long GetObjectSizeGreaterThan() const{ return m_objectSizeGreaterThan; }
138
142 inline bool ObjectSizeGreaterThanHasBeenSet() const { return m_objectSizeGreaterThanHasBeenSet; }
143
147 inline void SetObjectSizeGreaterThan(long long value) { m_objectSizeGreaterThanHasBeenSet = true; m_objectSizeGreaterThan = value; }
148
152 inline LifecycleRuleAndOperator& WithObjectSizeGreaterThan(long long value) { SetObjectSizeGreaterThan(value); return *this;}
153
154
158 inline long long GetObjectSizeLessThan() const{ return m_objectSizeLessThan; }
159
163 inline bool ObjectSizeLessThanHasBeenSet() const { return m_objectSizeLessThanHasBeenSet; }
164
168 inline void SetObjectSizeLessThan(long long value) { m_objectSizeLessThanHasBeenSet = true; m_objectSizeLessThan = value; }
169
173 inline LifecycleRuleAndOperator& WithObjectSizeLessThan(long long value) { SetObjectSizeLessThan(value); return *this;}
174
175 private:
176
177 Aws::String m_prefix;
178 bool m_prefixHasBeenSet = false;
179
180 Aws::Vector<Tag> m_tags;
181 bool m_tagsHasBeenSet = false;
182
183 long long m_objectSizeGreaterThan;
184 bool m_objectSizeGreaterThanHasBeenSet = false;
185
186 long long m_objectSizeLessThan;
187 bool m_objectSizeLessThanHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace S3
192} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
LifecycleRuleAndOperator & WithObjectSizeLessThan(long long value)
LifecycleRuleAndOperator & WithTags(const Aws::Vector< Tag > &value)
LifecycleRuleAndOperator & WithTags(Aws::Vector< Tag > &&value)
LifecycleRuleAndOperator & AddTags(Tag &&value)
AWS_S3_API LifecycleRuleAndOperator(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< Tag > & GetTags() const
LifecycleRuleAndOperator & WithPrefix(const char *value)
LifecycleRuleAndOperator & AddTags(const Tag &value)
LifecycleRuleAndOperator & WithPrefix(const Aws::String &value)
AWS_S3_API LifecycleRuleAndOperator & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetTags(const Aws::Vector< Tag > &value)
LifecycleRuleAndOperator & WithPrefix(Aws::String &&value)
LifecycleRuleAndOperator & WithObjectSizeGreaterThan(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector