AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Matcher.h
1
6#pragma once
7#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_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 ElasticLoadBalancingv2
22{
23namespace Model
24{
25
33 class Matcher
34 {
35 public:
36 AWS_ELASTICLOADBALANCINGV2_API Matcher() = default;
37 AWS_ELASTICLOADBALANCINGV2_API Matcher(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_ELASTICLOADBALANCINGV2_API Matcher& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
55 inline const Aws::String& GetHttpCode() const { return m_httpCode; }
56 inline bool HttpCodeHasBeenSet() const { return m_httpCodeHasBeenSet; }
57 template<typename HttpCodeT = Aws::String>
58 void SetHttpCode(HttpCodeT&& value) { m_httpCodeHasBeenSet = true; m_httpCode = std::forward<HttpCodeT>(value); }
59 template<typename HttpCodeT = Aws::String>
60 Matcher& WithHttpCode(HttpCodeT&& value) { SetHttpCode(std::forward<HttpCodeT>(value)); return *this;}
62
64
69 inline const Aws::String& GetGrpcCode() const { return m_grpcCode; }
70 inline bool GrpcCodeHasBeenSet() const { return m_grpcCodeHasBeenSet; }
71 template<typename GrpcCodeT = Aws::String>
72 void SetGrpcCode(GrpcCodeT&& value) { m_grpcCodeHasBeenSet = true; m_grpcCode = std::forward<GrpcCodeT>(value); }
73 template<typename GrpcCodeT = Aws::String>
74 Matcher& WithGrpcCode(GrpcCodeT&& value) { SetGrpcCode(std::forward<GrpcCodeT>(value)); return *this;}
76 private:
77
78 Aws::String m_httpCode;
79 bool m_httpCodeHasBeenSet = false;
80
81 Aws::String m_grpcCode;
82 bool m_grpcCodeHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace ElasticLoadBalancingv2
87} // namespace Aws
Matcher & WithGrpcCode(GrpcCodeT &&value)
Definition Matcher.h:74
AWS_ELASTICLOADBALANCINGV2_API Matcher()=default
AWS_ELASTICLOADBALANCINGV2_API Matcher & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Matcher & WithHttpCode(HttpCodeT &&value)
Definition Matcher.h:60
const Aws::String & GetGrpcCode() const
Definition Matcher.h:69
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetHttpCode() const
Definition Matcher.h:55
void SetGrpcCode(GrpcCodeT &&value)
Definition Matcher.h:72
AWS_ELASTICLOADBALANCINGV2_API Matcher(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetHttpCode(HttpCodeT &&value)
Definition Matcher.h:58
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream