AWS SDK for C++  1.9.123
AWS SDK for C++
GrpcRouteMatch.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace AppMesh
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
46  inline const Aws::Vector<GrpcRouteMetadata>& GetMetadata() const{ return m_metadata; }
47 
51  inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
52 
56  inline void SetMetadata(const Aws::Vector<GrpcRouteMetadata>& value) { m_metadataHasBeenSet = true; m_metadata = value; }
57 
61  inline void SetMetadata(Aws::Vector<GrpcRouteMetadata>&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
62 
66  inline GrpcRouteMatch& WithMetadata(const Aws::Vector<GrpcRouteMetadata>& value) { SetMetadata(value); return *this;}
67 
71  inline GrpcRouteMatch& WithMetadata(Aws::Vector<GrpcRouteMetadata>&& value) { SetMetadata(std::move(value)); return *this;}
72 
76  inline GrpcRouteMatch& AddMetadata(const GrpcRouteMetadata& value) { m_metadataHasBeenSet = true; m_metadata.push_back(value); return *this; }
77 
81  inline GrpcRouteMatch& AddMetadata(GrpcRouteMetadata&& value) { m_metadataHasBeenSet = true; m_metadata.push_back(std::move(value)); return *this; }
82 
83 
88  inline const Aws::String& GetMethodName() const{ return m_methodName; }
89 
94  inline bool MethodNameHasBeenSet() const { return m_methodNameHasBeenSet; }
95 
100  inline void SetMethodName(const Aws::String& value) { m_methodNameHasBeenSet = true; m_methodName = value; }
101 
106  inline void SetMethodName(Aws::String&& value) { m_methodNameHasBeenSet = true; m_methodName = std::move(value); }
107 
112  inline void SetMethodName(const char* value) { m_methodNameHasBeenSet = true; m_methodName.assign(value); }
113 
118  inline GrpcRouteMatch& WithMethodName(const Aws::String& value) { SetMethodName(value); return *this;}
119 
124  inline GrpcRouteMatch& WithMethodName(Aws::String&& value) { SetMethodName(std::move(value)); return *this;}
125 
130  inline GrpcRouteMatch& WithMethodName(const char* value) { SetMethodName(value); return *this;}
131 
132 
137  inline const Aws::String& GetServiceName() const{ return m_serviceName; }
138 
143  inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
144 
149  inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
150 
155  inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
156 
161  inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
162 
167  inline GrpcRouteMatch& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
168 
173  inline GrpcRouteMatch& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
174 
179  inline GrpcRouteMatch& WithServiceName(const char* value) { SetServiceName(value); return *this;}
180 
181  private:
182 
184  bool m_metadataHasBeenSet;
185 
186  Aws::String m_methodName;
187  bool m_methodNameHasBeenSet;
188 
189  Aws::String m_serviceName;
190  bool m_serviceNameHasBeenSet;
191  };
192 
193 } // namespace Model
194 } // namespace AppMesh
195 } // namespace Aws
Aws::AppMesh::Model::GrpcRouteMatch::SetServiceName
void SetServiceName(const char *value)
Definition: GrpcRouteMatch.h:161
Aws::AppMesh::Model::GrpcRouteMatch::WithServiceName
GrpcRouteMatch & WithServiceName(const char *value)
Definition: GrpcRouteMatch.h:179
Aws::AppMesh::Model::GrpcRouteMatch::MethodNameHasBeenSet
bool MethodNameHasBeenSet() const
Definition: GrpcRouteMatch.h:94
Aws::AppMesh::Model::GrpcRouteMatch::WithMethodName
GrpcRouteMatch & WithMethodName(Aws::String &&value)
Definition: GrpcRouteMatch.h:124
Aws::AppMesh::Model::GrpcRouteMatch::WithMethodName
GrpcRouteMatch & WithMethodName(const Aws::String &value)
Definition: GrpcRouteMatch.h:118
Aws::AppMesh::Model::GrpcRouteMatch::GetServiceName
const Aws::String & GetServiceName() const
Definition: GrpcRouteMatch.h:137
Aws::AppMesh::Model::GrpcRouteMatch::SetServiceName
void SetServiceName(Aws::String &&value)
Definition: GrpcRouteMatch.h:155
GrpcRouteMetadata.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AppMesh::Model::GrpcRouteMatch::SetMetadata
void SetMetadata(const Aws::Vector< GrpcRouteMetadata > &value)
Definition: GrpcRouteMatch.h:56
Aws::AppMesh::Model::GrpcRouteMatch::WithMetadata
GrpcRouteMatch & WithMetadata(const Aws::Vector< GrpcRouteMetadata > &value)
Definition: GrpcRouteMatch.h:66
AppMesh_EXPORTS.h
AWSVector.h
Aws::AppMesh::Model::GrpcRouteMatch::AddMetadata
GrpcRouteMatch & AddMetadata(const GrpcRouteMetadata &value)
Definition: GrpcRouteMatch.h:76
Aws::AppMesh::Model::GrpcRouteMatch::SetMethodName
void SetMethodName(const Aws::String &value)
Definition: GrpcRouteMatch.h:100
Aws::AppMesh::Model::GrpcRouteMatch::WithMethodName
GrpcRouteMatch & WithMethodName(const char *value)
Definition: GrpcRouteMatch.h:130
Aws::AppMesh::Model::GrpcRouteMatch::ServiceNameHasBeenSet
bool ServiceNameHasBeenSet() const
Definition: GrpcRouteMatch.h:143
Aws::AppMesh::Model::GrpcRouteMatch
Definition: GrpcRouteMatch.h:35
Aws::AppMesh::Model::GrpcRouteMatch::GetMethodName
const Aws::String & GetMethodName() const
Definition: GrpcRouteMatch.h:88
Aws::AppMesh::Model::GrpcRouteMatch::WithServiceName
GrpcRouteMatch & WithServiceName(Aws::String &&value)
Definition: GrpcRouteMatch.h:173
Aws::AppMesh::Model::GrpcRouteMatch::SetMethodName
void SetMethodName(const char *value)
Definition: GrpcRouteMatch.h:112
Aws::AppMesh::Model::GrpcRouteMatch::SetMethodName
void SetMethodName(Aws::String &&value)
Definition: GrpcRouteMatch.h:106
Aws::AppMesh::Model::GrpcRouteMatch::WithMetadata
GrpcRouteMatch & WithMetadata(Aws::Vector< GrpcRouteMetadata > &&value)
Definition: GrpcRouteMatch.h:71
Aws::AppMesh::Model::GrpcRouteMetadata
Definition: GrpcRouteMetadata.h:34
Aws::AppMesh::Model::GrpcRouteMatch::SetMetadata
void SetMetadata(Aws::Vector< GrpcRouteMetadata > &&value)
Definition: GrpcRouteMatch.h:61
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AppMesh::Model::GrpcRouteMatch::GetMetadata
const Aws::Vector< GrpcRouteMetadata > & GetMetadata() const
Definition: GrpcRouteMatch.h:46
Aws::AppMesh::Model::GrpcRouteMatch::MetadataHasBeenSet
bool MetadataHasBeenSet() const
Definition: GrpcRouteMatch.h:51
Aws::AppMesh::Model::GrpcRouteMatch::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppMesh::Model::GrpcRouteMatch::operator=
GrpcRouteMatch & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::GrpcRouteMatch::SetServiceName
void SetServiceName(const Aws::String &value)
Definition: GrpcRouteMatch.h:149
Aws::AppMesh::Model::GrpcRouteMatch::GrpcRouteMatch
GrpcRouteMatch()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppMesh::Model::GrpcRouteMatch::AddMetadata
GrpcRouteMatch & AddMetadata(GrpcRouteMetadata &&value)
Definition: GrpcRouteMatch.h:81
Aws::AppMesh::Model::GrpcRouteMatch::GrpcRouteMatch
GrpcRouteMatch(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28
Aws::AppMesh::Model::GrpcRouteMatch::WithServiceName
GrpcRouteMatch & WithServiceName(const Aws::String &value)
Definition: GrpcRouteMatch.h:167