AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
AsyncInferenceConfig.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/AsyncInferenceClientConfig.h>
9#include <aws/sagemaker/model/AsyncInferenceOutputConfig.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SageMaker {
21namespace Model {
22
30 public:
31 AWS_SAGEMAKER_API AsyncInferenceConfig() = default;
34 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const AsyncInferenceClientConfig& GetClientConfig() const { return m_clientConfig; }
42 inline bool ClientConfigHasBeenSet() const { return m_clientConfigHasBeenSet; }
43 template <typename ClientConfigT = AsyncInferenceClientConfig>
44 void SetClientConfig(ClientConfigT&& value) {
45 m_clientConfigHasBeenSet = true;
46 m_clientConfig = std::forward<ClientConfigT>(value);
47 }
48 template <typename ClientConfigT = AsyncInferenceClientConfig>
49 AsyncInferenceConfig& WithClientConfig(ClientConfigT&& value) {
50 SetClientConfig(std::forward<ClientConfigT>(value));
51 return *this;
52 }
54
56
60 inline const AsyncInferenceOutputConfig& GetOutputConfig() const { return m_outputConfig; }
61 inline bool OutputConfigHasBeenSet() const { return m_outputConfigHasBeenSet; }
62 template <typename OutputConfigT = AsyncInferenceOutputConfig>
63 void SetOutputConfig(OutputConfigT&& value) {
64 m_outputConfigHasBeenSet = true;
65 m_outputConfig = std::forward<OutputConfigT>(value);
66 }
67 template <typename OutputConfigT = AsyncInferenceOutputConfig>
68 AsyncInferenceConfig& WithOutputConfig(OutputConfigT&& value) {
69 SetOutputConfig(std::forward<OutputConfigT>(value));
70 return *this;
71 }
73 private:
74 AsyncInferenceClientConfig m_clientConfig;
75
76 AsyncInferenceOutputConfig m_outputConfig;
77 bool m_clientConfigHasBeenSet = false;
78 bool m_outputConfigHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace SageMaker
83} // namespace Aws
AWS_SAGEMAKER_API AsyncInferenceConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API AsyncInferenceConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AsyncInferenceConfig & WithOutputConfig(OutputConfigT &&value)
AsyncInferenceConfig & WithClientConfig(ClientConfigT &&value)
const AsyncInferenceOutputConfig & GetOutputConfig() const
AWS_SAGEMAKER_API AsyncInferenceConfig()=default
const AsyncInferenceClientConfig & GetClientConfig() const
Aws::Utils::Json::JsonValue JsonValue