AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
RewriteConfig.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/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace ElasticLoadBalancingv2 {
20namespace Model {
21
29 public:
30 AWS_ELASTICLOADBALANCINGV2_API RewriteConfig() = default;
31 AWS_ELASTICLOADBALANCINGV2_API RewriteConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_ELASTICLOADBALANCINGV2_API RewriteConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
35 const char* locationValue) const;
36 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
43 inline const Aws::String& GetRegex() const { return m_regex; }
44 inline bool RegexHasBeenSet() const { return m_regexHasBeenSet; }
45 template <typename RegexT = Aws::String>
46 void SetRegex(RegexT&& value) {
47 m_regexHasBeenSet = true;
48 m_regex = std::forward<RegexT>(value);
49 }
50 template <typename RegexT = Aws::String>
51 RewriteConfig& WithRegex(RegexT&& value) {
52 SetRegex(std::forward<RegexT>(value));
53 return *this;
54 }
56
58
63 inline const Aws::String& GetReplace() const { return m_replace; }
64 inline bool ReplaceHasBeenSet() const { return m_replaceHasBeenSet; }
65 template <typename ReplaceT = Aws::String>
66 void SetReplace(ReplaceT&& value) {
67 m_replaceHasBeenSet = true;
68 m_replace = std::forward<ReplaceT>(value);
69 }
70 template <typename ReplaceT = Aws::String>
71 RewriteConfig& WithReplace(ReplaceT&& value) {
72 SetReplace(std::forward<ReplaceT>(value));
73 return *this;
74 }
76 private:
77 Aws::String m_regex;
78
79 Aws::String m_replace;
80 bool m_regexHasBeenSet = false;
81 bool m_replaceHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace ElasticLoadBalancingv2
86} // namespace Aws
RewriteConfig & WithReplace(ReplaceT &&value)
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_ELASTICLOADBALANCINGV2_API RewriteConfig()=default
AWS_ELASTICLOADBALANCINGV2_API RewriteConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
RewriteConfig & WithRegex(RegexT &&value)
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICLOADBALANCINGV2_API RewriteConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream