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>
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>>
53 template<
typename MetadataT = GrpcRouteMetadata>
54 GrpcRouteMatch&
AddMetadata(MetadataT&& value) { m_metadataHasBeenSet =
true; m_metadata.emplace_back(std::forward<MetadataT>(value));
return *
this; }
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>
74 inline int GetPort()
const {
return m_port; }
76 inline void SetPort(
int value) { m_portHasBeenSet =
true; m_port = value; }
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>
95 bool m_metadataHasBeenSet =
false;
98 bool m_methodNameHasBeenSet =
false;
101 bool m_portHasBeenSet =
false;
104 bool m_serviceNameHasBeenSet =
false;
void SetMethodName(MethodNameT &&value)
bool MethodNameHasBeenSet() const
bool ServiceNameHasBeenSet() const
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)
bool MetadataHasBeenSet() const
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
bool PortHasBeenSet() 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