AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetHttpCode(const Aws::String& value) { m_httpCodeHasBeenSet = true; m_httpCode = value; }
58 inline void SetHttpCode(Aws::String&& value) { m_httpCodeHasBeenSet = true; m_httpCode = std::move(value); }
59 inline void SetHttpCode(const char* value) { m_httpCodeHasBeenSet = true; m_httpCode.assign(value); }
60 inline Matcher& WithHttpCode(const Aws::String& value) { SetHttpCode(value); return *this;}
61 inline Matcher& WithHttpCode(Aws::String&& value) { SetHttpCode(std::move(value)); return *this;}
62 inline Matcher& WithHttpCode(const char* value) { SetHttpCode(value); return *this;}
64
66
71 inline const Aws::String& GetGrpcCode() const{ return m_grpcCode; }
72 inline bool GrpcCodeHasBeenSet() const { return m_grpcCodeHasBeenSet; }
73 inline void SetGrpcCode(const Aws::String& value) { m_grpcCodeHasBeenSet = true; m_grpcCode = value; }
74 inline void SetGrpcCode(Aws::String&& value) { m_grpcCodeHasBeenSet = true; m_grpcCode = std::move(value); }
75 inline void SetGrpcCode(const char* value) { m_grpcCodeHasBeenSet = true; m_grpcCode.assign(value); }
76 inline Matcher& WithGrpcCode(const Aws::String& value) { SetGrpcCode(value); return *this;}
77 inline Matcher& WithGrpcCode(Aws::String&& value) { SetGrpcCode(std::move(value)); return *this;}
78 inline Matcher& WithGrpcCode(const char* value) { SetGrpcCode(value); return *this;}
80 private:
81
82 Aws::String m_httpCode;
83 bool m_httpCodeHasBeenSet = false;
84
85 Aws::String m_grpcCode;
86 bool m_grpcCodeHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace ElasticLoadBalancingv2
91} // namespace Aws
Matcher & WithHttpCode(const char *value)
Definition Matcher.h:62
void SetHttpCode(const Aws::String &value)
Definition Matcher.h:57
void SetGrpcCode(Aws::String &&value)
Definition Matcher.h:74
AWS_ELASTICLOADBALANCINGV2_API Matcher()
Matcher & WithGrpcCode(const char *value)
Definition Matcher.h:78
AWS_ELASTICLOADBALANCINGV2_API Matcher & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Matcher & WithGrpcCode(const Aws::String &value)
Definition Matcher.h:76
Matcher & WithHttpCode(Aws::String &&value)
Definition Matcher.h:61
void SetGrpcCode(const char *value)
Definition Matcher.h:75
const Aws::String & GetGrpcCode() const
Definition Matcher.h:71
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetGrpcCode(const Aws::String &value)
Definition Matcher.h:73
void SetHttpCode(const char *value)
Definition Matcher.h:59
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
Matcher & WithHttpCode(const Aws::String &value)
Definition Matcher.h:60
AWS_ELASTICLOADBALANCINGV2_API Matcher(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetHttpCode(Aws::String &&value)
Definition Matcher.h:58
Matcher & WithGrpcCode(Aws::String &&value)
Definition Matcher.h:77
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream