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>
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>>
56 template<
typename MatchAnyPrefixT = Aws::String>
57 KeyNameConstraint&
AddMatchAnyPrefix(MatchAnyPrefixT&& value) { m_matchAnyPrefixHasBeenSet =
true; m_matchAnyPrefix.emplace_back(std::forward<MatchAnyPrefixT>(value));
return *
this; }
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>>
72 template<
typename MatchAnySuffixT = Aws::String>
73 KeyNameConstraint&
AddMatchAnySuffix(MatchAnySuffixT&& value) { m_matchAnySuffixHasBeenSet =
true; m_matchAnySuffix.emplace_back(std::forward<MatchAnySuffixT>(value));
return *
this; }
84 template<
typename MatchAnySub
stringT = Aws::Vector<Aws::String>>
85 void SetMatchAnySubstring(MatchAnySubstringT&& value) { m_matchAnySubstringHasBeenSet =
true; m_matchAnySubstring = std::forward<MatchAnySubstringT>(value); }
86 template<
typename MatchAnySub
stringT = Aws::Vector<Aws::String>>
88 template<
typename MatchAnySub
stringT = Aws::String>
89 KeyNameConstraint&
AddMatchAnySubstring(MatchAnySubstringT&& value) { m_matchAnySubstringHasBeenSet =
true; m_matchAnySubstring.emplace_back(std::forward<MatchAnySubstringT>(value));
return *
this; }
94 bool m_matchAnyPrefixHasBeenSet =
false;
97 bool m_matchAnySuffixHasBeenSet =
false;
100 bool m_matchAnySubstringHasBeenSet =
false;
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)
bool MatchAnySuffixHasBeenSet() const
KeyNameConstraint & WithMatchAnySubstring(MatchAnySubstringT &&value)
KeyNameConstraint & AddMatchAnySuffix(MatchAnySuffixT &&value)
void SetMatchAnySuffix(MatchAnySuffixT &&value)
bool MatchAnySubstringHasBeenSet() const
AWS_S3CONTROL_API KeyNameConstraint()=default
const Aws::Vector< Aws::String > & GetMatchAnySuffix() const
bool MatchAnyPrefixHasBeenSet() const
void SetMatchAnyPrefix(MatchAnyPrefixT &&value)
KeyNameConstraint & AddMatchAnyPrefix(MatchAnyPrefixT &&value)
std::vector< T, Aws::Allocator< T > > Vector