AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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#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 GrpcGatewayRouteMetadata();
39 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline bool GetInvert() const{ return m_invert; }
48 inline bool InvertHasBeenSet() const { return m_invertHasBeenSet; }
49 inline void SetInvert(bool value) { m_invertHasBeenSet = true; m_invert = value; }
50 inline GrpcGatewayRouteMetadata& WithInvert(bool value) { SetInvert(value); return *this;}
52
54
57 inline const GrpcMetadataMatchMethod& GetMatch() const{ return m_match; }
58 inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; }
59 inline void SetMatch(const GrpcMetadataMatchMethod& value) { m_matchHasBeenSet = true; m_match = value; }
60 inline void SetMatch(GrpcMetadataMatchMethod&& value) { m_matchHasBeenSet = true; m_match = std::move(value); }
61 inline GrpcGatewayRouteMetadata& WithMatch(const GrpcMetadataMatchMethod& value) { SetMatch(value); return *this;}
62 inline GrpcGatewayRouteMetadata& WithMatch(GrpcMetadataMatchMethod&& value) { SetMatch(std::move(value)); return *this;}
64
66
69 inline const Aws::String& GetName() const{ return m_name; }
70 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
71 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
72 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
73 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
74 inline GrpcGatewayRouteMetadata& WithName(const Aws::String& value) { SetName(value); return *this;}
75 inline GrpcGatewayRouteMetadata& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
76 inline GrpcGatewayRouteMetadata& WithName(const char* value) { SetName(value); return *this;}
78 private:
79
80 bool m_invert;
81 bool m_invertHasBeenSet = false;
82
84 bool m_matchHasBeenSet = false;
85
86 Aws::String m_name;
87 bool m_nameHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace AppMesh
92} // namespace Aws
GrpcGatewayRouteMetadata & WithMatch(GrpcMetadataMatchMethod &&value)
GrpcGatewayRouteMetadata & WithInvert(bool value)
void SetMatch(GrpcMetadataMatchMethod &&value)
AWS_APPMESH_API GrpcGatewayRouteMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
GrpcGatewayRouteMetadata & WithName(const Aws::String &value)
void SetMatch(const GrpcMetadataMatchMethod &value)
const GrpcMetadataMatchMethod & GetMatch() const
GrpcGatewayRouteMetadata & WithMatch(const GrpcMetadataMatchMethod &value)
GrpcGatewayRouteMetadata & WithName(const char *value)
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
GrpcGatewayRouteMetadata & WithName(Aws::String &&value)
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