AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GrpcGatewayRouteMatch.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/appmesh/model/GatewayRouteHostnameMatch.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/appmesh/model/GrpcGatewayRouteMetadata.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace AppMesh
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_APPMESH_API GrpcGatewayRouteMatch();
41 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const GatewayRouteHostnameMatch& GetHostname() const{ return m_hostname; }
49 inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; }
50 inline void SetHostname(const GatewayRouteHostnameMatch& value) { m_hostnameHasBeenSet = true; m_hostname = value; }
51 inline void SetHostname(GatewayRouteHostnameMatch&& value) { m_hostnameHasBeenSet = true; m_hostname = std::move(value); }
52 inline GrpcGatewayRouteMatch& WithHostname(const GatewayRouteHostnameMatch& value) { SetHostname(value); return *this;}
53 inline GrpcGatewayRouteMatch& WithHostname(GatewayRouteHostnameMatch&& value) { SetHostname(std::move(value)); return *this;}
55
57
60 inline const Aws::Vector<GrpcGatewayRouteMetadata>& GetMetadata() const{ return m_metadata; }
61 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
62 inline void SetMetadata(const Aws::Vector<GrpcGatewayRouteMetadata>& value) { m_metadataHasBeenSet = true; m_metadata = value; }
63 inline void SetMetadata(Aws::Vector<GrpcGatewayRouteMetadata>&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
65 inline GrpcGatewayRouteMatch& WithMetadata(Aws::Vector<GrpcGatewayRouteMetadata>&& value) { SetMetadata(std::move(value)); return *this;}
66 inline GrpcGatewayRouteMatch& AddMetadata(const GrpcGatewayRouteMetadata& value) { m_metadataHasBeenSet = true; m_metadata.push_back(value); return *this; }
67 inline GrpcGatewayRouteMatch& AddMetadata(GrpcGatewayRouteMetadata&& value) { m_metadataHasBeenSet = true; m_metadata.push_back(std::move(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 GrpcGatewayRouteMatch& 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 inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
88 inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
89 inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
90 inline GrpcGatewayRouteMatch& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
91 inline GrpcGatewayRouteMatch& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
92 inline GrpcGatewayRouteMatch& WithServiceName(const char* value) { SetServiceName(value); return *this;}
94 private:
95
97 bool m_hostnameHasBeenSet = false;
98
100 bool m_metadataHasBeenSet = false;
101
102 int m_port;
103 bool m_portHasBeenSet = false;
104
105 Aws::String m_serviceName;
106 bool m_serviceNameHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace AppMesh
111} // namespace Aws
GrpcGatewayRouteMatch & WithMetadata(Aws::Vector< GrpcGatewayRouteMetadata > &&value)
const GatewayRouteHostnameMatch & GetHostname() const
GrpcGatewayRouteMatch & WithMetadata(const Aws::Vector< GrpcGatewayRouteMetadata > &value)
void SetHostname(GatewayRouteHostnameMatch &&value)
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
GrpcGatewayRouteMatch & WithServiceName(const char *value)
const Aws::Vector< GrpcGatewayRouteMetadata > & GetMetadata() const
GrpcGatewayRouteMatch & WithPort(int value)
AWS_APPMESH_API GrpcGatewayRouteMatch & operator=(Aws::Utils::Json::JsonView jsonValue)
GrpcGatewayRouteMatch & AddMetadata(const GrpcGatewayRouteMetadata &value)
void SetMetadata(const Aws::Vector< GrpcGatewayRouteMetadata > &value)
void SetServiceName(const Aws::String &value)
void SetHostname(const GatewayRouteHostnameMatch &value)
GrpcGatewayRouteMatch & WithHostname(GatewayRouteHostnameMatch &&value)
AWS_APPMESH_API GrpcGatewayRouteMatch(Aws::Utils::Json::JsonView jsonValue)
GrpcGatewayRouteMatch & AddMetadata(GrpcGatewayRouteMetadata &&value)
GrpcGatewayRouteMatch & WithServiceName(Aws::String &&value)
GrpcGatewayRouteMatch & WithHostname(const GatewayRouteHostnameMatch &value)
GrpcGatewayRouteMatch & WithServiceName(const Aws::String &value)
void SetMetadata(Aws::Vector< GrpcGatewayRouteMetadata > &&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