AWS SDK for C++  1.8.126
AWS SDK for C++
LifecycleRuleFilter.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace S3Control
23 {
24 namespace Model
25 {
26 
34  {
35  public:
39 
40  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
41 
42 
46  inline const Aws::String& GetPrefix() const{ return m_prefix; }
47 
51  inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
52 
56  inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
57 
61  inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
62 
66  inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
67 
71  inline LifecycleRuleFilter& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
72 
76  inline LifecycleRuleFilter& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
77 
81  inline LifecycleRuleFilter& WithPrefix(const char* value) { SetPrefix(value); return *this;}
82 
83 
84 
85  inline const S3Tag& GetTag() const{ return m_tag; }
86 
87 
88  inline bool TagHasBeenSet() const { return m_tagHasBeenSet; }
89 
90 
91  inline void SetTag(const S3Tag& value) { m_tagHasBeenSet = true; m_tag = value; }
92 
93 
94  inline void SetTag(S3Tag&& value) { m_tagHasBeenSet = true; m_tag = std::move(value); }
95 
96 
97  inline LifecycleRuleFilter& WithTag(const S3Tag& value) { SetTag(value); return *this;}
98 
99 
100  inline LifecycleRuleFilter& WithTag(S3Tag&& value) { SetTag(std::move(value)); return *this;}
101 
102 
106  inline const LifecycleRuleAndOperator& GetAnd() const{ return m_and; }
107 
111  inline bool AndHasBeenSet() const { return m_andHasBeenSet; }
112 
116  inline void SetAnd(const LifecycleRuleAndOperator& value) { m_andHasBeenSet = true; m_and = value; }
117 
121  inline void SetAnd(LifecycleRuleAndOperator&& value) { m_andHasBeenSet = true; m_and = std::move(value); }
122 
126  inline LifecycleRuleFilter& WithAnd(const LifecycleRuleAndOperator& value) { SetAnd(value); return *this;}
127 
131  inline LifecycleRuleFilter& WithAnd(LifecycleRuleAndOperator&& value) { SetAnd(std::move(value)); return *this;}
132 
133  private:
134 
135  Aws::String m_prefix;
136  bool m_prefixHasBeenSet;
137 
138  S3Tag m_tag;
139  bool m_tagHasBeenSet;
140 
142  bool m_andHasBeenSet;
143  };
144 
145 } // namespace Model
146 } // namespace S3Control
147 } // namespace Aws
Aws::S3Control::Model::LifecycleRuleFilter::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::S3Control::Model::LifecycleRuleFilter::GetPrefix
const Aws::String & GetPrefix() const
Definition: LifecycleRuleFilter.h:46
Aws::S3Control::Model::LifecycleRuleFilter::LifecycleRuleFilter
LifecycleRuleFilter()
Aws::S3Control::Model::LifecycleRuleFilter::WithPrefix
LifecycleRuleFilter & WithPrefix(const Aws::String &value)
Definition: LifecycleRuleFilter.h:71
Aws::S3Control::Model::LifecycleRuleFilter::SetAnd
void SetAnd(const LifecycleRuleAndOperator &value)
Definition: LifecycleRuleFilter.h:116
Aws::S3Control::Model::LifecycleRuleFilter::LifecycleRuleFilter
LifecycleRuleFilter(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::S3Control::Model::LifecycleRuleFilter::SetTag
void SetTag(S3Tag &&value)
Definition: LifecycleRuleFilter.h:94
Aws::S3Control::Model::LifecycleRuleFilter::WithPrefix
LifecycleRuleFilter & WithPrefix(const char *value)
Definition: LifecycleRuleFilter.h:81
Aws::S3Control::Model::LifecycleRuleFilter::WithPrefix
LifecycleRuleFilter & WithPrefix(Aws::String &&value)
Definition: LifecycleRuleFilter.h:76
Aws::S3Control::Model::LifecycleRuleFilter::WithTag
LifecycleRuleFilter & WithTag(const S3Tag &value)
Definition: LifecycleRuleFilter.h:97
Aws::S3Control::Model::LifecycleRuleFilter::WithAnd
LifecycleRuleFilter & WithAnd(LifecycleRuleAndOperator &&value)
Definition: LifecycleRuleFilter.h:131
Aws::S3Control::Model::LifecycleRuleFilter::AndHasBeenSet
bool AndHasBeenSet() const
Definition: LifecycleRuleFilter.h:111
Aws::S3Control::Model::LifecycleRuleFilter::SetPrefix
void SetPrefix(const char *value)
Definition: LifecycleRuleFilter.h:66
Aws::S3Control::Model::LifecycleRuleFilter::WithAnd
LifecycleRuleFilter & WithAnd(const LifecycleRuleAndOperator &value)
Definition: LifecycleRuleFilter.h:126
S3Control_EXPORTS.h
S3Tag.h
Aws::S3Control::Model::LifecycleRuleFilter::PrefixHasBeenSet
bool PrefixHasBeenSet() const
Definition: LifecycleRuleFilter.h:51
Aws::S3Control::Model::LifecycleRuleFilter::SetPrefix
void SetPrefix(Aws::String &&value)
Definition: LifecycleRuleFilter.h:61
Aws::S3Control::Model::LifecycleRuleFilter::operator=
LifecycleRuleFilter & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::S3Control::Model::LifecycleRuleFilter::SetAnd
void SetAnd(LifecycleRuleAndOperator &&value)
Definition: LifecycleRuleFilter.h:121
Aws::S3Control::Model::LifecycleRuleFilter::SetTag
void SetTag(const S3Tag &value)
Definition: LifecycleRuleFilter.h:91
AWS_S3CONTROL_API
#define AWS_S3CONTROL_API
Definition: S3Control_EXPORTS.h:28
Aws::S3Control::Model::LifecycleRuleFilter
Definition: LifecycleRuleFilter.h:34
AWSString.h
Aws::S3Control::Model::S3Tag
Definition: S3Tag.h:31
Aws::S3Control::Model::LifecycleRuleFilter::GetTag
const S3Tag & GetTag() const
Definition: LifecycleRuleFilter.h:85
Aws
Definition: AccessManagementClient.h:15
LifecycleRuleAndOperator.h
Aws::S3Control::Model::LifecycleRuleFilter::GetAnd
const LifecycleRuleAndOperator & GetAnd() const
Definition: LifecycleRuleFilter.h:106
Aws::S3Control::Model::LifecycleRuleFilter::SetPrefix
void SetPrefix(const Aws::String &value)
Definition: LifecycleRuleFilter.h:56
Aws::S3Control::Model::LifecycleRuleFilter::WithTag
LifecycleRuleFilter & WithTag(S3Tag &&value)
Definition: LifecycleRuleFilter.h:100
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::S3Control::Model::LifecycleRuleFilter::TagHasBeenSet
bool TagHasBeenSet() const
Definition: LifecycleRuleFilter.h:88
Aws::S3Control::Model::LifecycleRuleAndOperator
Definition: LifecycleRuleAndOperator.h:34