AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
OptionRestrictionRegex.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace ElasticBeanstalk {
20namespace Model {
21
29 public:
30 AWS_ELASTICBEANSTALK_API OptionRestrictionRegex() = default;
31 AWS_ELASTICBEANSTALK_API OptionRestrictionRegex(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_ELASTICBEANSTALK_API OptionRestrictionRegex& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
35 const char* locationValue) const;
36 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
43 inline const Aws::String& GetPattern() const { return m_pattern; }
44 inline bool PatternHasBeenSet() const { return m_patternHasBeenSet; }
45 template <typename PatternT = Aws::String>
46 void SetPattern(PatternT&& value) {
47 m_patternHasBeenSet = true;
48 m_pattern = std::forward<PatternT>(value);
49 }
50 template <typename PatternT = Aws::String>
52 SetPattern(std::forward<PatternT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetLabel() const { return m_label; }
62 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
63 template <typename LabelT = Aws::String>
64 void SetLabel(LabelT&& value) {
65 m_labelHasBeenSet = true;
66 m_label = std::forward<LabelT>(value);
67 }
68 template <typename LabelT = Aws::String>
70 SetLabel(std::forward<LabelT>(value));
71 return *this;
72 }
74 private:
75 Aws::String m_pattern;
76
77 Aws::String m_label;
78 bool m_patternHasBeenSet = false;
79 bool m_labelHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace ElasticBeanstalk
84} // namespace Aws
OptionRestrictionRegex & WithLabel(LabelT &&value)
AWS_ELASTICBEANSTALK_API OptionRestrictionRegex & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICBEANSTALK_API OptionRestrictionRegex(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICBEANSTALK_API OptionRestrictionRegex()=default
OptionRestrictionRegex & WithPattern(PatternT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream