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/s3control/S3Control_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/s3control/model/S3Tag.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace S3Control
23{
24namespace Model
25{
26
39 {
40 public:
41 AWS_S3CONTROL_API ReplicationRuleAndOperator();
42 AWS_S3CONTROL_API ReplicationRuleAndOperator(const Aws::Utils::Xml::XmlNode& xmlNode);
44
45 AWS_S3CONTROL_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<S3Tag>& GetTags() const{ return m_tags; }
68 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
69 inline void SetTags(const Aws::Vector<S3Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
70 inline void SetTags(Aws::Vector<S3Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
71 inline ReplicationRuleAndOperator& WithTags(const Aws::Vector<S3Tag>& value) { SetTags(value); return *this;}
72 inline ReplicationRuleAndOperator& WithTags(Aws::Vector<S3Tag>&& value) { SetTags(std::move(value)); return *this;}
73 inline ReplicationRuleAndOperator& AddTags(const S3Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
74 inline ReplicationRuleAndOperator& AddTags(S3Tag&& 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<S3Tag> m_tags;
82 bool m_tagsHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace S3Control
87} // namespace Aws
ReplicationRuleAndOperator & WithTags(Aws::Vector< S3Tag > &&value)
AWS_S3CONTROL_API ReplicationRuleAndOperator & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ReplicationRuleAndOperator & AddTags(S3Tag &&value)
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
ReplicationRuleAndOperator & WithTags(const Aws::Vector< S3Tag > &value)
ReplicationRuleAndOperator & WithPrefix(const char *value)
AWS_S3CONTROL_API ReplicationRuleAndOperator(const Aws::Utils::Xml::XmlNode &xmlNode)
ReplicationRuleAndOperator & WithPrefix(const Aws::String &value)
ReplicationRuleAndOperator & AddTags(const S3Tag &value)
ReplicationRuleAndOperator & WithPrefix(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector