AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ReplicationRuleAndOperator.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
39 {
40 public:
44
46
47
52 inline const Aws::String& GetPrefix() const{ return m_prefix; }
53
58 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
59
64 inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
65
70 inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
71
76 inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
77
82 inline ReplicationRuleAndOperator& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
83
88 inline ReplicationRuleAndOperator& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
89
94 inline ReplicationRuleAndOperator& WithPrefix(const char* value) { SetPrefix(value); return *this;}
95
96
100 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
101
105 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
106
110 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
111
115 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
116
120 inline ReplicationRuleAndOperator& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
121
125 inline ReplicationRuleAndOperator& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
126
130 inline ReplicationRuleAndOperator& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
131
135 inline ReplicationRuleAndOperator& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
136
137 private:
138
139 Aws::String m_prefix;
140 bool m_prefixHasBeenSet = false;
141
142 Aws::Vector<Tag> m_tags;
143 bool m_tagsHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace S3
148} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
AWS_S3_API ReplicationRuleAndOperator(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3_API ReplicationRuleAndOperator & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ReplicationRuleAndOperator & WithTags(Aws::Vector< Tag > &&value)
ReplicationRuleAndOperator & AddTags(const Tag &value)
ReplicationRuleAndOperator & AddTags(Tag &&value)
ReplicationRuleAndOperator & WithTags(const Aws::Vector< Tag > &value)
void SetTags(const Aws::Vector< Tag > &value)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
ReplicationRuleAndOperator & WithPrefix(Aws::String &&value)
ReplicationRuleAndOperator & WithPrefix(const Aws::String &value)
ReplicationRuleAndOperator & WithPrefix(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector