AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ReplicationRuleAndOperator.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/s3control/S3Control_EXPORTS.h>
10#include <aws/s3control/model/S3Tag.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace S3Control {
21namespace Model {
22
35 public:
36 AWS_S3CONTROL_API ReplicationRuleAndOperator() = default;
37 AWS_S3CONTROL_API ReplicationRuleAndOperator(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
41
43
47 inline const Aws::String& GetPrefix() const { return m_prefix; }
48 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
49 template <typename PrefixT = Aws::String>
50 void SetPrefix(PrefixT&& value) {
51 m_prefixHasBeenSet = true;
52 m_prefix = std::forward<PrefixT>(value);
53 }
54 template <typename PrefixT = Aws::String>
56 SetPrefix(std::forward<PrefixT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::Vector<S3Tag>& GetTags() const { return m_tags; }
66 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
67 template <typename TagsT = Aws::Vector<S3Tag>>
68 void SetTags(TagsT&& value) {
69 m_tagsHasBeenSet = true;
70 m_tags = std::forward<TagsT>(value);
71 }
72 template <typename TagsT = Aws::Vector<S3Tag>>
74 SetTags(std::forward<TagsT>(value));
75 return *this;
76 }
77 template <typename TagsT = S3Tag>
79 m_tagsHasBeenSet = true;
80 m_tags.emplace_back(std::forward<TagsT>(value));
81 return *this;
82 }
84 private:
85 Aws::String m_prefix;
86
87 Aws::Vector<S3Tag> m_tags;
88 bool m_prefixHasBeenSet = false;
89 bool m_tagsHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace S3Control
94} // namespace Aws
ReplicationRuleAndOperator & WithTags(TagsT &&value)
AWS_S3CONTROL_API ReplicationRuleAndOperator & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3CONTROL_API ReplicationRuleAndOperator()=default
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_S3CONTROL_API ReplicationRuleAndOperator(const Aws::Utils::Xml::XmlNode &xmlNode)
ReplicationRuleAndOperator & AddTags(TagsT &&value)
ReplicationRuleAndOperator & WithPrefix(PrefixT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector