AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
GrpcMetadataMatchMethod.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/appmesh/model/MatchRange.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AppMesh {
21namespace Model {
22
30 public:
31 AWS_APPMESH_API GrpcMetadataMatchMethod() = default;
34 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetExact() const { return m_exact; }
41 inline bool ExactHasBeenSet() const { return m_exactHasBeenSet; }
42 template <typename ExactT = Aws::String>
43 void SetExact(ExactT&& value) {
44 m_exactHasBeenSet = true;
45 m_exact = std::forward<ExactT>(value);
46 }
47 template <typename ExactT = Aws::String>
49 SetExact(std::forward<ExactT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetPrefix() const { return m_prefix; }
59 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
60 template <typename PrefixT = Aws::String>
61 void SetPrefix(PrefixT&& value) {
62 m_prefixHasBeenSet = true;
63 m_prefix = std::forward<PrefixT>(value);
64 }
65 template <typename PrefixT = Aws::String>
67 SetPrefix(std::forward<PrefixT>(value));
68 return *this;
69 }
71
73
74 inline const MatchRange& GetRange() const { return m_range; }
75 inline bool RangeHasBeenSet() const { return m_rangeHasBeenSet; }
76 template <typename RangeT = MatchRange>
77 void SetRange(RangeT&& value) {
78 m_rangeHasBeenSet = true;
79 m_range = std::forward<RangeT>(value);
80 }
81 template <typename RangeT = MatchRange>
83 SetRange(std::forward<RangeT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetRegex() const { return m_regex; }
93 inline bool RegexHasBeenSet() const { return m_regexHasBeenSet; }
94 template <typename RegexT = Aws::String>
95 void SetRegex(RegexT&& value) {
96 m_regexHasBeenSet = true;
97 m_regex = std::forward<RegexT>(value);
98 }
99 template <typename RegexT = Aws::String>
101 SetRegex(std::forward<RegexT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetSuffix() const { return m_suffix; }
111 inline bool SuffixHasBeenSet() const { return m_suffixHasBeenSet; }
112 template <typename SuffixT = Aws::String>
113 void SetSuffix(SuffixT&& value) {
114 m_suffixHasBeenSet = true;
115 m_suffix = std::forward<SuffixT>(value);
116 }
117 template <typename SuffixT = Aws::String>
119 SetSuffix(std::forward<SuffixT>(value));
120 return *this;
121 }
123 private:
124 Aws::String m_exact;
125
126 Aws::String m_prefix;
127
128 MatchRange m_range;
129
130 Aws::String m_regex;
131
132 Aws::String m_suffix;
133 bool m_exactHasBeenSet = false;
134 bool m_prefixHasBeenSet = false;
135 bool m_rangeHasBeenSet = false;
136 bool m_regexHasBeenSet = false;
137 bool m_suffixHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace AppMesh
142} // namespace Aws
AWS_APPMESH_API GrpcMetadataMatchMethod()=default
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
GrpcMetadataMatchMethod & WithPrefix(PrefixT &&value)
GrpcMetadataMatchMethod & WithSuffix(SuffixT &&value)
AWS_APPMESH_API GrpcMetadataMatchMethod & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMESH_API GrpcMetadataMatchMethod(Aws::Utils::Json::JsonView jsonValue)
GrpcMetadataMatchMethod & WithRegex(RegexT &&value)
GrpcMetadataMatchMethod & WithExact(ExactT &&value)
GrpcMetadataMatchMethod & WithRange(RangeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue