AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
ModelInfrastructureConfig.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/ModelInfrastructureType.h>
9#include <aws/sagemaker/model/RealTimeInferenceConfig.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 ModelInfrastructureConfig() = default;
34 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline ModelInfrastructureType GetInfrastructureType() const { return m_infrastructureType; }
43 inline bool InfrastructureTypeHasBeenSet() const { return m_infrastructureTypeHasBeenSet; }
45 m_infrastructureTypeHasBeenSet = true;
46 m_infrastructureType = value;
47 }
50 return *this;
51 }
53
55
59 inline const RealTimeInferenceConfig& GetRealTimeInferenceConfig() const { return m_realTimeInferenceConfig; }
60 inline bool RealTimeInferenceConfigHasBeenSet() const { return m_realTimeInferenceConfigHasBeenSet; }
61 template <typename RealTimeInferenceConfigT = RealTimeInferenceConfig>
62 void SetRealTimeInferenceConfig(RealTimeInferenceConfigT&& value) {
63 m_realTimeInferenceConfigHasBeenSet = true;
64 m_realTimeInferenceConfig = std::forward<RealTimeInferenceConfigT>(value);
65 }
66 template <typename RealTimeInferenceConfigT = RealTimeInferenceConfig>
67 ModelInfrastructureConfig& WithRealTimeInferenceConfig(RealTimeInferenceConfigT&& value) {
68 SetRealTimeInferenceConfig(std::forward<RealTimeInferenceConfigT>(value));
69 return *this;
70 }
72 private:
74
75 RealTimeInferenceConfig m_realTimeInferenceConfig;
76 bool m_infrastructureTypeHasBeenSet = false;
77 bool m_realTimeInferenceConfigHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace SageMaker
82} // namespace Aws
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRealTimeInferenceConfig(RealTimeInferenceConfigT &&value)
const RealTimeInferenceConfig & GetRealTimeInferenceConfig() const
AWS_SAGEMAKER_API ModelInfrastructureConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API ModelInfrastructureConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
ModelInfrastructureConfig & WithRealTimeInferenceConfig(RealTimeInferenceConfigT &&value)
ModelInfrastructureConfig & WithInfrastructureType(ModelInfrastructureType value)
void SetInfrastructureType(ModelInfrastructureType value)
AWS_SAGEMAKER_API ModelInfrastructureConfig()=default
Aws::Utils::Json::JsonValue JsonValue