AWS SDK for C++  1.9.123
AWS SDK for C++
HttpPathMatch.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace AppMesh
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetExact() const{ return m_exact; }
45 
49  inline bool ExactHasBeenSet() const { return m_exactHasBeenSet; }
50 
54  inline void SetExact(const Aws::String& value) { m_exactHasBeenSet = true; m_exact = value; }
55 
59  inline void SetExact(Aws::String&& value) { m_exactHasBeenSet = true; m_exact = std::move(value); }
60 
64  inline void SetExact(const char* value) { m_exactHasBeenSet = true; m_exact.assign(value); }
65 
69  inline HttpPathMatch& WithExact(const Aws::String& value) { SetExact(value); return *this;}
70 
74  inline HttpPathMatch& WithExact(Aws::String&& value) { SetExact(std::move(value)); return *this;}
75 
79  inline HttpPathMatch& WithExact(const char* value) { SetExact(value); return *this;}
80 
81 
85  inline const Aws::String& GetRegex() const{ return m_regex; }
86 
90  inline bool RegexHasBeenSet() const { return m_regexHasBeenSet; }
91 
95  inline void SetRegex(const Aws::String& value) { m_regexHasBeenSet = true; m_regex = value; }
96 
100  inline void SetRegex(Aws::String&& value) { m_regexHasBeenSet = true; m_regex = std::move(value); }
101 
105  inline void SetRegex(const char* value) { m_regexHasBeenSet = true; m_regex.assign(value); }
106 
110  inline HttpPathMatch& WithRegex(const Aws::String& value) { SetRegex(value); return *this;}
111 
115  inline HttpPathMatch& WithRegex(Aws::String&& value) { SetRegex(std::move(value)); return *this;}
116 
120  inline HttpPathMatch& WithRegex(const char* value) { SetRegex(value); return *this;}
121 
122  private:
123 
124  Aws::String m_exact;
125  bool m_exactHasBeenSet;
126 
127  Aws::String m_regex;
128  bool m_regexHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace AppMesh
133 } // namespace Aws
Aws::AppMesh::Model::HttpPathMatch
Definition: HttpPathMatch.h:33
Aws::AppMesh::Model::HttpPathMatch::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppMesh::Model::HttpPathMatch::HttpPathMatch
HttpPathMatch()
Aws::AppMesh::Model::HttpPathMatch::WithRegex
HttpPathMatch & WithRegex(Aws::String &&value)
Definition: HttpPathMatch.h:115
Aws::AppMesh::Model::HttpPathMatch::WithRegex
HttpPathMatch & WithRegex(const char *value)
Definition: HttpPathMatch.h:120
Aws::AppMesh::Model::HttpPathMatch::WithRegex
HttpPathMatch & WithRegex(const Aws::String &value)
Definition: HttpPathMatch.h:110
AppMesh_EXPORTS.h
Aws::AppMesh::Model::HttpPathMatch::GetExact
const Aws::String & GetExact() const
Definition: HttpPathMatch.h:44
Aws::AppMesh::Model::HttpPathMatch::HttpPathMatch
HttpPathMatch(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::HttpPathMatch::GetRegex
const Aws::String & GetRegex() const
Definition: HttpPathMatch.h:85
Aws::AppMesh::Model::HttpPathMatch::SetExact
void SetExact(const Aws::String &value)
Definition: HttpPathMatch.h:54
Aws::AppMesh::Model::HttpPathMatch::SetRegex
void SetRegex(const Aws::String &value)
Definition: HttpPathMatch.h:95
Aws::AppMesh::Model::HttpPathMatch::SetRegex
void SetRegex(const char *value)
Definition: HttpPathMatch.h:105
Aws::AppMesh::Model::HttpPathMatch::WithExact
HttpPathMatch & WithExact(Aws::String &&value)
Definition: HttpPathMatch.h:74
Aws::AppMesh::Model::HttpPathMatch::WithExact
HttpPathMatch & WithExact(const Aws::String &value)
Definition: HttpPathMatch.h:69
Aws::AppMesh::Model::HttpPathMatch::SetExact
void SetExact(Aws::String &&value)
Definition: HttpPathMatch.h:59
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AppMesh::Model::HttpPathMatch::SetExact
void SetExact(const char *value)
Definition: HttpPathMatch.h:64
Aws::AppMesh::Model::HttpPathMatch::operator=
HttpPathMatch & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::HttpPathMatch::SetRegex
void SetRegex(Aws::String &&value)
Definition: HttpPathMatch.h:100
Aws::AppMesh::Model::HttpPathMatch::RegexHasBeenSet
bool RegexHasBeenSet() const
Definition: HttpPathMatch.h:90
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::HttpPathMatch::ExactHasBeenSet
bool ExactHasBeenSet() const
Definition: HttpPathMatch.h:49
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppMesh::Model::HttpPathMatch::WithExact
HttpPathMatch & WithExact(const char *value)
Definition: HttpPathMatch.h:79
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28