AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
HttpRouteHeader.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 HttpRouteHeader() = default;
32 AWS_APPMESH_API HttpRouteHeader(Aws::Utils::Json::JsonView jsonValue);
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 HttpRouteHeader& WithInvert(bool value) {
48 SetInvert(value);
49 return *this;
50 }
52
54
57 inline const HeaderMatchMethod& GetMatch() const { return m_match; }
58 inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; }
59 template <typename MatchT = HeaderMatchMethod>
60 void SetMatch(MatchT&& value) {
61 m_matchHasBeenSet = true;
62 m_match = std::forward<MatchT>(value);
63 }
64 template <typename MatchT = HeaderMatchMethod>
65 HttpRouteHeader& WithMatch(MatchT&& value) {
66 SetMatch(std::forward<MatchT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetName() const { return m_name; }
76 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
77 template <typename NameT = Aws::String>
78 void SetName(NameT&& value) {
79 m_nameHasBeenSet = true;
80 m_name = std::forward<NameT>(value);
81 }
82 template <typename NameT = Aws::String>
83 HttpRouteHeader& WithName(NameT&& value) {
84 SetName(std::forward<NameT>(value));
85 return *this;
86 }
88 private:
89 bool m_invert{false};
90
91 HeaderMatchMethod m_match;
92
93 Aws::String m_name;
94 bool m_invertHasBeenSet = false;
95 bool m_matchHasBeenSet = false;
96 bool m_nameHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace AppMesh
101} // namespace Aws
AWS_APPMESH_API HttpRouteHeader()=default
AWS_APPMESH_API HttpRouteHeader & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetName() const
AWS_APPMESH_API HttpRouteHeader(Aws::Utils::Json::JsonView jsonValue)
HttpRouteHeader & WithMatch(MatchT &&value)
HttpRouteHeader & WithInvert(bool value)
HttpRouteHeader & WithName(NameT &&value)
const HeaderMatchMethod & GetMatch() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue