AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
KeyNameConstraint.h
1
6#pragma once
7#include <aws/s3control/S3Control_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace S3Control
22{
23namespace Model
24{
25
35 {
36 public:
37 AWS_S3CONTROL_API KeyNameConstraint();
38 AWS_S3CONTROL_API KeyNameConstraint(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_S3CONTROL_API KeyNameConstraint& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
42
43
45
50 inline const Aws::Vector<Aws::String>& GetMatchAnyPrefix() const{ return m_matchAnyPrefix; }
51 inline bool MatchAnyPrefixHasBeenSet() const { return m_matchAnyPrefixHasBeenSet; }
52 inline void SetMatchAnyPrefix(const Aws::Vector<Aws::String>& value) { m_matchAnyPrefixHasBeenSet = true; m_matchAnyPrefix = value; }
53 inline void SetMatchAnyPrefix(Aws::Vector<Aws::String>&& value) { m_matchAnyPrefixHasBeenSet = true; m_matchAnyPrefix = std::move(value); }
55 inline KeyNameConstraint& WithMatchAnyPrefix(Aws::Vector<Aws::String>&& value) { SetMatchAnyPrefix(std::move(value)); return *this;}
56 inline KeyNameConstraint& AddMatchAnyPrefix(const Aws::String& value) { m_matchAnyPrefixHasBeenSet = true; m_matchAnyPrefix.push_back(value); return *this; }
57 inline KeyNameConstraint& AddMatchAnyPrefix(Aws::String&& value) { m_matchAnyPrefixHasBeenSet = true; m_matchAnyPrefix.push_back(std::move(value)); return *this; }
58 inline KeyNameConstraint& AddMatchAnyPrefix(const char* value) { m_matchAnyPrefixHasBeenSet = true; m_matchAnyPrefix.push_back(value); return *this; }
60
62
67 inline const Aws::Vector<Aws::String>& GetMatchAnySuffix() const{ return m_matchAnySuffix; }
68 inline bool MatchAnySuffixHasBeenSet() const { return m_matchAnySuffixHasBeenSet; }
69 inline void SetMatchAnySuffix(const Aws::Vector<Aws::String>& value) { m_matchAnySuffixHasBeenSet = true; m_matchAnySuffix = value; }
70 inline void SetMatchAnySuffix(Aws::Vector<Aws::String>&& value) { m_matchAnySuffixHasBeenSet = true; m_matchAnySuffix = std::move(value); }
72 inline KeyNameConstraint& WithMatchAnySuffix(Aws::Vector<Aws::String>&& value) { SetMatchAnySuffix(std::move(value)); return *this;}
73 inline KeyNameConstraint& AddMatchAnySuffix(const Aws::String& value) { m_matchAnySuffixHasBeenSet = true; m_matchAnySuffix.push_back(value); return *this; }
74 inline KeyNameConstraint& AddMatchAnySuffix(Aws::String&& value) { m_matchAnySuffixHasBeenSet = true; m_matchAnySuffix.push_back(std::move(value)); return *this; }
75 inline KeyNameConstraint& AddMatchAnySuffix(const char* value) { m_matchAnySuffixHasBeenSet = true; m_matchAnySuffix.push_back(value); return *this; }
77
79
84 inline const Aws::Vector<Aws::String>& GetMatchAnySubstring() const{ return m_matchAnySubstring; }
85 inline bool MatchAnySubstringHasBeenSet() const { return m_matchAnySubstringHasBeenSet; }
86 inline void SetMatchAnySubstring(const Aws::Vector<Aws::String>& value) { m_matchAnySubstringHasBeenSet = true; m_matchAnySubstring = value; }
87 inline void SetMatchAnySubstring(Aws::Vector<Aws::String>&& value) { m_matchAnySubstringHasBeenSet = true; m_matchAnySubstring = std::move(value); }
89 inline KeyNameConstraint& WithMatchAnySubstring(Aws::Vector<Aws::String>&& value) { SetMatchAnySubstring(std::move(value)); return *this;}
90 inline KeyNameConstraint& AddMatchAnySubstring(const Aws::String& value) { m_matchAnySubstringHasBeenSet = true; m_matchAnySubstring.push_back(value); return *this; }
91 inline KeyNameConstraint& AddMatchAnySubstring(Aws::String&& value) { m_matchAnySubstringHasBeenSet = true; m_matchAnySubstring.push_back(std::move(value)); return *this; }
92 inline KeyNameConstraint& AddMatchAnySubstring(const char* value) { m_matchAnySubstringHasBeenSet = true; m_matchAnySubstring.push_back(value); return *this; }
94 private:
95
96 Aws::Vector<Aws::String> m_matchAnyPrefix;
97 bool m_matchAnyPrefixHasBeenSet = false;
98
99 Aws::Vector<Aws::String> m_matchAnySuffix;
100 bool m_matchAnySuffixHasBeenSet = false;
101
102 Aws::Vector<Aws::String> m_matchAnySubstring;
103 bool m_matchAnySubstringHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace S3Control
108} // namespace Aws
void SetMatchAnyPrefix(Aws::Vector< Aws::String > &&value)
KeyNameConstraint & AddMatchAnySubstring(Aws::String &&value)
KeyNameConstraint & AddMatchAnySuffix(const char *value)
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
KeyNameConstraint & AddMatchAnyPrefix(const Aws::String &value)
KeyNameConstraint & WithMatchAnySubstring(Aws::Vector< Aws::String > &&value)
KeyNameConstraint & WithMatchAnyPrefix(Aws::Vector< Aws::String > &&value)
KeyNameConstraint & AddMatchAnySuffix(Aws::String &&value)
KeyNameConstraint & AddMatchAnySuffix(const Aws::String &value)
KeyNameConstraint & WithMatchAnySubstring(const Aws::Vector< Aws::String > &value)
void SetMatchAnyPrefix(const Aws::Vector< Aws::String > &value)
AWS_S3CONTROL_API KeyNameConstraint & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< Aws::String > & GetMatchAnySubstring() const
const Aws::Vector< Aws::String > & GetMatchAnyPrefix() const
void SetMatchAnySubstring(const Aws::Vector< Aws::String > &value)
KeyNameConstraint & AddMatchAnyPrefix(Aws::String &&value)
AWS_S3CONTROL_API KeyNameConstraint(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetMatchAnySuffix(Aws::Vector< Aws::String > &&value)
KeyNameConstraint & WithMatchAnySuffix(Aws::Vector< Aws::String > &&value)
KeyNameConstraint & WithMatchAnyPrefix(const Aws::Vector< Aws::String > &value)
KeyNameConstraint & AddMatchAnyPrefix(const char *value)
void SetMatchAnySubstring(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetMatchAnySuffix() const
KeyNameConstraint & AddMatchAnySubstring(const char *value)
KeyNameConstraint & WithMatchAnySuffix(const Aws::Vector< Aws::String > &value)
void SetMatchAnySuffix(const Aws::Vector< Aws::String > &value)
KeyNameConstraint & AddMatchAnySubstring(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector