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/s3control/S3Control_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/s3control/model/S3Tag.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace S3Control
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_S3CONTROL_API LifecycleRuleAndOperator();
37 AWS_S3CONTROL_API LifecycleRuleAndOperator(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
41
42
44
47 inline const Aws::String& GetPrefix() const{ return m_prefix; }
48 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
49 inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
50 inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
51 inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
52 inline LifecycleRuleAndOperator& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
53 inline LifecycleRuleAndOperator& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
54 inline LifecycleRuleAndOperator& WithPrefix(const char* value) { SetPrefix(value); return *this;}
56
58
62 inline const Aws::Vector<S3Tag>& GetTags() const{ return m_tags; }
63 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
64 inline void SetTags(const Aws::Vector<S3Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
65 inline void SetTags(Aws::Vector<S3Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
66 inline LifecycleRuleAndOperator& WithTags(const Aws::Vector<S3Tag>& value) { SetTags(value); return *this;}
67 inline LifecycleRuleAndOperator& WithTags(Aws::Vector<S3Tag>&& value) { SetTags(std::move(value)); return *this;}
68 inline LifecycleRuleAndOperator& AddTags(const S3Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
69 inline LifecycleRuleAndOperator& AddTags(S3Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
71
73
78 inline long long GetObjectSizeGreaterThan() const{ return m_objectSizeGreaterThan; }
79 inline bool ObjectSizeGreaterThanHasBeenSet() const { return m_objectSizeGreaterThanHasBeenSet; }
80 inline void SetObjectSizeGreaterThan(long long value) { m_objectSizeGreaterThanHasBeenSet = true; m_objectSizeGreaterThan = value; }
81 inline LifecycleRuleAndOperator& WithObjectSizeGreaterThan(long long value) { SetObjectSizeGreaterThan(value); return *this;}
83
85
90 inline long long GetObjectSizeLessThan() const{ return m_objectSizeLessThan; }
91 inline bool ObjectSizeLessThanHasBeenSet() const { return m_objectSizeLessThanHasBeenSet; }
92 inline void SetObjectSizeLessThan(long long value) { m_objectSizeLessThanHasBeenSet = true; m_objectSizeLessThan = value; }
93 inline LifecycleRuleAndOperator& WithObjectSizeLessThan(long long value) { SetObjectSizeLessThan(value); return *this;}
95 private:
96
97 Aws::String m_prefix;
98 bool m_prefixHasBeenSet = false;
99
100 Aws::Vector<S3Tag> m_tags;
101 bool m_tagsHasBeenSet = false;
102
103 long long m_objectSizeGreaterThan;
104 bool m_objectSizeGreaterThanHasBeenSet = false;
105
106 long long m_objectSizeLessThan;
107 bool m_objectSizeLessThanHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace S3Control
112} // namespace Aws
LifecycleRuleAndOperator & WithPrefix(Aws::String &&value)
LifecycleRuleAndOperator & WithTags(const Aws::Vector< S3Tag > &value)
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
LifecycleRuleAndOperator & AddTags(S3Tag &&value)
LifecycleRuleAndOperator & WithObjectSizeLessThan(long long value)
void SetTags(const Aws::Vector< S3Tag > &value)
LifecycleRuleAndOperator & WithPrefix(const char *value)
LifecycleRuleAndOperator & AddTags(const S3Tag &value)
AWS_S3CONTROL_API LifecycleRuleAndOperator(const Aws::Utils::Xml::XmlNode &xmlNode)
LifecycleRuleAndOperator & WithTags(Aws::Vector< S3Tag > &&value)
LifecycleRuleAndOperator & WithObjectSizeGreaterThan(long long value)
LifecycleRuleAndOperator & WithPrefix(const Aws::String &value)
AWS_S3CONTROL_API LifecycleRuleAndOperator & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector