AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ProductionVariantSummary.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sagemaker/model/ProductionVariantServerlessConfig.h>
11#include <aws/sagemaker/model/ProductionVariantManagedInstanceScaling.h>
12#include <aws/sagemaker/model/ProductionVariantRoutingConfig.h>
13#include <aws/sagemaker/model/DeployedImage.h>
14#include <aws/sagemaker/model/ProductionVariantStatus.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace SageMaker
28{
29namespace Model
30{
31
42 {
43 public:
44 AWS_SAGEMAKER_API ProductionVariantSummary();
47 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
54 inline const Aws::String& GetVariantName() const{ return m_variantName; }
55 inline bool VariantNameHasBeenSet() const { return m_variantNameHasBeenSet; }
56 inline void SetVariantName(const Aws::String& value) { m_variantNameHasBeenSet = true; m_variantName = value; }
57 inline void SetVariantName(Aws::String&& value) { m_variantNameHasBeenSet = true; m_variantName = std::move(value); }
58 inline void SetVariantName(const char* value) { m_variantNameHasBeenSet = true; m_variantName.assign(value); }
59 inline ProductionVariantSummary& WithVariantName(const Aws::String& value) { SetVariantName(value); return *this;}
60 inline ProductionVariantSummary& WithVariantName(Aws::String&& value) { SetVariantName(std::move(value)); return *this;}
61 inline ProductionVariantSummary& WithVariantName(const char* value) { SetVariantName(value); return *this;}
63
65
70 inline const Aws::Vector<DeployedImage>& GetDeployedImages() const{ return m_deployedImages; }
71 inline bool DeployedImagesHasBeenSet() const { return m_deployedImagesHasBeenSet; }
72 inline void SetDeployedImages(const Aws::Vector<DeployedImage>& value) { m_deployedImagesHasBeenSet = true; m_deployedImages = value; }
73 inline void SetDeployedImages(Aws::Vector<DeployedImage>&& value) { m_deployedImagesHasBeenSet = true; m_deployedImages = std::move(value); }
76 inline ProductionVariantSummary& AddDeployedImages(const DeployedImage& value) { m_deployedImagesHasBeenSet = true; m_deployedImages.push_back(value); return *this; }
77 inline ProductionVariantSummary& AddDeployedImages(DeployedImage&& value) { m_deployedImagesHasBeenSet = true; m_deployedImages.push_back(std::move(value)); return *this; }
79
81
84 inline double GetCurrentWeight() const{ return m_currentWeight; }
85 inline bool CurrentWeightHasBeenSet() const { return m_currentWeightHasBeenSet; }
86 inline void SetCurrentWeight(double value) { m_currentWeightHasBeenSet = true; m_currentWeight = value; }
87 inline ProductionVariantSummary& WithCurrentWeight(double value) { SetCurrentWeight(value); return *this;}
89
91
95 inline double GetDesiredWeight() const{ return m_desiredWeight; }
96 inline bool DesiredWeightHasBeenSet() const { return m_desiredWeightHasBeenSet; }
97 inline void SetDesiredWeight(double value) { m_desiredWeightHasBeenSet = true; m_desiredWeight = value; }
98 inline ProductionVariantSummary& WithDesiredWeight(double value) { SetDesiredWeight(value); return *this;}
100
102
105 inline int GetCurrentInstanceCount() const{ return m_currentInstanceCount; }
106 inline bool CurrentInstanceCountHasBeenSet() const { return m_currentInstanceCountHasBeenSet; }
107 inline void SetCurrentInstanceCount(int value) { m_currentInstanceCountHasBeenSet = true; m_currentInstanceCount = value; }
110
112
116 inline int GetDesiredInstanceCount() const{ return m_desiredInstanceCount; }
117 inline bool DesiredInstanceCountHasBeenSet() const { return m_desiredInstanceCountHasBeenSet; }
118 inline void SetDesiredInstanceCount(int value) { m_desiredInstanceCountHasBeenSet = true; m_desiredInstanceCount = value; }
121
123
127 inline const Aws::Vector<ProductionVariantStatus>& GetVariantStatus() const{ return m_variantStatus; }
128 inline bool VariantStatusHasBeenSet() const { return m_variantStatusHasBeenSet; }
129 inline void SetVariantStatus(const Aws::Vector<ProductionVariantStatus>& value) { m_variantStatusHasBeenSet = true; m_variantStatus = value; }
130 inline void SetVariantStatus(Aws::Vector<ProductionVariantStatus>&& value) { m_variantStatusHasBeenSet = true; m_variantStatus = std::move(value); }
133 inline ProductionVariantSummary& AddVariantStatus(const ProductionVariantStatus& value) { m_variantStatusHasBeenSet = true; m_variantStatus.push_back(value); return *this; }
134 inline ProductionVariantSummary& AddVariantStatus(ProductionVariantStatus&& value) { m_variantStatusHasBeenSet = true; m_variantStatus.push_back(std::move(value)); return *this; }
136
138
141 inline const ProductionVariantServerlessConfig& GetCurrentServerlessConfig() const{ return m_currentServerlessConfig; }
142 inline bool CurrentServerlessConfigHasBeenSet() const { return m_currentServerlessConfigHasBeenSet; }
143 inline void SetCurrentServerlessConfig(const ProductionVariantServerlessConfig& value) { m_currentServerlessConfigHasBeenSet = true; m_currentServerlessConfig = value; }
144 inline void SetCurrentServerlessConfig(ProductionVariantServerlessConfig&& value) { m_currentServerlessConfigHasBeenSet = true; m_currentServerlessConfig = std::move(value); }
148
150
153 inline const ProductionVariantServerlessConfig& GetDesiredServerlessConfig() const{ return m_desiredServerlessConfig; }
154 inline bool DesiredServerlessConfigHasBeenSet() const { return m_desiredServerlessConfigHasBeenSet; }
155 inline void SetDesiredServerlessConfig(const ProductionVariantServerlessConfig& value) { m_desiredServerlessConfigHasBeenSet = true; m_desiredServerlessConfig = value; }
156 inline void SetDesiredServerlessConfig(ProductionVariantServerlessConfig&& value) { m_desiredServerlessConfigHasBeenSet = true; m_desiredServerlessConfig = std::move(value); }
160
162
166 inline const ProductionVariantManagedInstanceScaling& GetManagedInstanceScaling() const{ return m_managedInstanceScaling; }
167 inline bool ManagedInstanceScalingHasBeenSet() const { return m_managedInstanceScalingHasBeenSet; }
168 inline void SetManagedInstanceScaling(const ProductionVariantManagedInstanceScaling& value) { m_managedInstanceScalingHasBeenSet = true; m_managedInstanceScaling = value; }
169 inline void SetManagedInstanceScaling(ProductionVariantManagedInstanceScaling&& value) { m_managedInstanceScalingHasBeenSet = true; m_managedInstanceScaling = std::move(value); }
173
175
179 inline const ProductionVariantRoutingConfig& GetRoutingConfig() const{ return m_routingConfig; }
180 inline bool RoutingConfigHasBeenSet() const { return m_routingConfigHasBeenSet; }
181 inline void SetRoutingConfig(const ProductionVariantRoutingConfig& value) { m_routingConfigHasBeenSet = true; m_routingConfig = value; }
182 inline void SetRoutingConfig(ProductionVariantRoutingConfig&& value) { m_routingConfigHasBeenSet = true; m_routingConfig = std::move(value); }
186 private:
187
188 Aws::String m_variantName;
189 bool m_variantNameHasBeenSet = false;
190
191 Aws::Vector<DeployedImage> m_deployedImages;
192 bool m_deployedImagesHasBeenSet = false;
193
194 double m_currentWeight;
195 bool m_currentWeightHasBeenSet = false;
196
197 double m_desiredWeight;
198 bool m_desiredWeightHasBeenSet = false;
199
200 int m_currentInstanceCount;
201 bool m_currentInstanceCountHasBeenSet = false;
202
203 int m_desiredInstanceCount;
204 bool m_desiredInstanceCountHasBeenSet = false;
205
207 bool m_variantStatusHasBeenSet = false;
208
209 ProductionVariantServerlessConfig m_currentServerlessConfig;
210 bool m_currentServerlessConfigHasBeenSet = false;
211
212 ProductionVariantServerlessConfig m_desiredServerlessConfig;
213 bool m_desiredServerlessConfigHasBeenSet = false;
214
215 ProductionVariantManagedInstanceScaling m_managedInstanceScaling;
216 bool m_managedInstanceScalingHasBeenSet = false;
217
218 ProductionVariantRoutingConfig m_routingConfig;
219 bool m_routingConfigHasBeenSet = false;
220 };
221
222} // namespace Model
223} // namespace SageMaker
224} // namespace Aws
ProductionVariantSummary & AddDeployedImages(const DeployedImage &value)
void SetDeployedImages(const Aws::Vector< DeployedImage > &value)
ProductionVariantSummary & WithCurrentServerlessConfig(const ProductionVariantServerlessConfig &value)
ProductionVariantSummary & WithVariantName(const char *value)
void SetDeployedImages(Aws::Vector< DeployedImage > &&value)
ProductionVariantSummary & WithDesiredWeight(double value)
ProductionVariantSummary & WithVariantStatus(const Aws::Vector< ProductionVariantStatus > &value)
ProductionVariantSummary & WithDeployedImages(const Aws::Vector< DeployedImage > &value)
void SetCurrentServerlessConfig(ProductionVariantServerlessConfig &&value)
ProductionVariantSummary & WithDeployedImages(Aws::Vector< DeployedImage > &&value)
ProductionVariantSummary & WithManagedInstanceScaling(const ProductionVariantManagedInstanceScaling &value)
const ProductionVariantManagedInstanceScaling & GetManagedInstanceScaling() const
AWS_SAGEMAKER_API ProductionVariantSummary(Aws::Utils::Json::JsonView jsonValue)
ProductionVariantSummary & AddVariantStatus(const ProductionVariantStatus &value)
void SetVariantStatus(const Aws::Vector< ProductionVariantStatus > &value)
ProductionVariantSummary & WithCurrentInstanceCount(int value)
const Aws::Vector< DeployedImage > & GetDeployedImages() const
ProductionVariantSummary & WithDesiredInstanceCount(int value)
ProductionVariantSummary & WithVariantStatus(Aws::Vector< ProductionVariantStatus > &&value)
void SetCurrentServerlessConfig(const ProductionVariantServerlessConfig &value)
ProductionVariantSummary & WithDesiredServerlessConfig(const ProductionVariantServerlessConfig &value)
void SetRoutingConfig(ProductionVariantRoutingConfig &&value)
ProductionVariantSummary & WithVariantName(const Aws::String &value)
void SetVariantStatus(Aws::Vector< ProductionVariantStatus > &&value)
ProductionVariantSummary & WithDesiredServerlessConfig(ProductionVariantServerlessConfig &&value)
ProductionVariantSummary & AddVariantStatus(ProductionVariantStatus &&value)
const ProductionVariantRoutingConfig & GetRoutingConfig() const
ProductionVariantSummary & WithManagedInstanceScaling(ProductionVariantManagedInstanceScaling &&value)
const ProductionVariantServerlessConfig & GetDesiredServerlessConfig() const
ProductionVariantSummary & AddDeployedImages(DeployedImage &&value)
void SetDesiredServerlessConfig(ProductionVariantServerlessConfig &&value)
ProductionVariantSummary & WithVariantName(Aws::String &&value)
void SetRoutingConfig(const ProductionVariantRoutingConfig &value)
AWS_SAGEMAKER_API ProductionVariantSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ProductionVariantSummary & WithCurrentServerlessConfig(ProductionVariantServerlessConfig &&value)
void SetManagedInstanceScaling(const ProductionVariantManagedInstanceScaling &value)
ProductionVariantSummary & WithRoutingConfig(const ProductionVariantRoutingConfig &value)
ProductionVariantSummary & WithRoutingConfig(ProductionVariantRoutingConfig &&value)
void SetDesiredServerlessConfig(const ProductionVariantServerlessConfig &value)
ProductionVariantSummary & WithCurrentWeight(double value)
const ProductionVariantServerlessConfig & GetCurrentServerlessConfig() const
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< ProductionVariantStatus > & GetVariantStatus() const
void SetManagedInstanceScaling(ProductionVariantManagedInstanceScaling &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue