AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetMetadata(const Aws::Vector<GrpcRouteMetadata>& value) { m_metadataHasBeenSet = true; m_metadata = value; }
50 inline void SetMetadata(Aws::Vector<GrpcRouteMetadata>&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
51 inline GrpcRouteMatch& WithMetadata(const Aws::Vector<GrpcRouteMetadata>& value) { SetMetadata(value); return *this;}
52 inline GrpcRouteMatch& WithMetadata(Aws::Vector<GrpcRouteMetadata>&& value) { SetMetadata(std::move(value)); return *this;}
53 inline GrpcRouteMatch& AddMetadata(const GrpcRouteMetadata& value) { m_metadataHasBeenSet = true; m_metadata.push_back(value); return *this; }
54 inline GrpcRouteMatch& AddMetadata(GrpcRouteMetadata&& value) { m_metadataHasBeenSet = true; m_metadata.push_back(std::move(value)); return *this; }
56
58
62 inline const Aws::String& GetMethodName() const{ return m_methodName; }
63 inline bool MethodNameHasBeenSet() const { return m_methodNameHasBeenSet; }
64 inline void SetMethodName(const Aws::String& value) { m_methodNameHasBeenSet = true; m_methodName = value; }
65 inline void SetMethodName(Aws::String&& value) { m_methodNameHasBeenSet = true; m_methodName = std::move(value); }
66 inline void SetMethodName(const char* value) { m_methodNameHasBeenSet = true; m_methodName.assign(value); }
67 inline GrpcRouteMatch& WithMethodName(const Aws::String& value) { SetMethodName(value); return *this;}
68 inline GrpcRouteMatch& WithMethodName(Aws::String&& value) { SetMethodName(std::move(value)); return *this;}
69 inline GrpcRouteMatch& WithMethodName(const char* value) { SetMethodName(value); return *this;}
71
73
76 inline int GetPort() const{ return m_port; }
77 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
78 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
79 inline GrpcRouteMatch& WithPort(int value) { SetPort(value); return *this;}
81
83
87 inline const Aws::String& GetServiceName() const{ return m_serviceName; }
88 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
89 inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
90 inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
91 inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
92 inline GrpcRouteMatch& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
93 inline GrpcRouteMatch& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
94 inline GrpcRouteMatch& WithServiceName(const char* value) { SetServiceName(value); return *this;}
96 private:
97
99 bool m_metadataHasBeenSet = false;
100
101 Aws::String m_methodName;
102 bool m_methodNameHasBeenSet = false;
103
104 int m_port;
105 bool m_portHasBeenSet = false;
106
107 Aws::String m_serviceName;
108 bool m_serviceNameHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace AppMesh
113} // namespace Aws
void SetMethodName(Aws::String &&value)
GrpcRouteMatch & AddMetadata(GrpcRouteMetadata &&value)
void SetMetadata(Aws::Vector< GrpcRouteMetadata > &&value)
void SetMethodName(const char *value)
AWS_APPMESH_API GrpcRouteMatch & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetMethodName() const
GrpcRouteMatch & WithMetadata(const Aws::Vector< GrpcRouteMetadata > &value)
GrpcRouteMatch & WithServiceName(const Aws::String &value)
AWS_APPMESH_API GrpcRouteMatch(Aws::Utils::Json::JsonView jsonValue)
void SetServiceName(Aws::String &&value)
void SetServiceName(const Aws::String &value)
GrpcRouteMatch & WithMetadata(Aws::Vector< GrpcRouteMetadata > &&value)
GrpcRouteMatch & WithMethodName(Aws::String &&value)
void SetServiceName(const char *value)
void SetMetadata(const Aws::Vector< GrpcRouteMetadata > &value)
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
GrpcRouteMatch & AddMetadata(const GrpcRouteMetadata &value)
const Aws::String & GetServiceName() const
void SetMethodName(const Aws::String &value)
const Aws::Vector< GrpcRouteMetadata > & GetMetadata() const
GrpcRouteMatch & WithServiceName(Aws::String &&value)
GrpcRouteMatch & WithMethodName(const Aws::String &value)
GrpcRouteMatch & WithServiceName(const char *value)
GrpcRouteMatch & WithPort(int value)
GrpcRouteMatch & WithMethodName(const char *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