AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
CreateRouteRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/migration-hub-refactor-spaces/MigrationHubRefactorSpacesRequest.h>
11#include <aws/migration-hub-refactor-spaces/MigrationHubRefactorSpaces_EXPORTS.h>
12#include <aws/migration-hub-refactor-spaces/model/DefaultRouteInput.h>
13#include <aws/migration-hub-refactor-spaces/model/RouteType.h>
14#include <aws/migration-hub-refactor-spaces/model/UriPathRouteInput.h>
15
16#include <utility>
17
18namespace Aws {
19namespace MigrationHubRefactorSpaces {
20namespace Model {
21
25 public:
26 AWS_MIGRATIONHUBREFACTORSPACES_API CreateRouteRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateRoute"; }
33
34 AWS_MIGRATIONHUBREFACTORSPACES_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetApplicationIdentifier() const { return m_applicationIdentifier; }
41 inline bool ApplicationIdentifierHasBeenSet() const { return m_applicationIdentifierHasBeenSet; }
42 template <typename ApplicationIdentifierT = Aws::String>
43 void SetApplicationIdentifier(ApplicationIdentifierT&& value) {
44 m_applicationIdentifierHasBeenSet = true;
45 m_applicationIdentifier = std::forward<ApplicationIdentifierT>(value);
46 }
47 template <typename ApplicationIdentifierT = Aws::String>
48 CreateRouteRequest& WithApplicationIdentifier(ApplicationIdentifierT&& value) {
49 SetApplicationIdentifier(std::forward<ApplicationIdentifierT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetClientToken() const { return m_clientToken; }
60 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
61 template <typename ClientTokenT = Aws::String>
62 void SetClientToken(ClientTokenT&& value) {
63 m_clientTokenHasBeenSet = true;
64 m_clientToken = std::forward<ClientTokenT>(value);
65 }
66 template <typename ClientTokenT = Aws::String>
67 CreateRouteRequest& WithClientToken(ClientTokenT&& value) {
68 SetClientToken(std::forward<ClientTokenT>(value));
69 return *this;
70 }
72
74
77 inline const DefaultRouteInput& GetDefaultRoute() const { return m_defaultRoute; }
78 inline bool DefaultRouteHasBeenSet() const { return m_defaultRouteHasBeenSet; }
79 template <typename DefaultRouteT = DefaultRouteInput>
80 void SetDefaultRoute(DefaultRouteT&& value) {
81 m_defaultRouteHasBeenSet = true;
82 m_defaultRoute = std::forward<DefaultRouteT>(value);
83 }
84 template <typename DefaultRouteT = DefaultRouteInput>
85 CreateRouteRequest& WithDefaultRoute(DefaultRouteT&& value) {
86 SetDefaultRoute(std::forward<DefaultRouteT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetEnvironmentIdentifier() const { return m_environmentIdentifier; }
96 inline bool EnvironmentIdentifierHasBeenSet() const { return m_environmentIdentifierHasBeenSet; }
97 template <typename EnvironmentIdentifierT = Aws::String>
98 void SetEnvironmentIdentifier(EnvironmentIdentifierT&& value) {
99 m_environmentIdentifierHasBeenSet = true;
100 m_environmentIdentifier = std::forward<EnvironmentIdentifierT>(value);
101 }
102 template <typename EnvironmentIdentifierT = Aws::String>
103 CreateRouteRequest& WithEnvironmentIdentifier(EnvironmentIdentifierT&& value) {
104 SetEnvironmentIdentifier(std::forward<EnvironmentIdentifierT>(value));
105 return *this;
106 }
108
110
116 inline RouteType GetRouteType() const { return m_routeType; }
117 inline bool RouteTypeHasBeenSet() const { return m_routeTypeHasBeenSet; }
118 inline void SetRouteType(RouteType value) {
119 m_routeTypeHasBeenSet = true;
120 m_routeType = value;
121 }
123 SetRouteType(value);
124 return *this;
125 }
127
129
133 inline const Aws::String& GetServiceIdentifier() const { return m_serviceIdentifier; }
134 inline bool ServiceIdentifierHasBeenSet() const { return m_serviceIdentifierHasBeenSet; }
135 template <typename ServiceIdentifierT = Aws::String>
136 void SetServiceIdentifier(ServiceIdentifierT&& value) {
137 m_serviceIdentifierHasBeenSet = true;
138 m_serviceIdentifier = std::forward<ServiceIdentifierT>(value);
139 }
140 template <typename ServiceIdentifierT = Aws::String>
141 CreateRouteRequest& WithServiceIdentifier(ServiceIdentifierT&& value) {
142 SetServiceIdentifier(std::forward<ServiceIdentifierT>(value));
143 return *this;
144 }
146
148
152 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
153 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
154 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
155 void SetTags(TagsT&& value) {
156 m_tagsHasBeenSet = true;
157 m_tags = std::forward<TagsT>(value);
158 }
159 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
160 CreateRouteRequest& WithTags(TagsT&& value) {
161 SetTags(std::forward<TagsT>(value));
162 return *this;
163 }
164 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
165 CreateRouteRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
166 m_tagsHasBeenSet = true;
167 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
168 return *this;
169 }
171
173
176 inline const UriPathRouteInput& GetUriPathRoute() const { return m_uriPathRoute; }
177 inline bool UriPathRouteHasBeenSet() const { return m_uriPathRouteHasBeenSet; }
178 template <typename UriPathRouteT = UriPathRouteInput>
179 void SetUriPathRoute(UriPathRouteT&& value) {
180 m_uriPathRouteHasBeenSet = true;
181 m_uriPathRoute = std::forward<UriPathRouteT>(value);
182 }
183 template <typename UriPathRouteT = UriPathRouteInput>
184 CreateRouteRequest& WithUriPathRoute(UriPathRouteT&& value) {
185 SetUriPathRoute(std::forward<UriPathRouteT>(value));
186 return *this;
187 }
189 private:
190 Aws::String m_applicationIdentifier;
191
193
194 DefaultRouteInput m_defaultRoute;
195
196 Aws::String m_environmentIdentifier;
197
198 RouteType m_routeType{RouteType::NOT_SET};
199
200 Aws::String m_serviceIdentifier;
201
203
204 UriPathRouteInput m_uriPathRoute;
205 bool m_applicationIdentifierHasBeenSet = false;
206 bool m_clientTokenHasBeenSet = true;
207 bool m_defaultRouteHasBeenSet = false;
208 bool m_environmentIdentifierHasBeenSet = false;
209 bool m_routeTypeHasBeenSet = false;
210 bool m_serviceIdentifierHasBeenSet = false;
211 bool m_tagsHasBeenSet = false;
212 bool m_uriPathRouteHasBeenSet = false;
213};
214
215} // namespace Model
216} // namespace MigrationHubRefactorSpaces
217} // namespace Aws
AWS_MIGRATIONHUBREFACTORSPACES_API CreateRouteRequest()=default
void SetEnvironmentIdentifier(EnvironmentIdentifierT &&value)
CreateRouteRequest & WithClientToken(ClientTokenT &&value)
CreateRouteRequest & WithEnvironmentIdentifier(EnvironmentIdentifierT &&value)
AWS_MIGRATIONHUBREFACTORSPACES_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreateRouteRequest & WithApplicationIdentifier(ApplicationIdentifierT &&value)
void SetApplicationIdentifier(ApplicationIdentifierT &&value)
CreateRouteRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateRouteRequest & WithUriPathRoute(UriPathRouteT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateRouteRequest & WithServiceIdentifier(ServiceIdentifierT &&value)
CreateRouteRequest & WithDefaultRoute(DefaultRouteT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String