AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
HttpPathMatch.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace AppMesh {
20namespace Model {
21
29 public:
30 AWS_APPMESH_API HttpPathMatch() = default;
31 AWS_APPMESH_API HttpPathMatch(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetExact() const { return m_exact; }
40 inline bool ExactHasBeenSet() const { return m_exactHasBeenSet; }
41 template <typename ExactT = Aws::String>
42 void SetExact(ExactT&& value) {
43 m_exactHasBeenSet = true;
44 m_exact = std::forward<ExactT>(value);
45 }
46 template <typename ExactT = Aws::String>
47 HttpPathMatch& WithExact(ExactT&& value) {
48 SetExact(std::forward<ExactT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetRegex() const { return m_regex; }
58 inline bool RegexHasBeenSet() const { return m_regexHasBeenSet; }
59 template <typename RegexT = Aws::String>
60 void SetRegex(RegexT&& value) {
61 m_regexHasBeenSet = true;
62 m_regex = std::forward<RegexT>(value);
63 }
64 template <typename RegexT = Aws::String>
65 HttpPathMatch& WithRegex(RegexT&& value) {
66 SetRegex(std::forward<RegexT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_exact;
72
73 Aws::String m_regex;
74 bool m_exactHasBeenSet = false;
75 bool m_regexHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace AppMesh
80} // namespace Aws
const Aws::String & GetRegex() const
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPMESH_API HttpPathMatch()=default
HttpPathMatch & WithExact(ExactT &&value)
HttpPathMatch & WithRegex(RegexT &&value)
AWS_APPMESH_API HttpPathMatch & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMESH_API HttpPathMatch(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetExact() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue