AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
ModelVariantConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sagemaker/SageMaker_EXPORTS.h>
9#include <aws/sagemaker/model/ModelInfrastructureConfig.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 ModelVariantConfig() = default;
32 AWS_SAGEMAKER_API ModelVariantConfig(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetModelName() const { return m_modelName; }
41 inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; }
42 template <typename ModelNameT = Aws::String>
43 void SetModelName(ModelNameT&& value) {
44 m_modelNameHasBeenSet = true;
45 m_modelName = std::forward<ModelNameT>(value);
46 }
47 template <typename ModelNameT = Aws::String>
48 ModelVariantConfig& WithModelName(ModelNameT&& value) {
49 SetModelName(std::forward<ModelNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetVariantName() const { return m_variantName; }
59 inline bool VariantNameHasBeenSet() const { return m_variantNameHasBeenSet; }
60 template <typename VariantNameT = Aws::String>
61 void SetVariantName(VariantNameT&& value) {
62 m_variantNameHasBeenSet = true;
63 m_variantName = std::forward<VariantNameT>(value);
64 }
65 template <typename VariantNameT = Aws::String>
66 ModelVariantConfig& WithVariantName(VariantNameT&& value) {
67 SetVariantName(std::forward<VariantNameT>(value));
68 return *this;
69 }
71
73
77 inline const ModelInfrastructureConfig& GetInfrastructureConfig() const { return m_infrastructureConfig; }
78 inline bool InfrastructureConfigHasBeenSet() const { return m_infrastructureConfigHasBeenSet; }
79 template <typename InfrastructureConfigT = ModelInfrastructureConfig>
80 void SetInfrastructureConfig(InfrastructureConfigT&& value) {
81 m_infrastructureConfigHasBeenSet = true;
82 m_infrastructureConfig = std::forward<InfrastructureConfigT>(value);
83 }
84 template <typename InfrastructureConfigT = ModelInfrastructureConfig>
85 ModelVariantConfig& WithInfrastructureConfig(InfrastructureConfigT&& value) {
86 SetInfrastructureConfig(std::forward<InfrastructureConfigT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_modelName;
92
93 Aws::String m_variantName;
94
95 ModelInfrastructureConfig m_infrastructureConfig;
96 bool m_modelNameHasBeenSet = false;
97 bool m_variantNameHasBeenSet = false;
98 bool m_infrastructureConfigHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace SageMaker
103} // namespace Aws
AWS_SAGEMAKER_API ModelVariantConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API ModelVariantConfig()=default
void SetInfrastructureConfig(InfrastructureConfigT &&value)
ModelVariantConfig & WithVariantName(VariantNameT &&value)
AWS_SAGEMAKER_API ModelVariantConfig(Aws::Utils::Json::JsonView jsonValue)
ModelVariantConfig & WithModelName(ModelNameT &&value)
ModelVariantConfig & WithInfrastructureConfig(InfrastructureConfigT &&value)
const ModelInfrastructureConfig & GetInfrastructureConfig() const
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue