AWS SDK for C++  1.9.123
AWS SDK for C++
HttpRouteHeader.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace AppMesh
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
46  inline bool GetInvert() const{ return m_invert; }
47 
52  inline bool InvertHasBeenSet() const { return m_invertHasBeenSet; }
53 
58  inline void SetInvert(bool value) { m_invertHasBeenSet = true; m_invert = value; }
59 
64  inline HttpRouteHeader& WithInvert(bool value) { SetInvert(value); return *this;}
65 
66 
70  inline const HeaderMatchMethod& GetMatch() const{ return m_match; }
71 
75  inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; }
76 
80  inline void SetMatch(const HeaderMatchMethod& value) { m_matchHasBeenSet = true; m_match = value; }
81 
85  inline void SetMatch(HeaderMatchMethod&& value) { m_matchHasBeenSet = true; m_match = std::move(value); }
86 
90  inline HttpRouteHeader& WithMatch(const HeaderMatchMethod& value) { SetMatch(value); return *this;}
91 
95  inline HttpRouteHeader& WithMatch(HeaderMatchMethod&& value) { SetMatch(std::move(value)); return *this;}
96 
97 
101  inline const Aws::String& GetName() const{ return m_name; }
102 
106  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
107 
111  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
112 
116  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
117 
121  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
122 
126  inline HttpRouteHeader& WithName(const Aws::String& value) { SetName(value); return *this;}
127 
131  inline HttpRouteHeader& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
132 
136  inline HttpRouteHeader& WithName(const char* value) { SetName(value); return *this;}
137 
138  private:
139 
140  bool m_invert;
141  bool m_invertHasBeenSet;
142 
143  HeaderMatchMethod m_match;
144  bool m_matchHasBeenSet;
145 
146  Aws::String m_name;
147  bool m_nameHasBeenSet;
148  };
149 
150 } // namespace Model
151 } // namespace AppMesh
152 } // namespace Aws
Aws::AppMesh::Model::HttpRouteHeader::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppMesh::Model::HttpRouteHeader::SetMatch
void SetMatch(const HeaderMatchMethod &value)
Definition: HttpRouteHeader.h:80
Aws::AppMesh::Model::HttpRouteHeader::MatchHasBeenSet
bool MatchHasBeenSet() const
Definition: HttpRouteHeader.h:75
Aws::AppMesh::Model::HttpRouteHeader::WithMatch
HttpRouteHeader & WithMatch(HeaderMatchMethod &&value)
Definition: HttpRouteHeader.h:95
Aws::AppMesh::Model::HttpRouteHeader::GetMatch
const HeaderMatchMethod & GetMatch() const
Definition: HttpRouteHeader.h:70
Aws::AppMesh::Model::HttpRouteHeader::GetInvert
bool GetInvert() const
Definition: HttpRouteHeader.h:46
Aws::AppMesh::Model::HttpRouteHeader
Definition: HttpRouteHeader.h:34
Aws::AppMesh::Model::HttpRouteHeader::HttpRouteHeader
HttpRouteHeader(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::HttpRouteHeader::HttpRouteHeader
HttpRouteHeader()
AppMesh_EXPORTS.h
Aws::AppMesh::Model::HttpRouteHeader::SetName
void SetName(const char *value)
Definition: HttpRouteHeader.h:121
Aws::AppMesh::Model::HttpRouteHeader::WithName
HttpRouteHeader & WithName(Aws::String &&value)
Definition: HttpRouteHeader.h:131
Aws::AppMesh::Model::HeaderMatchMethod
Definition: HeaderMatchMethod.h:34
Aws::AppMesh::Model::HttpRouteHeader::SetMatch
void SetMatch(HeaderMatchMethod &&value)
Definition: HttpRouteHeader.h:85
Aws::AppMesh::Model::HttpRouteHeader::operator=
HttpRouteHeader & operator=(Aws::Utils::Json::JsonView jsonValue)
HeaderMatchMethod.h
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::AppMesh::Model::HttpRouteHeader::NameHasBeenSet
bool NameHasBeenSet() const
Definition: HttpRouteHeader.h:106
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AppMesh::Model::HttpRouteHeader::WithName
HttpRouteHeader & WithName(const Aws::String &value)
Definition: HttpRouteHeader.h:126
Aws::AppMesh::Model::HttpRouteHeader::WithMatch
HttpRouteHeader & WithMatch(const HeaderMatchMethod &value)
Definition: HttpRouteHeader.h:90
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::HttpRouteHeader::GetName
const Aws::String & GetName() const
Definition: HttpRouteHeader.h:101
Aws::AppMesh::Model::HttpRouteHeader::SetName
void SetName(const Aws::String &value)
Definition: HttpRouteHeader.h:111
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppMesh::Model::HttpRouteHeader::InvertHasBeenSet
bool InvertHasBeenSet() const
Definition: HttpRouteHeader.h:52
Aws::AppMesh::Model::HttpRouteHeader::SetInvert
void SetInvert(bool value)
Definition: HttpRouteHeader.h:58
Aws::AppMesh::Model::HttpRouteHeader::WithName
HttpRouteHeader & WithName(const char *value)
Definition: HttpRouteHeader.h:136
Aws::AppMesh::Model::HttpRouteHeader::SetName
void SetName(Aws::String &&value)
Definition: HttpRouteHeader.h:116
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28
Aws::AppMesh::Model::HttpRouteHeader::WithInvert
HttpRouteHeader & WithInvert(bool value)
Definition: HttpRouteHeader.h:64