AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
HeaderMatchMethod.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appmesh/model/MatchRange.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 HeaderMatchMethod();
39 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetExact() const{ return m_exact; }
47 inline bool ExactHasBeenSet() const { return m_exactHasBeenSet; }
48 inline void SetExact(const Aws::String& value) { m_exactHasBeenSet = true; m_exact = value; }
49 inline void SetExact(Aws::String&& value) { m_exactHasBeenSet = true; m_exact = std::move(value); }
50 inline void SetExact(const char* value) { m_exactHasBeenSet = true; m_exact.assign(value); }
51 inline HeaderMatchMethod& WithExact(const Aws::String& value) { SetExact(value); return *this;}
52 inline HeaderMatchMethod& WithExact(Aws::String&& value) { SetExact(std::move(value)); return *this;}
53 inline HeaderMatchMethod& WithExact(const char* value) { SetExact(value); return *this;}
55
57
60 inline const Aws::String& GetPrefix() const{ return m_prefix; }
61 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
62 inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
63 inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
64 inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
65 inline HeaderMatchMethod& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
66 inline HeaderMatchMethod& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
67 inline HeaderMatchMethod& WithPrefix(const char* value) { SetPrefix(value); return *this;}
69
71
74 inline const MatchRange& GetRange() const{ return m_range; }
75 inline bool RangeHasBeenSet() const { return m_rangeHasBeenSet; }
76 inline void SetRange(const MatchRange& value) { m_rangeHasBeenSet = true; m_range = value; }
77 inline void SetRange(MatchRange&& value) { m_rangeHasBeenSet = true; m_range = std::move(value); }
78 inline HeaderMatchMethod& WithRange(const MatchRange& value) { SetRange(value); return *this;}
79 inline HeaderMatchMethod& WithRange(MatchRange&& value) { SetRange(std::move(value)); return *this;}
81
83
86 inline const Aws::String& GetRegex() const{ return m_regex; }
87 inline bool RegexHasBeenSet() const { return m_regexHasBeenSet; }
88 inline void SetRegex(const Aws::String& value) { m_regexHasBeenSet = true; m_regex = value; }
89 inline void SetRegex(Aws::String&& value) { m_regexHasBeenSet = true; m_regex = std::move(value); }
90 inline void SetRegex(const char* value) { m_regexHasBeenSet = true; m_regex.assign(value); }
91 inline HeaderMatchMethod& WithRegex(const Aws::String& value) { SetRegex(value); return *this;}
92 inline HeaderMatchMethod& WithRegex(Aws::String&& value) { SetRegex(std::move(value)); return *this;}
93 inline HeaderMatchMethod& WithRegex(const char* value) { SetRegex(value); return *this;}
95
97
100 inline const Aws::String& GetSuffix() const{ return m_suffix; }
101 inline bool SuffixHasBeenSet() const { return m_suffixHasBeenSet; }
102 inline void SetSuffix(const Aws::String& value) { m_suffixHasBeenSet = true; m_suffix = value; }
103 inline void SetSuffix(Aws::String&& value) { m_suffixHasBeenSet = true; m_suffix = std::move(value); }
104 inline void SetSuffix(const char* value) { m_suffixHasBeenSet = true; m_suffix.assign(value); }
105 inline HeaderMatchMethod& WithSuffix(const Aws::String& value) { SetSuffix(value); return *this;}
106 inline HeaderMatchMethod& WithSuffix(Aws::String&& value) { SetSuffix(std::move(value)); return *this;}
107 inline HeaderMatchMethod& WithSuffix(const char* value) { SetSuffix(value); return *this;}
109 private:
110
111 Aws::String m_exact;
112 bool m_exactHasBeenSet = false;
113
114 Aws::String m_prefix;
115 bool m_prefixHasBeenSet = false;
116
117 MatchRange m_range;
118 bool m_rangeHasBeenSet = false;
119
120 Aws::String m_regex;
121 bool m_regexHasBeenSet = false;
122
123 Aws::String m_suffix;
124 bool m_suffixHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace AppMesh
129} // namespace Aws
const Aws::String & GetRegex() const
HeaderMatchMethod & WithSuffix(const Aws::String &value)
HeaderMatchMethod & WithExact(Aws::String &&value)
HeaderMatchMethod & WithRange(MatchRange &&value)
const Aws::String & GetPrefix() const
AWS_APPMESH_API HeaderMatchMethod & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetExact(const Aws::String &value)
const Aws::String & GetSuffix() const
void SetSuffix(const Aws::String &value)
void SetPrefix(const Aws::String &value)
HeaderMatchMethod & WithPrefix(Aws::String &&value)
HeaderMatchMethod & WithRange(const MatchRange &value)
HeaderMatchMethod & WithRegex(const Aws::String &value)
HeaderMatchMethod & WithExact(const Aws::String &value)
HeaderMatchMethod & WithPrefix(const char *value)
HeaderMatchMethod & WithPrefix(const Aws::String &value)
HeaderMatchMethod & WithExact(const char *value)
AWS_APPMESH_API HeaderMatchMethod(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetExact() const
HeaderMatchMethod & WithSuffix(const char *value)
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
HeaderMatchMethod & WithRegex(const char *value)
void SetRange(const MatchRange &value)
HeaderMatchMethod & WithRegex(Aws::String &&value)
void SetRegex(const Aws::String &value)
HeaderMatchMethod & WithSuffix(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue