AWS SDK for C++  1.9.130
AWS SDK for C++
GrpcGatewayRouteMatch.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace AppMesh
25 {
26 namespace Model
27 {
28 
36  {
37  public:
42 
43 
47  inline const GatewayRouteHostnameMatch& GetHostname() const{ return m_hostname; }
48 
52  inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; }
53 
57  inline void SetHostname(const GatewayRouteHostnameMatch& value) { m_hostnameHasBeenSet = true; m_hostname = value; }
58 
62  inline void SetHostname(GatewayRouteHostnameMatch&& value) { m_hostnameHasBeenSet = true; m_hostname = std::move(value); }
63 
67  inline GrpcGatewayRouteMatch& WithHostname(const GatewayRouteHostnameMatch& value) { SetHostname(value); return *this;}
68 
72  inline GrpcGatewayRouteMatch& WithHostname(GatewayRouteHostnameMatch&& value) { SetHostname(std::move(value)); return *this;}
73 
74 
78  inline const Aws::Vector<GrpcGatewayRouteMetadata>& GetMetadata() const{ return m_metadata; }
79 
83  inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
84 
88  inline void SetMetadata(const Aws::Vector<GrpcGatewayRouteMetadata>& value) { m_metadataHasBeenSet = true; m_metadata = value; }
89 
93  inline void SetMetadata(Aws::Vector<GrpcGatewayRouteMetadata>&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
94 
98  inline GrpcGatewayRouteMatch& WithMetadata(const Aws::Vector<GrpcGatewayRouteMetadata>& value) { SetMetadata(value); return *this;}
99 
103  inline GrpcGatewayRouteMatch& WithMetadata(Aws::Vector<GrpcGatewayRouteMetadata>&& value) { SetMetadata(std::move(value)); return *this;}
104 
108  inline GrpcGatewayRouteMatch& AddMetadata(const GrpcGatewayRouteMetadata& value) { m_metadataHasBeenSet = true; m_metadata.push_back(value); return *this; }
109 
113  inline GrpcGatewayRouteMatch& AddMetadata(GrpcGatewayRouteMetadata&& value) { m_metadataHasBeenSet = true; m_metadata.push_back(std::move(value)); return *this; }
114 
115 
120  inline const Aws::String& GetServiceName() const{ return m_serviceName; }
121 
126  inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
127 
132  inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
133 
138  inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
139 
144  inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
145 
150  inline GrpcGatewayRouteMatch& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
151 
156  inline GrpcGatewayRouteMatch& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
157 
162  inline GrpcGatewayRouteMatch& WithServiceName(const char* value) { SetServiceName(value); return *this;}
163 
164  private:
165 
166  GatewayRouteHostnameMatch m_hostname;
167  bool m_hostnameHasBeenSet;
168 
170  bool m_metadataHasBeenSet;
171 
172  Aws::String m_serviceName;
173  bool m_serviceNameHasBeenSet;
174  };
175 
176 } // namespace Model
177 } // namespace AppMesh
178 } // namespace Aws
Aws::AppMesh::Model::GrpcGatewayRouteMatch::WithMetadata
GrpcGatewayRouteMatch & WithMetadata(Aws::Vector< GrpcGatewayRouteMetadata > &&value)
Definition: GrpcGatewayRouteMatch.h:103
Aws::AppMesh::Model::GrpcGatewayRouteMatch::AddMetadata
GrpcGatewayRouteMatch & AddMetadata(GrpcGatewayRouteMetadata &&value)
Definition: GrpcGatewayRouteMatch.h:113
Aws::AppMesh::Model::GrpcGatewayRouteMatch::SetServiceName
void SetServiceName(Aws::String &&value)
Definition: GrpcGatewayRouteMatch.h:138
Aws::AppMesh::Model::GrpcGatewayRouteMatch::SetMetadata
void SetMetadata(Aws::Vector< GrpcGatewayRouteMetadata > &&value)
Definition: GrpcGatewayRouteMatch.h:93
Aws::AppMesh::Model::GrpcGatewayRouteMatch::WithServiceName
GrpcGatewayRouteMatch & WithServiceName(const char *value)
Definition: GrpcGatewayRouteMatch.h:162
Aws::AppMesh::Model::GrpcGatewayRouteMatch::SetHostname
void SetHostname(GatewayRouteHostnameMatch &&value)
Definition: GrpcGatewayRouteMatch.h:62
Aws::AppMesh::Model::GrpcGatewayRouteMatch::SetHostname
void SetHostname(const GatewayRouteHostnameMatch &value)
Definition: GrpcGatewayRouteMatch.h:57
Aws::AppMesh::Model::GrpcGatewayRouteMatch::GrpcGatewayRouteMatch
GrpcGatewayRouteMatch()
Aws::AppMesh::Model::GrpcGatewayRouteMatch::SetMetadata
void SetMetadata(const Aws::Vector< GrpcGatewayRouteMetadata > &value)
Definition: GrpcGatewayRouteMatch.h:88
GatewayRouteHostnameMatch.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
GrpcGatewayRouteMetadata.h
AppMesh_EXPORTS.h
AWSVector.h
Aws::AppMesh::Model::GrpcGatewayRouteMatch::WithHostname
GrpcGatewayRouteMatch & WithHostname(GatewayRouteHostnameMatch &&value)
Definition: GrpcGatewayRouteMatch.h:72
Aws::AppMesh::Model::GrpcGatewayRouteMatch::WithHostname
GrpcGatewayRouteMatch & WithHostname(const GatewayRouteHostnameMatch &value)
Definition: GrpcGatewayRouteMatch.h:67
Aws::AppMesh::Model::GrpcGatewayRouteMatch::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppMesh::Model::GrpcGatewayRouteMatch::WithServiceName
GrpcGatewayRouteMatch & WithServiceName(Aws::String &&value)
Definition: GrpcGatewayRouteMatch.h:156
Aws::AppMesh::Model::GrpcGatewayRouteMatch::ServiceNameHasBeenSet
bool ServiceNameHasBeenSet() const
Definition: GrpcGatewayRouteMatch.h:126
Aws::AppMesh::Model::GrpcGatewayRouteMatch::AddMetadata
GrpcGatewayRouteMatch & AddMetadata(const GrpcGatewayRouteMetadata &value)
Definition: GrpcGatewayRouteMatch.h:108
Aws::AppMesh::Model::GrpcGatewayRouteMatch::MetadataHasBeenSet
bool MetadataHasBeenSet() const
Definition: GrpcGatewayRouteMatch.h:83
Aws::AppMesh::Model::GatewayRouteHostnameMatch
Definition: GatewayRouteHostnameMatch.h:33
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AppMesh::Model::GrpcGatewayRouteMatch::WithMetadata
GrpcGatewayRouteMatch & WithMetadata(const Aws::Vector< GrpcGatewayRouteMetadata > &value)
Definition: GrpcGatewayRouteMatch.h:98
Aws::AppMesh::Model::GrpcGatewayRouteMatch::GetMetadata
const Aws::Vector< GrpcGatewayRouteMetadata > & GetMetadata() const
Definition: GrpcGatewayRouteMatch.h:78
Aws::AppMesh::Model::GrpcGatewayRouteMatch::GrpcGatewayRouteMatch
GrpcGatewayRouteMatch(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::GrpcGatewayRouteMatch::SetServiceName
void SetServiceName(const Aws::String &value)
Definition: GrpcGatewayRouteMatch.h:132
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppMesh::Model::GrpcGatewayRouteMatch::GetServiceName
const Aws::String & GetServiceName() const
Definition: GrpcGatewayRouteMatch.h:120
Aws::AppMesh::Model::GrpcGatewayRouteMatch::HostnameHasBeenSet
bool HostnameHasBeenSet() const
Definition: GrpcGatewayRouteMatch.h:52
Aws::AppMesh::Model::GrpcGatewayRouteMatch
Definition: GrpcGatewayRouteMatch.h:36
Aws::AppMesh::Model::GrpcGatewayRouteMatch::operator=
GrpcGatewayRouteMatch & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::GrpcGatewayRouteMatch::WithServiceName
GrpcGatewayRouteMatch & WithServiceName(const Aws::String &value)
Definition: GrpcGatewayRouteMatch.h:150
Aws::AppMesh::Model::GrpcGatewayRouteMetadata
Definition: GrpcGatewayRouteMetadata.h:34
Aws::AppMesh::Model::GrpcGatewayRouteMatch::GetHostname
const GatewayRouteHostnameMatch & GetHostname() const
Definition: GrpcGatewayRouteMatch.h:47
Aws::AppMesh::Model::GrpcGatewayRouteMatch::SetServiceName
void SetServiceName(const char *value)
Definition: GrpcGatewayRouteMatch.h:144
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28