AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GrpcRouteMetadataMatchMethod.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:
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 GrpcRouteMetadataMatchMethod& WithExact(const Aws::String& value) { SetExact(value); return *this;}
52 inline GrpcRouteMetadataMatchMethod& WithExact(Aws::String&& value) { SetExact(std::move(value)); return *this;}
53 inline GrpcRouteMetadataMatchMethod& 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 GrpcRouteMetadataMatchMethod& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
66 inline GrpcRouteMetadataMatchMethod& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
67 inline GrpcRouteMetadataMatchMethod& 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 GrpcRouteMetadataMatchMethod& WithRange(const MatchRange& value) { SetRange(value); return *this;}
79 inline GrpcRouteMetadataMatchMethod& 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 GrpcRouteMetadataMatchMethod& WithRegex(const Aws::String& value) { SetRegex(value); return *this;}
92 inline GrpcRouteMetadataMatchMethod& WithRegex(Aws::String&& value) { SetRegex(std::move(value)); return *this;}
93 inline GrpcRouteMetadataMatchMethod& 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 GrpcRouteMetadataMatchMethod& WithSuffix(const Aws::String& value) { SetSuffix(value); return *this;}
106 inline GrpcRouteMetadataMatchMethod& WithSuffix(Aws::String&& value) { SetSuffix(std::move(value)); return *this;}
107 inline GrpcRouteMetadataMatchMethod& 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
GrpcRouteMetadataMatchMethod & WithPrefix(const Aws::String &value)
GrpcRouteMetadataMatchMethod & WithRegex(Aws::String &&value)
GrpcRouteMetadataMatchMethod & WithRegex(const Aws::String &value)
GrpcRouteMetadataMatchMethod & WithExact(Aws::String &&value)
GrpcRouteMetadataMatchMethod & WithPrefix(Aws::String &&value)
GrpcRouteMetadataMatchMethod & WithExact(const char *value)
GrpcRouteMetadataMatchMethod & WithSuffix(Aws::String &&value)
AWS_APPMESH_API GrpcRouteMetadataMatchMethod & operator=(Aws::Utils::Json::JsonView jsonValue)
GrpcRouteMetadataMatchMethod & WithRange(MatchRange &&value)
GrpcRouteMetadataMatchMethod & WithSuffix(const char *value)
GrpcRouteMetadataMatchMethod & WithPrefix(const char *value)
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
GrpcRouteMetadataMatchMethod & WithSuffix(const Aws::String &value)
AWS_APPMESH_API GrpcRouteMetadataMatchMethod(Aws::Utils::Json::JsonView jsonValue)
GrpcRouteMetadataMatchMethod & WithExact(const Aws::String &value)
GrpcRouteMetadataMatchMethod & WithRange(const MatchRange &value)
GrpcRouteMetadataMatchMethod & WithRegex(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue