AWS SDK for C++

AWS SDK for C++ Version 1.11.755

Loading...
Searching...
No Matches
GrpcGatewayRouteMetadata.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/appmesh/model/GrpcMetadataMatchMethod.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 GrpcGatewayRouteMetadata() = default;
34 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline bool GetInvert() const { return m_invert; }
42 inline bool InvertHasBeenSet() const { return m_invertHasBeenSet; }
43 inline void SetInvert(bool value) {
44 m_invertHasBeenSet = true;
45 m_invert = value;
46 }
48 SetInvert(value);
49 return *this;
50 }
52
54
57 inline const GrpcMetadataMatchMethod& GetMatch() const { return m_match; }
58 inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; }
59 template <typename MatchT = GrpcMetadataMatchMethod>
60 void SetMatch(MatchT&& value) {
61 m_matchHasBeenSet = true;
62 m_match = std::forward<MatchT>(value);
63 }
64 template <typename MatchT = GrpcMetadataMatchMethod>
66 SetMatch(std::forward<MatchT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetName() const { return m_name; }
76 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
77 template <typename NameT = Aws::String>
78 void SetName(NameT&& value) {
79 m_nameHasBeenSet = true;
80 m_name = std::forward<NameT>(value);
81 }
82 template <typename NameT = Aws::String>
84 SetName(std::forward<NameT>(value));
85 return *this;
86 }
88 private:
89 bool m_invert{false};
90
91 GrpcMetadataMatchMethod m_match;
92
93 Aws::String m_name;
94 bool m_invertHasBeenSet = false;
95 bool m_matchHasBeenSet = false;
96 bool m_nameHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace AppMesh
101} // namespace Aws
GrpcGatewayRouteMetadata & WithMatch(MatchT &&value)
GrpcGatewayRouteMetadata & WithInvert(bool value)
AWS_APPMESH_API GrpcGatewayRouteMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
const GrpcMetadataMatchMethod & GetMatch() const
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
GrpcGatewayRouteMetadata & WithName(NameT &&value)
AWS_APPMESH_API GrpcGatewayRouteMetadata()=default
AWS_APPMESH_API GrpcGatewayRouteMetadata(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue