AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateRouteRequest.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/appmesh/AppMeshRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/appmesh/model/RouteSpec.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/appmesh/model/TagRef.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace Http
19{
20 class URI;
21} //namespace Http
22namespace AppMesh
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_APPMESH_API CreateRouteRequest();
36
37 // Service request name is the Operation name which will send this request out,
38 // each operation should has unique request name, so that we can get operation's name from this request.
39 // Note: this is not true for response, multiple operations may have the same response name,
40 // so we can not get operation's name from response.
41 inline virtual const char* GetServiceRequestName() const override { return "CreateRoute"; }
42
43 AWS_APPMESH_API Aws::String SerializePayload() const override;
44
45 AWS_APPMESH_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
46
47
49
54 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
55 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
56 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
57 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
58 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
59 inline CreateRouteRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
60 inline CreateRouteRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
61 inline CreateRouteRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
63
65
68 inline const Aws::String& GetMeshName() const{ return m_meshName; }
69 inline bool MeshNameHasBeenSet() const { return m_meshNameHasBeenSet; }
70 inline void SetMeshName(const Aws::String& value) { m_meshNameHasBeenSet = true; m_meshName = value; }
71 inline void SetMeshName(Aws::String&& value) { m_meshNameHasBeenSet = true; m_meshName = std::move(value); }
72 inline void SetMeshName(const char* value) { m_meshNameHasBeenSet = true; m_meshName.assign(value); }
73 inline CreateRouteRequest& WithMeshName(const Aws::String& value) { SetMeshName(value); return *this;}
74 inline CreateRouteRequest& WithMeshName(Aws::String&& value) { SetMeshName(std::move(value)); return *this;}
75 inline CreateRouteRequest& WithMeshName(const char* value) { SetMeshName(value); return *this;}
77
79
87 inline const Aws::String& GetMeshOwner() const{ return m_meshOwner; }
88 inline bool MeshOwnerHasBeenSet() const { return m_meshOwnerHasBeenSet; }
89 inline void SetMeshOwner(const Aws::String& value) { m_meshOwnerHasBeenSet = true; m_meshOwner = value; }
90 inline void SetMeshOwner(Aws::String&& value) { m_meshOwnerHasBeenSet = true; m_meshOwner = std::move(value); }
91 inline void SetMeshOwner(const char* value) { m_meshOwnerHasBeenSet = true; m_meshOwner.assign(value); }
92 inline CreateRouteRequest& WithMeshOwner(const Aws::String& value) { SetMeshOwner(value); return *this;}
93 inline CreateRouteRequest& WithMeshOwner(Aws::String&& value) { SetMeshOwner(std::move(value)); return *this;}
94 inline CreateRouteRequest& WithMeshOwner(const char* value) { SetMeshOwner(value); return *this;}
96
98
101 inline const Aws::String& GetRouteName() const{ return m_routeName; }
102 inline bool RouteNameHasBeenSet() const { return m_routeNameHasBeenSet; }
103 inline void SetRouteName(const Aws::String& value) { m_routeNameHasBeenSet = true; m_routeName = value; }
104 inline void SetRouteName(Aws::String&& value) { m_routeNameHasBeenSet = true; m_routeName = std::move(value); }
105 inline void SetRouteName(const char* value) { m_routeNameHasBeenSet = true; m_routeName.assign(value); }
106 inline CreateRouteRequest& WithRouteName(const Aws::String& value) { SetRouteName(value); return *this;}
107 inline CreateRouteRequest& WithRouteName(Aws::String&& value) { SetRouteName(std::move(value)); return *this;}
108 inline CreateRouteRequest& WithRouteName(const char* value) { SetRouteName(value); return *this;}
110
112
115 inline const RouteSpec& GetSpec() const{ return m_spec; }
116 inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
117 inline void SetSpec(const RouteSpec& value) { m_specHasBeenSet = true; m_spec = value; }
118 inline void SetSpec(RouteSpec&& value) { m_specHasBeenSet = true; m_spec = std::move(value); }
119 inline CreateRouteRequest& WithSpec(const RouteSpec& value) { SetSpec(value); return *this;}
120 inline CreateRouteRequest& WithSpec(RouteSpec&& value) { SetSpec(std::move(value)); return *this;}
122
124
130 inline const Aws::Vector<TagRef>& GetTags() const{ return m_tags; }
131 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
132 inline void SetTags(const Aws::Vector<TagRef>& value) { m_tagsHasBeenSet = true; m_tags = value; }
133 inline void SetTags(Aws::Vector<TagRef>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
134 inline CreateRouteRequest& WithTags(const Aws::Vector<TagRef>& value) { SetTags(value); return *this;}
135 inline CreateRouteRequest& WithTags(Aws::Vector<TagRef>&& value) { SetTags(std::move(value)); return *this;}
136 inline CreateRouteRequest& AddTags(const TagRef& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
137 inline CreateRouteRequest& AddTags(TagRef&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
139
141
146 inline const Aws::String& GetVirtualRouterName() const{ return m_virtualRouterName; }
147 inline bool VirtualRouterNameHasBeenSet() const { return m_virtualRouterNameHasBeenSet; }
148 inline void SetVirtualRouterName(const Aws::String& value) { m_virtualRouterNameHasBeenSet = true; m_virtualRouterName = value; }
149 inline void SetVirtualRouterName(Aws::String&& value) { m_virtualRouterNameHasBeenSet = true; m_virtualRouterName = std::move(value); }
150 inline void SetVirtualRouterName(const char* value) { m_virtualRouterNameHasBeenSet = true; m_virtualRouterName.assign(value); }
151 inline CreateRouteRequest& WithVirtualRouterName(const Aws::String& value) { SetVirtualRouterName(value); return *this;}
152 inline CreateRouteRequest& WithVirtualRouterName(Aws::String&& value) { SetVirtualRouterName(std::move(value)); return *this;}
153 inline CreateRouteRequest& WithVirtualRouterName(const char* value) { SetVirtualRouterName(value); return *this;}
155 private:
156
157 Aws::String m_clientToken;
158 bool m_clientTokenHasBeenSet = false;
159
160 Aws::String m_meshName;
161 bool m_meshNameHasBeenSet = false;
162
163 Aws::String m_meshOwner;
164 bool m_meshOwnerHasBeenSet = false;
165
166 Aws::String m_routeName;
167 bool m_routeNameHasBeenSet = false;
168
169 RouteSpec m_spec;
170 bool m_specHasBeenSet = false;
171
172 Aws::Vector<TagRef> m_tags;
173 bool m_tagsHasBeenSet = false;
174
175 Aws::String m_virtualRouterName;
176 bool m_virtualRouterNameHasBeenSet = false;
177 };
178
179} // namespace Model
180} // namespace AppMesh
181} // namespace Aws
void SetTags(Aws::Vector< TagRef > &&value)
CreateRouteRequest & WithTags(const Aws::Vector< TagRef > &value)
virtual const char * GetServiceRequestName() const override
void SetRouteName(const Aws::String &value)
const Aws::String & GetMeshOwner() const
CreateRouteRequest & WithMeshOwner(Aws::String &&value)
CreateRouteRequest & WithMeshOwner(const Aws::String &value)
CreateRouteRequest & WithMeshName(const Aws::String &value)
void SetClientToken(const Aws::String &value)
CreateRouteRequest & WithClientToken(Aws::String &&value)
CreateRouteRequest & WithVirtualRouterName(const char *value)
CreateRouteRequest & WithSpec(RouteSpec &&value)
const Aws::String & GetVirtualRouterName() const
void SetVirtualRouterName(Aws::String &&value)
void SetVirtualRouterName(const Aws::String &value)
CreateRouteRequest & WithRouteName(Aws::String &&value)
CreateRouteRequest & WithRouteName(const char *value)
const Aws::String & GetClientToken() const
CreateRouteRequest & WithMeshName(const char *value)
CreateRouteRequest & WithMeshName(Aws::String &&value)
CreateRouteRequest & AddTags(TagRef &&value)
CreateRouteRequest & WithSpec(const RouteSpec &value)
CreateRouteRequest & WithTags(Aws::Vector< TagRef > &&value)
void SetMeshOwner(const Aws::String &value)
void SetTags(const Aws::Vector< TagRef > &value)
AWS_APPMESH_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
const Aws::String & GetMeshName() const
CreateRouteRequest & WithRouteName(const Aws::String &value)
CreateRouteRequest & WithClientToken(const Aws::String &value)
CreateRouteRequest & WithMeshOwner(const char *value)
const Aws::Vector< TagRef > & GetTags() const
void SetMeshName(const Aws::String &value)
CreateRouteRequest & WithVirtualRouterName(const Aws::String &value)
CreateRouteRequest & AddTags(const TagRef &value)
CreateRouteRequest & WithVirtualRouterName(Aws::String &&value)
CreateRouteRequest & WithClientToken(const char *value)
AWS_APPMESH_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector