AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename ExactT = Aws::String>
49 void SetExact(ExactT&& value) { m_exactHasBeenSet = true; m_exact = std::forward<ExactT>(value); }
50 template<typename ExactT = Aws::String>
51 GrpcMetadataMatchMethod& WithExact(ExactT&& value) { SetExact(std::forward<ExactT>(value)); return *this;}
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) { m_prefixHasBeenSet = true; m_prefix = std::forward<PrefixT>(value); }
62 template<typename PrefixT = Aws::String>
63 GrpcMetadataMatchMethod& WithPrefix(PrefixT&& value) { SetPrefix(std::forward<PrefixT>(value)); return *this;}
65
67
68 inline const MatchRange& GetRange() const { return m_range; }
69 inline bool RangeHasBeenSet() const { return m_rangeHasBeenSet; }
70 template<typename RangeT = MatchRange>
71 void SetRange(RangeT&& value) { m_rangeHasBeenSet = true; m_range = std::forward<RangeT>(value); }
72 template<typename RangeT = MatchRange>
73 GrpcMetadataMatchMethod& WithRange(RangeT&& value) { SetRange(std::forward<RangeT>(value)); return *this;}
75
77
80 inline const Aws::String& GetRegex() const { return m_regex; }
81 inline bool RegexHasBeenSet() const { return m_regexHasBeenSet; }
82 template<typename RegexT = Aws::String>
83 void SetRegex(RegexT&& value) { m_regexHasBeenSet = true; m_regex = std::forward<RegexT>(value); }
84 template<typename RegexT = Aws::String>
85 GrpcMetadataMatchMethod& WithRegex(RegexT&& value) { SetRegex(std::forward<RegexT>(value)); return *this;}
87
89
92 inline const Aws::String& GetSuffix() const { return m_suffix; }
93 inline bool SuffixHasBeenSet() const { return m_suffixHasBeenSet; }
94 template<typename SuffixT = Aws::String>
95 void SetSuffix(SuffixT&& value) { m_suffixHasBeenSet = true; m_suffix = std::forward<SuffixT>(value); }
96 template<typename SuffixT = Aws::String>
97 GrpcMetadataMatchMethod& WithSuffix(SuffixT&& value) { SetSuffix(std::forward<SuffixT>(value)); return *this;}
99 private:
100
101 Aws::String m_exact;
102 bool m_exactHasBeenSet = false;
103
104 Aws::String m_prefix;
105 bool m_prefixHasBeenSet = false;
106
107 MatchRange m_range;
108 bool m_rangeHasBeenSet = false;
109
110 Aws::String m_regex;
111 bool m_regexHasBeenSet = false;
112
113 Aws::String m_suffix;
114 bool m_suffixHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace AppMesh
119} // 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