AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CreateGlobalInferenceGatewayRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sagemaker/SageMakerRequest.h>
11#include <aws/sagemaker/SageMaker_EXPORTS.h>
12#include <aws/sagemaker/model/GlobalInferenceGatewayMember.h>
13#include <aws/sagemaker/model/GlobalInferenceGatewayRouting.h>
14#include <aws/sagemaker/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace SageMaker {
20namespace Model {
21
25 public:
26 AWS_SAGEMAKER_API CreateGlobalInferenceGatewayRequest() = 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 "CreateGlobalInferenceGateway"; }
33
34 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
35
37
39
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template <typename NameT = Aws::String>
48 void SetName(NameT&& value) {
49 m_nameHasBeenSet = true;
50 m_name = std::forward<NameT>(value);
51 }
52 template <typename NameT = Aws::String>
54 SetName(std::forward<NameT>(value));
55 return *this;
56 }
58
60
64 inline const GlobalInferenceGatewayRouting& GetRouting() const { return m_routing; }
65 inline bool RoutingHasBeenSet() const { return m_routingHasBeenSet; }
66 template <typename RoutingT = GlobalInferenceGatewayRouting>
67 void SetRouting(RoutingT&& value) {
68 m_routingHasBeenSet = true;
69 m_routing = std::forward<RoutingT>(value);
70 }
71 template <typename RoutingT = GlobalInferenceGatewayRouting>
73 SetRouting(std::forward<RoutingT>(value));
74 return *this;
75 }
77
79
86 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
87 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
88 template <typename ExecutionRoleArnT = Aws::String>
89 void SetExecutionRoleArn(ExecutionRoleArnT&& value) {
90 m_executionRoleArnHasBeenSet = true;
91 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
92 }
93 template <typename ExecutionRoleArnT = Aws::String>
95 SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value));
96 return *this;
97 }
99
101
107 inline const Aws::Vector<GlobalInferenceGatewayMember>& GetGateways() const { return m_gateways; }
108 inline bool GatewaysHasBeenSet() const { return m_gatewaysHasBeenSet; }
109 template <typename GatewaysT = Aws::Vector<GlobalInferenceGatewayMember>>
110 void SetGateways(GatewaysT&& value) {
111 m_gatewaysHasBeenSet = true;
112 m_gateways = std::forward<GatewaysT>(value);
113 }
114 template <typename GatewaysT = Aws::Vector<GlobalInferenceGatewayMember>>
116 SetGateways(std::forward<GatewaysT>(value));
117 return *this;
118 }
119 template <typename GatewaysT = GlobalInferenceGatewayMember>
121 m_gatewaysHasBeenSet = true;
122 m_gateways.emplace_back(std::forward<GatewaysT>(value));
123 return *this;
124 }
126
128
134 inline const Aws::String& GetClientToken() const { return m_clientToken; }
135 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
136 template <typename ClientTokenT = Aws::String>
137 void SetClientToken(ClientTokenT&& value) {
138 m_clientTokenHasBeenSet = true;
139 m_clientToken = std::forward<ClientTokenT>(value);
140 }
141 template <typename ClientTokenT = Aws::String>
143 SetClientToken(std::forward<ClientTokenT>(value));
144 return *this;
145 }
147
149
159 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
160 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
161 template <typename TagsT = Aws::Vector<Tag>>
162 void SetTags(TagsT&& value) {
163 m_tagsHasBeenSet = true;
164 m_tags = std::forward<TagsT>(value);
165 }
166 template <typename TagsT = Aws::Vector<Tag>>
168 SetTags(std::forward<TagsT>(value));
169 return *this;
170 }
171 template <typename TagsT = Tag>
173 m_tagsHasBeenSet = true;
174 m_tags.emplace_back(std::forward<TagsT>(value));
175 return *this;
176 }
178 private:
179 Aws::String m_name;
180
182
183 Aws::String m_executionRoleArn;
184
186
188
189 Aws::Vector<Tag> m_tags;
190 bool m_nameHasBeenSet = false;
191 bool m_routingHasBeenSet = false;
192 bool m_executionRoleArnHasBeenSet = false;
193 bool m_gatewaysHasBeenSet = false;
194 bool m_clientTokenHasBeenSet = true;
195 bool m_tagsHasBeenSet = false;
196};
197
198} // namespace Model
199} // namespace SageMaker
200} // namespace Aws
const Aws::Vector< GlobalInferenceGatewayMember > & GetGateways() const
CreateGlobalInferenceGatewayRequest & WithClientToken(ClientTokenT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateGlobalInferenceGatewayRequest & WithName(NameT &&value)
CreateGlobalInferenceGatewayRequest & WithGateways(GatewaysT &&value)
CreateGlobalInferenceGatewayRequest & WithRouting(RoutingT &&value)
CreateGlobalInferenceGatewayRequest & AddGateways(GatewaysT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateGlobalInferenceGatewayRequest & WithExecutionRoleArn(ExecutionRoleArnT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector