AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ModelVariantConfigSummary.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#include <aws/sagemaker/model/ModelVariantStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SageMaker {
22namespace Model {
23
31 public:
32 AWS_SAGEMAKER_API ModelVariantConfigSummary() = default;
35 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetModelName() const { return m_modelName; }
42 inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; }
43 template <typename ModelNameT = Aws::String>
44 void SetModelName(ModelNameT&& value) {
45 m_modelNameHasBeenSet = true;
46 m_modelName = std::forward<ModelNameT>(value);
47 }
48 template <typename ModelNameT = Aws::String>
50 SetModelName(std::forward<ModelNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetVariantName() const { return m_variantName; }
60 inline bool VariantNameHasBeenSet() const { return m_variantNameHasBeenSet; }
61 template <typename VariantNameT = Aws::String>
62 void SetVariantName(VariantNameT&& value) {
63 m_variantNameHasBeenSet = true;
64 m_variantName = std::forward<VariantNameT>(value);
65 }
66 template <typename VariantNameT = Aws::String>
68 SetVariantName(std::forward<VariantNameT>(value));
69 return *this;
70 }
72
74
78 inline const ModelInfrastructureConfig& GetInfrastructureConfig() const { return m_infrastructureConfig; }
79 inline bool InfrastructureConfigHasBeenSet() const { return m_infrastructureConfigHasBeenSet; }
80 template <typename InfrastructureConfigT = ModelInfrastructureConfig>
81 void SetInfrastructureConfig(InfrastructureConfigT&& value) {
82 m_infrastructureConfigHasBeenSet = true;
83 m_infrastructureConfig = std::forward<InfrastructureConfigT>(value);
84 }
85 template <typename InfrastructureConfigT = ModelInfrastructureConfig>
86 ModelVariantConfigSummary& WithInfrastructureConfig(InfrastructureConfigT&& value) {
87 SetInfrastructureConfig(std::forward<InfrastructureConfigT>(value));
88 return *this;
89 }
91
93
105 inline ModelVariantStatus GetStatus() const { return m_status; }
106 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
107 inline void SetStatus(ModelVariantStatus value) {
108 m_statusHasBeenSet = true;
109 m_status = value;
110 }
112 SetStatus(value);
113 return *this;
114 }
116 private:
117 Aws::String m_modelName;
118
119 Aws::String m_variantName;
120
121 ModelInfrastructureConfig m_infrastructureConfig;
122
124 bool m_modelNameHasBeenSet = false;
125 bool m_variantNameHasBeenSet = false;
126 bool m_infrastructureConfigHasBeenSet = false;
127 bool m_statusHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace SageMaker
132} // namespace Aws
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ModelVariantConfigSummary & WithVariantName(VariantNameT &&value)
void SetInfrastructureConfig(InfrastructureConfigT &&value)
ModelVariantConfigSummary & WithInfrastructureConfig(InfrastructureConfigT &&value)
AWS_SAGEMAKER_API ModelVariantConfigSummary(Aws::Utils::Json::JsonView jsonValue)
ModelVariantConfigSummary & WithStatus(ModelVariantStatus value)
AWS_SAGEMAKER_API ModelVariantConfigSummary()=default
ModelVariantConfigSummary & WithModelName(ModelNameT &&value)
const ModelInfrastructureConfig & GetInfrastructureConfig() const
AWS_SAGEMAKER_API ModelVariantConfigSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue