AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LifecycleRuleAndOperator.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/s3-crt/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 S3Crt
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_S3CRT_API LifecycleRuleAndOperator();
40
41 AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
42
43
45
48 inline const Aws::String& GetPrefix() const{ return m_prefix; }
49 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
50 inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
51 inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
52 inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
53 inline LifecycleRuleAndOperator& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
54 inline LifecycleRuleAndOperator& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
55 inline LifecycleRuleAndOperator& WithPrefix(const char* value) { SetPrefix(value); return *this;}
57
59
63 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
64 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
65 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
66 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
67 inline LifecycleRuleAndOperator& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
68 inline LifecycleRuleAndOperator& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
69 inline LifecycleRuleAndOperator& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
70 inline LifecycleRuleAndOperator& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
72
74
77 inline long long GetObjectSizeGreaterThan() const{ return m_objectSizeGreaterThan; }
78 inline bool ObjectSizeGreaterThanHasBeenSet() const { return m_objectSizeGreaterThanHasBeenSet; }
79 inline void SetObjectSizeGreaterThan(long long value) { m_objectSizeGreaterThanHasBeenSet = true; m_objectSizeGreaterThan = value; }
80 inline LifecycleRuleAndOperator& WithObjectSizeGreaterThan(long long value) { SetObjectSizeGreaterThan(value); return *this;}
82
84
87 inline long long GetObjectSizeLessThan() const{ return m_objectSizeLessThan; }
88 inline bool ObjectSizeLessThanHasBeenSet() const { return m_objectSizeLessThanHasBeenSet; }
89 inline void SetObjectSizeLessThan(long long value) { m_objectSizeLessThanHasBeenSet = true; m_objectSizeLessThan = value; }
90 inline LifecycleRuleAndOperator& WithObjectSizeLessThan(long long value) { SetObjectSizeLessThan(value); return *this;}
92 private:
93
94 Aws::String m_prefix;
95 bool m_prefixHasBeenSet = false;
96
97 Aws::Vector<Tag> m_tags;
98 bool m_tagsHasBeenSet = false;
99
100 long long m_objectSizeGreaterThan;
101 bool m_objectSizeGreaterThanHasBeenSet = false;
102
103 long long m_objectSizeLessThan;
104 bool m_objectSizeLessThanHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace S3Crt
109} // namespace Aws
AWS_S3CRT_API LifecycleRuleAndOperator & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LifecycleRuleAndOperator & AddTags(Tag &&value)
LifecycleRuleAndOperator & WithObjectSizeLessThan(long long value)
LifecycleRuleAndOperator & WithPrefix(const Aws::String &value)
void SetTags(const Aws::Vector< Tag > &value)
AWS_S3CRT_API LifecycleRuleAndOperator(const Aws::Utils::Xml::XmlNode &xmlNode)
LifecycleRuleAndOperator & WithTags(Aws::Vector< Tag > &&value)
AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
LifecycleRuleAndOperator & WithObjectSizeGreaterThan(long long value)
LifecycleRuleAndOperator & WithPrefix(const char *value)
LifecycleRuleAndOperator & WithPrefix(Aws::String &&value)
LifecycleRuleAndOperator & WithTags(const Aws::Vector< Tag > &value)
LifecycleRuleAndOperator & AddTags(const Tag &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector