AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
OptionRestrictionRegex.h
1
6#pragma once
7#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.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 ElasticBeanstalk
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_ELASTICBEANSTALK_API OptionRestrictionRegex() = default;
36 AWS_ELASTICBEANSTALK_API OptionRestrictionRegex(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_ELASTICBEANSTALK_API OptionRestrictionRegex& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
48 inline const Aws::String& GetPattern() const { return m_pattern; }
49 inline bool PatternHasBeenSet() const { return m_patternHasBeenSet; }
50 template<typename PatternT = Aws::String>
51 void SetPattern(PatternT&& value) { m_patternHasBeenSet = true; m_pattern = std::forward<PatternT>(value); }
52 template<typename PatternT = Aws::String>
53 OptionRestrictionRegex& WithPattern(PatternT&& value) { SetPattern(std::forward<PatternT>(value)); return *this;}
55
57
60 inline const Aws::String& GetLabel() const { return m_label; }
61 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
62 template<typename LabelT = Aws::String>
63 void SetLabel(LabelT&& value) { m_labelHasBeenSet = true; m_label = std::forward<LabelT>(value); }
64 template<typename LabelT = Aws::String>
65 OptionRestrictionRegex& WithLabel(LabelT&& value) { SetLabel(std::forward<LabelT>(value)); return *this;}
67 private:
68
69 Aws::String m_pattern;
70 bool m_patternHasBeenSet = false;
71
72 Aws::String m_label;
73 bool m_labelHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace ElasticBeanstalk
78} // 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