AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AppMesh
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_APPMESH_API HttpGatewayRouteHeader() = default;
39 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline bool GetInvert() const { return m_invert; }
48 inline bool InvertHasBeenSet() const { return m_invertHasBeenSet; }
49 inline void SetInvert(bool value) { m_invertHasBeenSet = true; m_invert = value; }
50 inline HttpGatewayRouteHeader& WithInvert(bool value) { SetInvert(value); return *this;}
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) { m_matchHasBeenSet = true; m_match = std::forward<MatchT>(value); }
62 template<typename MatchT = HeaderMatchMethod>
63 HttpGatewayRouteHeader& WithMatch(MatchT&& value) { SetMatch(std::forward<MatchT>(value)); return *this;}
65
67
70 inline const Aws::String& GetName() const { return m_name; }
71 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
72 template<typename NameT = Aws::String>
73 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
74 template<typename NameT = Aws::String>
75 HttpGatewayRouteHeader& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
77 private:
78
79 bool m_invert{false};
80 bool m_invertHasBeenSet = false;
81
82 HeaderMatchMethod m_match;
83 bool m_matchHasBeenSet = false;
84
85 Aws::String m_name;
86 bool m_nameHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace AppMesh
91} // 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