AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
AnalyticsAndOperator.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
36 {
37 public:
41
43
44
49 inline const Aws::String& GetPrefix() const{ return m_prefix; }
50
55 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
56
61 inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
62
67 inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
68
73 inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
74
79 inline AnalyticsAndOperator& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
80
85 inline AnalyticsAndOperator& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
86
91 inline AnalyticsAndOperator& WithPrefix(const char* value) { SetPrefix(value); return *this;}
92
93
97 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
98
102 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
103
107 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
108
112 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
113
117 inline AnalyticsAndOperator& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
118
122 inline AnalyticsAndOperator& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
123
127 inline AnalyticsAndOperator& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
128
132 inline AnalyticsAndOperator& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
133
134 private:
135
136 Aws::String m_prefix;
137 bool m_prefixHasBeenSet = false;
138
139 Aws::Vector<Tag> m_tags;
140 bool m_tagsHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace S3
145} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
void SetTags(Aws::Vector< Tag > &&value)
AnalyticsAndOperator & WithPrefix(const char *value)
AnalyticsAndOperator & WithTags(const Aws::Vector< Tag > &value)
AWS_S3_API AnalyticsAndOperator & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AnalyticsAndOperator & AddTags(const Tag &value)
AnalyticsAndOperator & WithPrefix(const Aws::String &value)
void SetTags(const Aws::Vector< Tag > &value)
AnalyticsAndOperator & AddTags(Tag &&value)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const Aws::Vector< Tag > & GetTags() const
AWS_S3_API AnalyticsAndOperator(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetPrefix(const Aws::String &value)
AnalyticsAndOperator & WithTags(Aws::Vector< Tag > &&value)
const Aws::String & GetPrefix() const
AnalyticsAndOperator & WithPrefix(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector