AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Matcher.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
29class Matcher {
30 public:
31 AWS_ELASTICLOADBALANCINGV2_API Matcher() = default;
32 AWS_ELASTICLOADBALANCINGV2_API Matcher(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_ELASTICLOADBALANCINGV2_API Matcher& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
36 const char* locationValue) const;
37 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
50 inline const Aws::String& GetHttpCode() const { return m_httpCode; }
51 inline bool HttpCodeHasBeenSet() const { return m_httpCodeHasBeenSet; }
52 template <typename HttpCodeT = Aws::String>
53 void SetHttpCode(HttpCodeT&& value) {
54 m_httpCodeHasBeenSet = true;
55 m_httpCode = std::forward<HttpCodeT>(value);
56 }
57 template <typename HttpCodeT = Aws::String>
58 Matcher& WithHttpCode(HttpCodeT&& value) {
59 SetHttpCode(std::forward<HttpCodeT>(value));
60 return *this;
61 }
63
65
70 inline const Aws::String& GetGrpcCode() const { return m_grpcCode; }
71 inline bool GrpcCodeHasBeenSet() const { return m_grpcCodeHasBeenSet; }
72 template <typename GrpcCodeT = Aws::String>
73 void SetGrpcCode(GrpcCodeT&& value) {
74 m_grpcCodeHasBeenSet = true;
75 m_grpcCode = std::forward<GrpcCodeT>(value);
76 }
77 template <typename GrpcCodeT = Aws::String>
78 Matcher& WithGrpcCode(GrpcCodeT&& value) {
79 SetGrpcCode(std::forward<GrpcCodeT>(value));
80 return *this;
81 }
83 private:
84 Aws::String m_httpCode;
85
86 Aws::String m_grpcCode;
87 bool m_httpCodeHasBeenSet = false;
88 bool m_grpcCodeHasBeenSet = false;
89};
90
91} // namespace Model
92} // namespace ElasticLoadBalancingv2
93} // namespace Aws
Matcher & WithGrpcCode(GrpcCodeT &&value)
Definition Matcher.h:78
AWS_ELASTICLOADBALANCINGV2_API Matcher()=default
AWS_ELASTICLOADBALANCINGV2_API Matcher & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Matcher & WithHttpCode(HttpCodeT &&value)
Definition Matcher.h:58
const Aws::String & GetGrpcCode() const
Definition Matcher.h:70
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:50
void SetGrpcCode(GrpcCodeT &&value)
Definition Matcher.h:73
AWS_ELASTICLOADBALANCINGV2_API Matcher(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetHttpCode(HttpCodeT &&value)
Definition Matcher.h:53
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream