AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
InvokeInferenceRouterRequest.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker-inference-router-runtime/SageMakerInferenceRouterRuntimeRequest.h>
10#include <aws/sagemaker-inference-router-runtime/SageMakerInferenceRouterRuntime_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SageMakerInferenceRouterRuntime {
16namespace Model {
17
21 public:
22 AWS_SAGEMAKERINFERENCEROUTERRUNTIME_API InvokeInferenceRouterRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "InvokeInferenceRouter"; }
29
30 AWS_SAGEMAKERINFERENCEROUTERRUNTIME_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
31
33
36 inline const Aws::String& GetInferenceRouterName() const { return m_inferenceRouterName; }
37 inline bool InferenceRouterNameHasBeenSet() const { return m_inferenceRouterNameHasBeenSet; }
38 template <typename InferenceRouterNameT = Aws::String>
39 void SetInferenceRouterName(InferenceRouterNameT&& value) {
40 m_inferenceRouterNameHasBeenSet = true;
41 m_inferenceRouterName = std::forward<InferenceRouterNameT>(value);
42 }
43 template <typename InferenceRouterNameT = Aws::String>
45 SetInferenceRouterName(std::forward<InferenceRouterNameT>(value));
46 return *this;
47 }
49
51
55 inline const Aws::String& GetRoutingTargetName() const { return m_routingTargetName; }
56 inline bool RoutingTargetNameHasBeenSet() const { return m_routingTargetNameHasBeenSet; }
57 template <typename RoutingTargetNameT = Aws::String>
58 void SetRoutingTargetName(RoutingTargetNameT&& value) {
59 m_routingTargetNameHasBeenSet = true;
60 m_routingTargetName = std::forward<RoutingTargetNameT>(value);
61 }
62 template <typename RoutingTargetNameT = Aws::String>
64 SetRoutingTargetName(std::forward<RoutingTargetNameT>(value));
65 return *this;
66 }
68
70
74 inline const Aws::String& GetAccept() const { return m_accept; }
75 inline bool AcceptHasBeenSet() const { return m_acceptHasBeenSet; }
76 template <typename AcceptT = Aws::String>
77 void SetAccept(AcceptT&& value) {
78 m_acceptHasBeenSet = true;
79 m_accept = std::forward<AcceptT>(value);
80 }
81 template <typename AcceptT = Aws::String>
83 SetAccept(std::forward<AcceptT>(value));
84 return *this;
85 }
87
89
93 inline const Aws::String& GetInferenceId() const { return m_inferenceId; }
94 inline bool InferenceIdHasBeenSet() const { return m_inferenceIdHasBeenSet; }
95 template <typename InferenceIdT = Aws::String>
96 void SetInferenceId(InferenceIdT&& value) {
97 m_inferenceIdHasBeenSet = true;
98 m_inferenceId = std::forward<InferenceIdT>(value);
99 }
100 template <typename InferenceIdT = Aws::String>
102 SetInferenceId(std::forward<InferenceIdT>(value));
103 return *this;
104 }
106
108
117 inline const Aws::String& GetPrefixAwareId() const { return m_prefixAwareId; }
118 inline bool PrefixAwareIdHasBeenSet() const { return m_prefixAwareIdHasBeenSet; }
119 template <typename PrefixAwareIdT = Aws::String>
120 void SetPrefixAwareId(PrefixAwareIdT&& value) {
121 m_prefixAwareIdHasBeenSet = true;
122 m_prefixAwareId = std::forward<PrefixAwareIdT>(value);
123 }
124 template <typename PrefixAwareIdT = Aws::String>
126 SetPrefixAwareId(std::forward<PrefixAwareIdT>(value));
127 return *this;
128 }
130
132
138 inline const Aws::String& GetCustomAttributes() const { return m_customAttributes; }
139 inline bool CustomAttributesHasBeenSet() const { return m_customAttributesHasBeenSet; }
140 template <typename CustomAttributesT = Aws::String>
141 void SetCustomAttributes(CustomAttributesT&& value) {
142 m_customAttributesHasBeenSet = true;
143 m_customAttributes = std::forward<CustomAttributesT>(value);
144 }
145 template <typename CustomAttributesT = Aws::String>
147 SetCustomAttributes(std::forward<CustomAttributesT>(value));
148 return *this;
149 }
151 private:
152 Aws::String m_inferenceRouterName;
153
154 Aws::String m_routingTargetName;
155
156 Aws::String m_accept;
157
158 Aws::String m_inferenceId;
159
160 Aws::String m_prefixAwareId;
161
162 Aws::String m_customAttributes;
163
164 bool m_inferenceRouterNameHasBeenSet = false;
165 bool m_routingTargetNameHasBeenSet = false;
166 bool m_acceptHasBeenSet = false;
167 bool m_inferenceIdHasBeenSet = false;
168 bool m_prefixAwareIdHasBeenSet = false;
169 bool m_customAttributesHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace SageMakerInferenceRouterRuntime
174} // namespace Aws
InvokeInferenceRouterRequest & WithCustomAttributes(CustomAttributesT &&value)
AWS_SAGEMAKERINFERENCEROUTERRUNTIME_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
InvokeInferenceRouterRequest & WithRoutingTargetName(RoutingTargetNameT &&value)
InvokeInferenceRouterRequest & WithInferenceRouterName(InferenceRouterNameT &&value)
AWS_SAGEMAKERINFERENCEROUTERRUNTIME_API InvokeInferenceRouterRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String