AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InvokeEndpointAsyncRequest.h
1
6#pragma once
7#include <aws/sagemaker-runtime/SageMakerRuntime_EXPORTS.h>
8#include <aws/sagemaker-runtime/SageMakerRuntimeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace SageMakerRuntime
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_SAGEMAKERRUNTIME_API InvokeEndpointAsyncRequest();
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "InvokeEndpointAsync"; }
31
32 AWS_SAGEMAKERRUNTIME_API Aws::String SerializePayload() const override;
33
34 AWS_SAGEMAKERRUNTIME_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
36
38
44 inline const Aws::String& GetEndpointName() const{ return m_endpointName; }
45 inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
46 inline void SetEndpointName(const Aws::String& value) { m_endpointNameHasBeenSet = true; m_endpointName = value; }
47 inline void SetEndpointName(Aws::String&& value) { m_endpointNameHasBeenSet = true; m_endpointName = std::move(value); }
48 inline void SetEndpointName(const char* value) { m_endpointNameHasBeenSet = true; m_endpointName.assign(value); }
49 inline InvokeEndpointAsyncRequest& WithEndpointName(const Aws::String& value) { SetEndpointName(value); return *this;}
50 inline InvokeEndpointAsyncRequest& WithEndpointName(Aws::String&& value) { SetEndpointName(std::move(value)); return *this;}
51 inline InvokeEndpointAsyncRequest& WithEndpointName(const char* value) { SetEndpointName(value); return *this;}
53
55
58 inline const Aws::String& GetContentType() const{ return m_contentType; }
59 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
60 inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
61 inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
62 inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
63 inline InvokeEndpointAsyncRequest& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
64 inline InvokeEndpointAsyncRequest& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
65 inline InvokeEndpointAsyncRequest& WithContentType(const char* value) { SetContentType(value); return *this;}
67
69
72 inline const Aws::String& GetAccept() const{ return m_accept; }
73 inline bool AcceptHasBeenSet() const { return m_acceptHasBeenSet; }
74 inline void SetAccept(const Aws::String& value) { m_acceptHasBeenSet = true; m_accept = value; }
75 inline void SetAccept(Aws::String&& value) { m_acceptHasBeenSet = true; m_accept = std::move(value); }
76 inline void SetAccept(const char* value) { m_acceptHasBeenSet = true; m_accept.assign(value); }
77 inline InvokeEndpointAsyncRequest& WithAccept(const Aws::String& value) { SetAccept(value); return *this;}
78 inline InvokeEndpointAsyncRequest& WithAccept(Aws::String&& value) { SetAccept(std::move(value)); return *this;}
79 inline InvokeEndpointAsyncRequest& WithAccept(const char* value) { SetAccept(value); return *this;}
81
83
100 inline const Aws::String& GetCustomAttributes() const{ return m_customAttributes; }
101 inline bool CustomAttributesHasBeenSet() const { return m_customAttributesHasBeenSet; }
102 inline void SetCustomAttributes(const Aws::String& value) { m_customAttributesHasBeenSet = true; m_customAttributes = value; }
103 inline void SetCustomAttributes(Aws::String&& value) { m_customAttributesHasBeenSet = true; m_customAttributes = std::move(value); }
104 inline void SetCustomAttributes(const char* value) { m_customAttributesHasBeenSet = true; m_customAttributes.assign(value); }
106 inline InvokeEndpointAsyncRequest& WithCustomAttributes(Aws::String&& value) { SetCustomAttributes(std::move(value)); return *this;}
107 inline InvokeEndpointAsyncRequest& WithCustomAttributes(const char* value) { SetCustomAttributes(value); return *this;}
109
111
115 inline const Aws::String& GetInferenceId() const{ return m_inferenceId; }
116 inline bool InferenceIdHasBeenSet() const { return m_inferenceIdHasBeenSet; }
117 inline void SetInferenceId(const Aws::String& value) { m_inferenceIdHasBeenSet = true; m_inferenceId = value; }
118 inline void SetInferenceId(Aws::String&& value) { m_inferenceIdHasBeenSet = true; m_inferenceId = std::move(value); }
119 inline void SetInferenceId(const char* value) { m_inferenceIdHasBeenSet = true; m_inferenceId.assign(value); }
120 inline InvokeEndpointAsyncRequest& WithInferenceId(const Aws::String& value) { SetInferenceId(value); return *this;}
121 inline InvokeEndpointAsyncRequest& WithInferenceId(Aws::String&& value) { SetInferenceId(std::move(value)); return *this;}
122 inline InvokeEndpointAsyncRequest& WithInferenceId(const char* value) { SetInferenceId(value); return *this;}
124
126
129 inline const Aws::String& GetInputLocation() const{ return m_inputLocation; }
130 inline bool InputLocationHasBeenSet() const { return m_inputLocationHasBeenSet; }
131 inline void SetInputLocation(const Aws::String& value) { m_inputLocationHasBeenSet = true; m_inputLocation = value; }
132 inline void SetInputLocation(Aws::String&& value) { m_inputLocationHasBeenSet = true; m_inputLocation = std::move(value); }
133 inline void SetInputLocation(const char* value) { m_inputLocationHasBeenSet = true; m_inputLocation.assign(value); }
134 inline InvokeEndpointAsyncRequest& WithInputLocation(const Aws::String& value) { SetInputLocation(value); return *this;}
135 inline InvokeEndpointAsyncRequest& WithInputLocation(Aws::String&& value) { SetInputLocation(std::move(value)); return *this;}
136 inline InvokeEndpointAsyncRequest& WithInputLocation(const char* value) { SetInputLocation(value); return *this;}
138
140
144 inline int GetRequestTTLSeconds() const{ return m_requestTTLSeconds; }
145 inline bool RequestTTLSecondsHasBeenSet() const { return m_requestTTLSecondsHasBeenSet; }
146 inline void SetRequestTTLSeconds(int value) { m_requestTTLSecondsHasBeenSet = true; m_requestTTLSeconds = value; }
149
151
155 inline int GetInvocationTimeoutSeconds() const{ return m_invocationTimeoutSeconds; }
156 inline bool InvocationTimeoutSecondsHasBeenSet() const { return m_invocationTimeoutSecondsHasBeenSet; }
157 inline void SetInvocationTimeoutSeconds(int value) { m_invocationTimeoutSecondsHasBeenSet = true; m_invocationTimeoutSeconds = value; }
160 private:
161
162 Aws::String m_endpointName;
163 bool m_endpointNameHasBeenSet = false;
164
165 Aws::String m_contentType;
166 bool m_contentTypeHasBeenSet = false;
167
168 Aws::String m_accept;
169 bool m_acceptHasBeenSet = false;
170
171 Aws::String m_customAttributes;
172 bool m_customAttributesHasBeenSet = false;
173
174 Aws::String m_inferenceId;
175 bool m_inferenceIdHasBeenSet = false;
176
177 Aws::String m_inputLocation;
178 bool m_inputLocationHasBeenSet = false;
179
180 int m_requestTTLSeconds;
181 bool m_requestTTLSecondsHasBeenSet = false;
182
183 int m_invocationTimeoutSeconds;
184 bool m_invocationTimeoutSecondsHasBeenSet = false;
185 };
186
187} // namespace Model
188} // namespace SageMakerRuntime
189} // namespace Aws
InvokeEndpointAsyncRequest & WithAccept(const char *value)
InvokeEndpointAsyncRequest & WithContentType(Aws::String &&value)
InvokeEndpointAsyncRequest & WithContentType(const Aws::String &value)
InvokeEndpointAsyncRequest & WithContentType(const char *value)
InvokeEndpointAsyncRequest & WithCustomAttributes(const Aws::String &value)
InvokeEndpointAsyncRequest & WithInferenceId(Aws::String &&value)
InvokeEndpointAsyncRequest & WithEndpointName(Aws::String &&value)
InvokeEndpointAsyncRequest & WithAccept(const Aws::String &value)
InvokeEndpointAsyncRequest & WithEndpointName(const char *value)
InvokeEndpointAsyncRequest & WithInputLocation(Aws::String &&value)
AWS_SAGEMAKERRUNTIME_API Aws::String SerializePayload() const override
InvokeEndpointAsyncRequest & WithCustomAttributes(Aws::String &&value)
InvokeEndpointAsyncRequest & WithInferenceId(const char *value)
InvokeEndpointAsyncRequest & WithInferenceId(const Aws::String &value)
InvokeEndpointAsyncRequest & WithInputLocation(const Aws::String &value)
InvokeEndpointAsyncRequest & WithAccept(Aws::String &&value)
InvokeEndpointAsyncRequest & WithInvocationTimeoutSeconds(int value)
InvokeEndpointAsyncRequest & WithInputLocation(const char *value)
InvokeEndpointAsyncRequest & WithCustomAttributes(const char *value)
AWS_SAGEMAKERRUNTIME_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
InvokeEndpointAsyncRequest & WithEndpointName(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String