AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
HttpGatewayRouteHeader.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/appmesh/model/HeaderMatchMethod.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AppMesh {
21namespace Model {
22
30 public:
31 AWS_APPMESH_API HttpGatewayRouteHeader() = default;
34 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline bool GetInvert() const { return m_invert; }
42 inline bool InvertHasBeenSet() const { return m_invertHasBeenSet; }
43 inline void SetInvert(bool value) {
44 m_invertHasBeenSet = true;
45 m_invert = value;
46 }
47 inline HttpGatewayRouteHeader& WithInvert(bool value) {
48 SetInvert(value);
49 return *this;
50 }
52
54
58 inline const HeaderMatchMethod& GetMatch() const { return m_match; }
59 inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; }
60 template <typename MatchT = HeaderMatchMethod>
61 void SetMatch(MatchT&& value) {
62 m_matchHasBeenSet = true;
63 m_match = std::forward<MatchT>(value);
64 }
65 template <typename MatchT = HeaderMatchMethod>
67 SetMatch(std::forward<MatchT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetName() const { return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 template <typename NameT = Aws::String>
79 void SetName(NameT&& value) {
80 m_nameHasBeenSet = true;
81 m_name = std::forward<NameT>(value);
82 }
83 template <typename NameT = Aws::String>
85 SetName(std::forward<NameT>(value));
86 return *this;
87 }
89 private:
90 bool m_invert{false};
91
92 HeaderMatchMethod m_match;
93
94 Aws::String m_name;
95 bool m_invertHasBeenSet = false;
96 bool m_matchHasBeenSet = false;
97 bool m_nameHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace AppMesh
102} // namespace Aws
AWS_APPMESH_API HttpGatewayRouteHeader()=default
HttpGatewayRouteHeader & WithMatch(MatchT &&value)
AWS_APPMESH_API HttpGatewayRouteHeader(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMESH_API HttpGatewayRouteHeader & operator=(Aws::Utils::Json::JsonView jsonValue)
HttpGatewayRouteHeader & WithName(NameT &&value)
HttpGatewayRouteHeader & WithInvert(bool value)
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue