AWS SDK for C++  1.9.20
AWS SDK for C++
GrpcRouteMetadata.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace AppMesh
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
46  inline bool GetInvert() const{ return m_invert; }
47 
52  inline bool InvertHasBeenSet() const { return m_invertHasBeenSet; }
53 
58  inline void SetInvert(bool value) { m_invertHasBeenSet = true; m_invert = value; }
59 
64  inline GrpcRouteMetadata& WithInvert(bool value) { SetInvert(value); return *this;}
65 
66 
70  inline const GrpcRouteMetadataMatchMethod& GetMatch() const{ return m_match; }
71 
75  inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; }
76 
80  inline void SetMatch(const GrpcRouteMetadataMatchMethod& value) { m_matchHasBeenSet = true; m_match = value; }
81 
85  inline void SetMatch(GrpcRouteMetadataMatchMethod&& value) { m_matchHasBeenSet = true; m_match = std::move(value); }
86 
90  inline GrpcRouteMetadata& WithMatch(const GrpcRouteMetadataMatchMethod& value) { SetMatch(value); return *this;}
91 
95  inline GrpcRouteMetadata& WithMatch(GrpcRouteMetadataMatchMethod&& value) { SetMatch(std::move(value)); return *this;}
96 
97 
101  inline const Aws::String& GetName() const{ return m_name; }
102 
106  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
107 
111  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
112 
116  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
117 
121  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
122 
126  inline GrpcRouteMetadata& WithName(const Aws::String& value) { SetName(value); return *this;}
127 
131  inline GrpcRouteMetadata& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
132 
136  inline GrpcRouteMetadata& WithName(const char* value) { SetName(value); return *this;}
137 
138  private:
139 
140  bool m_invert;
141  bool m_invertHasBeenSet;
142 
144  bool m_matchHasBeenSet;
145 
146  Aws::String m_name;
147  bool m_nameHasBeenSet;
148  };
149 
150 } // namespace Model
151 } // namespace AppMesh
152 } // namespace Aws
Aws::AppMesh::Model::GrpcRouteMetadata::GetMatch
const GrpcRouteMetadataMatchMethod & GetMatch() const
Definition: GrpcRouteMetadata.h:70
Aws::AppMesh::Model::GrpcRouteMetadata::WithMatch
GrpcRouteMetadata & WithMatch(const GrpcRouteMetadataMatchMethod &value)
Definition: GrpcRouteMetadata.h:90
Aws::AppMesh::Model::GrpcRouteMetadata::WithMatch
GrpcRouteMetadata & WithMatch(GrpcRouteMetadataMatchMethod &&value)
Definition: GrpcRouteMetadata.h:95
Aws::AppMesh::Model::GrpcRouteMetadata::MatchHasBeenSet
bool MatchHasBeenSet() const
Definition: GrpcRouteMetadata.h:75
Aws::AppMesh::Model::GrpcRouteMetadata::SetInvert
void SetInvert(bool value)
Definition: GrpcRouteMetadata.h:58
Aws::AppMesh::Model::GrpcRouteMetadata::SetName
void SetName(const char *value)
Definition: GrpcRouteMetadata.h:121
Aws::AppMesh::Model::GrpcRouteMetadataMatchMethod
Definition: GrpcRouteMetadataMatchMethod.h:34
AppMesh_EXPORTS.h
Aws::AppMesh::Model::GrpcRouteMetadata::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppMesh::Model::GrpcRouteMetadata::GetName
const Aws::String & GetName() const
Definition: GrpcRouteMetadata.h:101
Aws::AppMesh::Model::GrpcRouteMetadata::WithName
GrpcRouteMetadata & WithName(Aws::String &&value)
Definition: GrpcRouteMetadata.h:131
Aws::AppMesh::Model::GrpcRouteMetadata::SetMatch
void SetMatch(GrpcRouteMetadataMatchMethod &&value)
Definition: GrpcRouteMetadata.h:85
Aws::AppMesh::Model::GrpcRouteMetadata
Definition: GrpcRouteMetadata.h:34
Aws::AppMesh::Model::GrpcRouteMetadata::GrpcRouteMetadata
GrpcRouteMetadata(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::GrpcRouteMetadata::NameHasBeenSet
bool NameHasBeenSet() const
Definition: GrpcRouteMetadata.h:106
Aws::AppMesh::Model::GrpcRouteMetadata::SetName
void SetName(const Aws::String &value)
Definition: GrpcRouteMetadata.h:111
Aws::AppMesh::Model::GrpcRouteMetadata::operator=
GrpcRouteMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::AppMesh::Model::GrpcRouteMetadata::WithName
GrpcRouteMetadata & WithName(const Aws::String &value)
Definition: GrpcRouteMetadata.h:126
GrpcRouteMetadataMatchMethod.h
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::GrpcRouteMetadata::GetInvert
bool GetInvert() const
Definition: GrpcRouteMetadata.h:46
Aws::AppMesh::Model::GrpcRouteMetadata::InvertHasBeenSet
bool InvertHasBeenSet() const
Definition: GrpcRouteMetadata.h:52
Aws::AppMesh::Model::GrpcRouteMetadata::GrpcRouteMetadata
GrpcRouteMetadata()
Aws::AppMesh::Model::GrpcRouteMetadata::WithName
GrpcRouteMetadata & WithName(const char *value)
Definition: GrpcRouteMetadata.h:136
Aws::AppMesh::Model::GrpcRouteMetadata::WithInvert
GrpcRouteMetadata & WithInvert(bool value)
Definition: GrpcRouteMetadata.h:64
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28
Aws::AppMesh::Model::GrpcRouteMetadata::SetMatch
void SetMatch(const GrpcRouteMetadataMatchMethod &value)
Definition: GrpcRouteMetadata.h:80
Aws::AppMesh::Model::GrpcRouteMetadata::SetName
void SetName(Aws::String &&value)
Definition: GrpcRouteMetadata.h:116