AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename MatchAnyPrefixT = Aws::Vector<Aws::String>>
53 void SetMatchAnyPrefix(MatchAnyPrefixT&& value) { m_matchAnyPrefixHasBeenSet = true; m_matchAnyPrefix = std::forward<MatchAnyPrefixT>(value); }
54 template<typename MatchAnyPrefixT = Aws::Vector<Aws::String>>
55 KeyNameConstraint& WithMatchAnyPrefix(MatchAnyPrefixT&& value) { SetMatchAnyPrefix(std::forward<MatchAnyPrefixT>(value)); return *this;}
56 template<typename MatchAnyPrefixT = Aws::String>
57 KeyNameConstraint& AddMatchAnyPrefix(MatchAnyPrefixT&& value) { m_matchAnyPrefixHasBeenSet = true; m_matchAnyPrefix.emplace_back(std::forward<MatchAnyPrefixT>(value)); return *this; }
59
61
66 inline const Aws::Vector<Aws::String>& GetMatchAnySuffix() const { return m_matchAnySuffix; }
67 inline bool MatchAnySuffixHasBeenSet() const { return m_matchAnySuffixHasBeenSet; }
68 template<typename MatchAnySuffixT = Aws::Vector<Aws::String>>
69 void SetMatchAnySuffix(MatchAnySuffixT&& value) { m_matchAnySuffixHasBeenSet = true; m_matchAnySuffix = std::forward<MatchAnySuffixT>(value); }
70 template<typename MatchAnySuffixT = Aws::Vector<Aws::String>>
71 KeyNameConstraint& WithMatchAnySuffix(MatchAnySuffixT&& value) { SetMatchAnySuffix(std::forward<MatchAnySuffixT>(value)); return *this;}
72 template<typename MatchAnySuffixT = Aws::String>
73 KeyNameConstraint& AddMatchAnySuffix(MatchAnySuffixT&& value) { m_matchAnySuffixHasBeenSet = true; m_matchAnySuffix.emplace_back(std::forward<MatchAnySuffixT>(value)); return *this; }
75
77
82 inline const Aws::Vector<Aws::String>& GetMatchAnySubstring() const { return m_matchAnySubstring; }
83 inline bool MatchAnySubstringHasBeenSet() const { return m_matchAnySubstringHasBeenSet; }
84 template<typename MatchAnySubstringT = Aws::Vector<Aws::String>>
85 void SetMatchAnySubstring(MatchAnySubstringT&& value) { m_matchAnySubstringHasBeenSet = true; m_matchAnySubstring = std::forward<MatchAnySubstringT>(value); }
86 template<typename MatchAnySubstringT = Aws::Vector<Aws::String>>
87 KeyNameConstraint& WithMatchAnySubstring(MatchAnySubstringT&& value) { SetMatchAnySubstring(std::forward<MatchAnySubstringT>(value)); return *this;}
88 template<typename MatchAnySubstringT = Aws::String>
89 KeyNameConstraint& AddMatchAnySubstring(MatchAnySubstringT&& value) { m_matchAnySubstringHasBeenSet = true; m_matchAnySubstring.emplace_back(std::forward<MatchAnySubstringT>(value)); return *this; }
91 private:
92
93 Aws::Vector<Aws::String> m_matchAnyPrefix;
94 bool m_matchAnyPrefixHasBeenSet = false;
95
96 Aws::Vector<Aws::String> m_matchAnySuffix;
97 bool m_matchAnySuffixHasBeenSet = false;
98
99 Aws::Vector<Aws::String> m_matchAnySubstring;
100 bool m_matchAnySubstringHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace S3Control
105} // namespace Aws
void SetMatchAnySubstring(MatchAnySubstringT &&value)
KeyNameConstraint & WithMatchAnyPrefix(MatchAnyPrefixT &&value)
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
KeyNameConstraint & AddMatchAnySubstring(MatchAnySubstringT &&value)
AWS_S3CONTROL_API KeyNameConstraint & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< Aws::String > & GetMatchAnySubstring() const
KeyNameConstraint & WithMatchAnySuffix(MatchAnySuffixT &&value)
const Aws::Vector< Aws::String > & GetMatchAnyPrefix() const
AWS_S3CONTROL_API KeyNameConstraint(const Aws::Utils::Xml::XmlNode &xmlNode)
KeyNameConstraint & WithMatchAnySubstring(MatchAnySubstringT &&value)
KeyNameConstraint & AddMatchAnySuffix(MatchAnySuffixT &&value)
void SetMatchAnySuffix(MatchAnySuffixT &&value)
AWS_S3CONTROL_API KeyNameConstraint()=default
const Aws::Vector< Aws::String > & GetMatchAnySuffix() const
void SetMatchAnyPrefix(MatchAnyPrefixT &&value)
KeyNameConstraint & AddMatchAnyPrefix(MatchAnyPrefixT &&value)
std::vector< T, Aws::Allocator< T > > Vector