AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReplicationRuleAndOperator.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/s3-crt/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 S3Crt
23{
24namespace Model
25{
26
39 {
40 public:
44
45 AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
46
47
49
53 inline const Aws::String& GetPrefix() const{ return m_prefix; }
54 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
55 inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
56 inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
57 inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
58 inline ReplicationRuleAndOperator& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
59 inline ReplicationRuleAndOperator& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
60 inline ReplicationRuleAndOperator& WithPrefix(const char* value) { SetPrefix(value); return *this;}
62
64
67 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
68 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
69 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
70 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
71 inline ReplicationRuleAndOperator& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
72 inline ReplicationRuleAndOperator& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
73 inline ReplicationRuleAndOperator& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
74 inline ReplicationRuleAndOperator& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
76 private:
77
78 Aws::String m_prefix;
79 bool m_prefixHasBeenSet = false;
80
81 Aws::Vector<Tag> m_tags;
82 bool m_tagsHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace S3Crt
87} // namespace Aws
AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_S3CRT_API ReplicationRuleAndOperator & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ReplicationRuleAndOperator & WithPrefix(const Aws::String &value)
ReplicationRuleAndOperator & WithTags(const Aws::Vector< Tag > &value)
ReplicationRuleAndOperator & WithPrefix(Aws::String &&value)
ReplicationRuleAndOperator & WithPrefix(const char *value)
ReplicationRuleAndOperator & WithTags(Aws::Vector< Tag > &&value)
AWS_S3CRT_API ReplicationRuleAndOperator(const Aws::Utils::Xml::XmlNode &xmlNode)
ReplicationRuleAndOperator & AddTags(Tag &&value)
ReplicationRuleAndOperator & AddTags(const Tag &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector