AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GrpcRouteMatch.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/appmesh/model/GrpcRouteMetadata.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AppMesh
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_APPMESH_API GrpcRouteMatch() = default;
38 AWS_APPMESH_API GrpcRouteMatch(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Vector<GrpcRouteMetadata>& GetMetadata() const { return m_metadata; }
48 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
49 template<typename MetadataT = Aws::Vector<GrpcRouteMetadata>>
50 void SetMetadata(MetadataT&& value) { m_metadataHasBeenSet = true; m_metadata = std::forward<MetadataT>(value); }
51 template<typename MetadataT = Aws::Vector<GrpcRouteMetadata>>
52 GrpcRouteMatch& WithMetadata(MetadataT&& value) { SetMetadata(std::forward<MetadataT>(value)); return *this;}
53 template<typename MetadataT = GrpcRouteMetadata>
54 GrpcRouteMatch& AddMetadata(MetadataT&& value) { m_metadataHasBeenSet = true; m_metadata.emplace_back(std::forward<MetadataT>(value)); return *this; }
56
58
62 inline const Aws::String& GetMethodName() const { return m_methodName; }
63 inline bool MethodNameHasBeenSet() const { return m_methodNameHasBeenSet; }
64 template<typename MethodNameT = Aws::String>
65 void SetMethodName(MethodNameT&& value) { m_methodNameHasBeenSet = true; m_methodName = std::forward<MethodNameT>(value); }
66 template<typename MethodNameT = Aws::String>
67 GrpcRouteMatch& WithMethodName(MethodNameT&& value) { SetMethodName(std::forward<MethodNameT>(value)); return *this;}
69
71
74 inline int GetPort() const { return m_port; }
75 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
76 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
77 inline GrpcRouteMatch& WithPort(int value) { SetPort(value); return *this;}
79
81
85 inline const Aws::String& GetServiceName() const { return m_serviceName; }
86 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
87 template<typename ServiceNameT = Aws::String>
88 void SetServiceName(ServiceNameT&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::forward<ServiceNameT>(value); }
89 template<typename ServiceNameT = Aws::String>
90 GrpcRouteMatch& WithServiceName(ServiceNameT&& value) { SetServiceName(std::forward<ServiceNameT>(value)); return *this;}
92 private:
93
95 bool m_metadataHasBeenSet = false;
96
97 Aws::String m_methodName;
98 bool m_methodNameHasBeenSet = false;
99
100 int m_port{0};
101 bool m_portHasBeenSet = false;
102
103 Aws::String m_serviceName;
104 bool m_serviceNameHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace AppMesh
109} // namespace Aws
void SetMethodName(MethodNameT &&value)
AWS_APPMESH_API GrpcRouteMatch & operator=(Aws::Utils::Json::JsonView jsonValue)
GrpcRouteMatch & WithMethodName(MethodNameT &&value)
const Aws::String & GetMethodName() const
AWS_APPMESH_API GrpcRouteMatch(Aws::Utils::Json::JsonView jsonValue)
GrpcRouteMatch & AddMetadata(MetadataT &&value)
GrpcRouteMatch & WithServiceName(ServiceNameT &&value)
GrpcRouteMatch & WithMetadata(MetadataT &&value)
void SetServiceName(ServiceNameT &&value)
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetServiceName() const
const Aws::Vector< GrpcRouteMetadata > & GetMetadata() const
GrpcRouteMatch & WithPort(int value)
AWS_APPMESH_API GrpcRouteMatch()=default
void SetMetadata(MetadataT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue