AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GrpcMetadataMatchMethod.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 GrpcMetadataMatchMethod();
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 GrpcMetadataMatchMethod& WithExact(const Aws::String& value) { SetExact(value); return *this;}
52 inline GrpcMetadataMatchMethod& WithExact(Aws::String&& value) { SetExact(std::move(value)); return *this;}
53 inline GrpcMetadataMatchMethod& 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 GrpcMetadataMatchMethod& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
66 inline GrpcMetadataMatchMethod& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
67 inline GrpcMetadataMatchMethod& WithPrefix(const char* value) { SetPrefix(value); return *this;}
69
71
72 inline const MatchRange& GetRange() const{ return m_range; }
73 inline bool RangeHasBeenSet() const { return m_rangeHasBeenSet; }
74 inline void SetRange(const MatchRange& value) { m_rangeHasBeenSet = true; m_range = value; }
75 inline void SetRange(MatchRange&& value) { m_rangeHasBeenSet = true; m_range = std::move(value); }
76 inline GrpcMetadataMatchMethod& WithRange(const MatchRange& value) { SetRange(value); return *this;}
77 inline GrpcMetadataMatchMethod& WithRange(MatchRange&& value) { SetRange(std::move(value)); return *this;}
79
81
84 inline const Aws::String& GetRegex() const{ return m_regex; }
85 inline bool RegexHasBeenSet() const { return m_regexHasBeenSet; }
86 inline void SetRegex(const Aws::String& value) { m_regexHasBeenSet = true; m_regex = value; }
87 inline void SetRegex(Aws::String&& value) { m_regexHasBeenSet = true; m_regex = std::move(value); }
88 inline void SetRegex(const char* value) { m_regexHasBeenSet = true; m_regex.assign(value); }
89 inline GrpcMetadataMatchMethod& WithRegex(const Aws::String& value) { SetRegex(value); return *this;}
90 inline GrpcMetadataMatchMethod& WithRegex(Aws::String&& value) { SetRegex(std::move(value)); return *this;}
91 inline GrpcMetadataMatchMethod& WithRegex(const char* value) { SetRegex(value); return *this;}
93
95
98 inline const Aws::String& GetSuffix() const{ return m_suffix; }
99 inline bool SuffixHasBeenSet() const { return m_suffixHasBeenSet; }
100 inline void SetSuffix(const Aws::String& value) { m_suffixHasBeenSet = true; m_suffix = value; }
101 inline void SetSuffix(Aws::String&& value) { m_suffixHasBeenSet = true; m_suffix = std::move(value); }
102 inline void SetSuffix(const char* value) { m_suffixHasBeenSet = true; m_suffix.assign(value); }
103 inline GrpcMetadataMatchMethod& WithSuffix(const Aws::String& value) { SetSuffix(value); return *this;}
104 inline GrpcMetadataMatchMethod& WithSuffix(Aws::String&& value) { SetSuffix(std::move(value)); return *this;}
105 inline GrpcMetadataMatchMethod& WithSuffix(const char* value) { SetSuffix(value); return *this;}
107 private:
108
109 Aws::String m_exact;
110 bool m_exactHasBeenSet = false;
111
112 Aws::String m_prefix;
113 bool m_prefixHasBeenSet = false;
114
115 MatchRange m_range;
116 bool m_rangeHasBeenSet = false;
117
118 Aws::String m_regex;
119 bool m_regexHasBeenSet = false;
120
121 Aws::String m_suffix;
122 bool m_suffixHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace AppMesh
127} // namespace Aws
GrpcMetadataMatchMethod & WithRange(MatchRange &&value)
GrpcMetadataMatchMethod & WithPrefix(const char *value)
GrpcMetadataMatchMethod & WithExact(const char *value)
GrpcMetadataMatchMethod & WithExact(Aws::String &&value)
GrpcMetadataMatchMethod & WithSuffix(Aws::String &&value)
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
GrpcMetadataMatchMethod & WithRegex(const char *value)
GrpcMetadataMatchMethod & WithPrefix(Aws::String &&value)
GrpcMetadataMatchMethod & WithRegex(const Aws::String &value)
AWS_APPMESH_API GrpcMetadataMatchMethod & operator=(Aws::Utils::Json::JsonView jsonValue)
GrpcMetadataMatchMethod & WithSuffix(const Aws::String &value)
GrpcMetadataMatchMethod & WithPrefix(const Aws::String &value)
AWS_APPMESH_API GrpcMetadataMatchMethod(Aws::Utils::Json::JsonView jsonValue)
GrpcMetadataMatchMethod & WithSuffix(const char *value)
GrpcMetadataMatchMethod & WithRange(const MatchRange &value)
GrpcMetadataMatchMethod & WithExact(const Aws::String &value)
GrpcMetadataMatchMethod & WithRegex(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue