AWS SDK for C++

AWS SDK for C++ Version 1.11.937

Loading...
Searching...
No Matches
ReplicationRuleNotOperator.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/s3/S3_EXPORTS.h>
9#include <aws/s3/model/ReplicationRuleOrOperator.h>
10#include <aws/s3/model/Tag.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace S3 {
21namespace Model {
22
31 public:
32 AWS_S3_API ReplicationRuleNotOperator() = default;
35
36 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
37
39
43 inline const Aws::String& GetPrefix() const { return m_prefix; }
44 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
45 template <typename PrefixT = Aws::String>
46 void SetPrefix(PrefixT&& value) {
47 m_prefixHasBeenSet = true;
48 m_prefix = std::forward<PrefixT>(value);
49 }
50 template <typename PrefixT = Aws::String>
52 SetPrefix(std::forward<PrefixT>(value));
53 return *this;
54 }
56
58
62 inline const Tag& GetTag() const { return m_tag; }
63 inline bool TagHasBeenSet() const { return m_tagHasBeenSet; }
64 template <typename TagT = Tag>
65 void SetTag(TagT&& value) {
66 m_tagHasBeenSet = true;
67 m_tag = std::forward<TagT>(value);
68 }
69 template <typename TagT = Tag>
71 SetTag(std::forward<TagT>(value));
72 return *this;
73 }
75
77
81 inline const ReplicationRuleOrOperator& GetOr() const { return m_or; }
82 inline bool OrHasBeenSet() const { return m_orHasBeenSet; }
83 template <typename OrT = ReplicationRuleOrOperator>
84 void SetOr(OrT&& value) {
85 m_orHasBeenSet = true;
86 m_or = std::forward<OrT>(value);
87 }
88 template <typename OrT = ReplicationRuleOrOperator>
90 SetOr(std::forward<OrT>(value));
91 return *this;
92 }
94 private:
95 Aws::String m_prefix;
96
97 Tag m_tag;
98
100 bool m_prefixHasBeenSet = false;
101 bool m_tagHasBeenSet = false;
102 bool m_orHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace S3
107} // namespace Aws
AWS_S3_API ReplicationRuleNotOperator(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3_API ReplicationRuleNotOperator & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const ReplicationRuleOrOperator & GetOr() const
AWS_S3_API ReplicationRuleNotOperator()=default
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
ReplicationRuleNotOperator & WithTag(TagT &&value)
ReplicationRuleNotOperator & WithOr(OrT &&value)
ReplicationRuleNotOperator & WithPrefix(PrefixT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String