AWS SDK for C++  1.9.158
AWS SDK for C++
ProductionVariantSummary.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace SageMaker
26 {
27 namespace Model
28 {
29 
40  {
41  public:
46 
47 
51  inline const Aws::String& GetVariantName() const{ return m_variantName; }
52 
56  inline bool VariantNameHasBeenSet() const { return m_variantNameHasBeenSet; }
57 
61  inline void SetVariantName(const Aws::String& value) { m_variantNameHasBeenSet = true; m_variantName = value; }
62 
66  inline void SetVariantName(Aws::String&& value) { m_variantNameHasBeenSet = true; m_variantName = std::move(value); }
67 
71  inline void SetVariantName(const char* value) { m_variantNameHasBeenSet = true; m_variantName.assign(value); }
72 
76  inline ProductionVariantSummary& WithVariantName(const Aws::String& value) { SetVariantName(value); return *this;}
77 
81  inline ProductionVariantSummary& WithVariantName(Aws::String&& value) { SetVariantName(std::move(value)); return *this;}
82 
86  inline ProductionVariantSummary& WithVariantName(const char* value) { SetVariantName(value); return *this;}
87 
88 
94  inline const Aws::Vector<DeployedImage>& GetDeployedImages() const{ return m_deployedImages; }
95 
101  inline bool DeployedImagesHasBeenSet() const { return m_deployedImagesHasBeenSet; }
102 
108  inline void SetDeployedImages(const Aws::Vector<DeployedImage>& value) { m_deployedImagesHasBeenSet = true; m_deployedImages = value; }
109 
115  inline void SetDeployedImages(Aws::Vector<DeployedImage>&& value) { m_deployedImagesHasBeenSet = true; m_deployedImages = std::move(value); }
116 
122  inline ProductionVariantSummary& WithDeployedImages(const Aws::Vector<DeployedImage>& value) { SetDeployedImages(value); return *this;}
123 
129  inline ProductionVariantSummary& WithDeployedImages(Aws::Vector<DeployedImage>&& value) { SetDeployedImages(std::move(value)); return *this;}
130 
136  inline ProductionVariantSummary& AddDeployedImages(const DeployedImage& value) { m_deployedImagesHasBeenSet = true; m_deployedImages.push_back(value); return *this; }
137 
143  inline ProductionVariantSummary& AddDeployedImages(DeployedImage&& value) { m_deployedImagesHasBeenSet = true; m_deployedImages.push_back(std::move(value)); return *this; }
144 
145 
149  inline double GetCurrentWeight() const{ return m_currentWeight; }
150 
154  inline bool CurrentWeightHasBeenSet() const { return m_currentWeightHasBeenSet; }
155 
159  inline void SetCurrentWeight(double value) { m_currentWeightHasBeenSet = true; m_currentWeight = value; }
160 
164  inline ProductionVariantSummary& WithCurrentWeight(double value) { SetCurrentWeight(value); return *this;}
165 
166 
171  inline double GetDesiredWeight() const{ return m_desiredWeight; }
172 
177  inline bool DesiredWeightHasBeenSet() const { return m_desiredWeightHasBeenSet; }
178 
183  inline void SetDesiredWeight(double value) { m_desiredWeightHasBeenSet = true; m_desiredWeight = value; }
184 
189  inline ProductionVariantSummary& WithDesiredWeight(double value) { SetDesiredWeight(value); return *this;}
190 
191 
195  inline int GetCurrentInstanceCount() const{ return m_currentInstanceCount; }
196 
200  inline bool CurrentInstanceCountHasBeenSet() const { return m_currentInstanceCountHasBeenSet; }
201 
205  inline void SetCurrentInstanceCount(int value) { m_currentInstanceCountHasBeenSet = true; m_currentInstanceCount = value; }
206 
210  inline ProductionVariantSummary& WithCurrentInstanceCount(int value) { SetCurrentInstanceCount(value); return *this;}
211 
212 
217  inline int GetDesiredInstanceCount() const{ return m_desiredInstanceCount; }
218 
223  inline bool DesiredInstanceCountHasBeenSet() const { return m_desiredInstanceCountHasBeenSet; }
224 
229  inline void SetDesiredInstanceCount(int value) { m_desiredInstanceCountHasBeenSet = true; m_desiredInstanceCount = value; }
230 
235  inline ProductionVariantSummary& WithDesiredInstanceCount(int value) { SetDesiredInstanceCount(value); return *this;}
236 
237 
242  inline const Aws::Vector<ProductionVariantStatus>& GetVariantStatus() const{ return m_variantStatus; }
243 
248  inline bool VariantStatusHasBeenSet() const { return m_variantStatusHasBeenSet; }
249 
254  inline void SetVariantStatus(const Aws::Vector<ProductionVariantStatus>& value) { m_variantStatusHasBeenSet = true; m_variantStatus = value; }
255 
260  inline void SetVariantStatus(Aws::Vector<ProductionVariantStatus>&& value) { m_variantStatusHasBeenSet = true; m_variantStatus = std::move(value); }
261 
266  inline ProductionVariantSummary& WithVariantStatus(const Aws::Vector<ProductionVariantStatus>& value) { SetVariantStatus(value); return *this;}
267 
272  inline ProductionVariantSummary& WithVariantStatus(Aws::Vector<ProductionVariantStatus>&& value) { SetVariantStatus(std::move(value)); return *this;}
273 
278  inline ProductionVariantSummary& AddVariantStatus(const ProductionVariantStatus& value) { m_variantStatusHasBeenSet = true; m_variantStatus.push_back(value); return *this; }
279 
284  inline ProductionVariantSummary& AddVariantStatus(ProductionVariantStatus&& value) { m_variantStatusHasBeenSet = true; m_variantStatus.push_back(std::move(value)); return *this; }
285 
286 
292  inline const ProductionVariantServerlessConfig& GetCurrentServerlessConfig() const{ return m_currentServerlessConfig; }
293 
299  inline bool CurrentServerlessConfigHasBeenSet() const { return m_currentServerlessConfigHasBeenSet; }
300 
306  inline void SetCurrentServerlessConfig(const ProductionVariantServerlessConfig& value) { m_currentServerlessConfigHasBeenSet = true; m_currentServerlessConfig = value; }
307 
313  inline void SetCurrentServerlessConfig(ProductionVariantServerlessConfig&& value) { m_currentServerlessConfigHasBeenSet = true; m_currentServerlessConfig = std::move(value); }
314 
320  inline ProductionVariantSummary& WithCurrentServerlessConfig(const ProductionVariantServerlessConfig& value) { SetCurrentServerlessConfig(value); return *this;}
321 
327  inline ProductionVariantSummary& WithCurrentServerlessConfig(ProductionVariantServerlessConfig&& value) { SetCurrentServerlessConfig(std::move(value)); return *this;}
328 
329 
336  inline const ProductionVariantServerlessConfig& GetDesiredServerlessConfig() const{ return m_desiredServerlessConfig; }
337 
344  inline bool DesiredServerlessConfigHasBeenSet() const { return m_desiredServerlessConfigHasBeenSet; }
345 
352  inline void SetDesiredServerlessConfig(const ProductionVariantServerlessConfig& value) { m_desiredServerlessConfigHasBeenSet = true; m_desiredServerlessConfig = value; }
353 
360  inline void SetDesiredServerlessConfig(ProductionVariantServerlessConfig&& value) { m_desiredServerlessConfigHasBeenSet = true; m_desiredServerlessConfig = std::move(value); }
361 
368  inline ProductionVariantSummary& WithDesiredServerlessConfig(const ProductionVariantServerlessConfig& value) { SetDesiredServerlessConfig(value); return *this;}
369 
376  inline ProductionVariantSummary& WithDesiredServerlessConfig(ProductionVariantServerlessConfig&& value) { SetDesiredServerlessConfig(std::move(value)); return *this;}
377 
378  private:
379 
380  Aws::String m_variantName;
381  bool m_variantNameHasBeenSet;
382 
383  Aws::Vector<DeployedImage> m_deployedImages;
384  bool m_deployedImagesHasBeenSet;
385 
386  double m_currentWeight;
387  bool m_currentWeightHasBeenSet;
388 
389  double m_desiredWeight;
390  bool m_desiredWeightHasBeenSet;
391 
392  int m_currentInstanceCount;
393  bool m_currentInstanceCountHasBeenSet;
394 
395  int m_desiredInstanceCount;
396  bool m_desiredInstanceCountHasBeenSet;
397 
398  Aws::Vector<ProductionVariantStatus> m_variantStatus;
399  bool m_variantStatusHasBeenSet;
400 
401  ProductionVariantServerlessConfig m_currentServerlessConfig;
402  bool m_currentServerlessConfigHasBeenSet;
403 
404  ProductionVariantServerlessConfig m_desiredServerlessConfig;
405  bool m_desiredServerlessConfigHasBeenSet;
406  };
407 
408 } // namespace Model
409 } // namespace SageMaker
410 } // namespace Aws
Aws::SageMaker::Model::ProductionVariantSummary::GetDeployedImages
const Aws::Vector< DeployedImage > & GetDeployedImages() const
Definition: ProductionVariantSummary.h:94
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
Aws::SageMaker::Model::ProductionVariantSummary::SetVariantStatus
void SetVariantStatus(const Aws::Vector< ProductionVariantStatus > &value)
Definition: ProductionVariantSummary.h:254
SageMaker_EXPORTS.h
Aws::SageMaker::Model::ProductionVariantSummary::GetVariantName
const Aws::String & GetVariantName() const
Definition: ProductionVariantSummary.h:51
Aws::SageMaker::Model::ProductionVariantSummary::WithVariantName
ProductionVariantSummary & WithVariantName(const Aws::String &value)
Definition: ProductionVariantSummary.h:76
Aws::SageMaker::Model::ProductionVariantSummary::DesiredServerlessConfigHasBeenSet
bool DesiredServerlessConfigHasBeenSet() const
Definition: ProductionVariantSummary.h:344
Aws::SageMaker::Model::ProductionVariantSummary::DesiredInstanceCountHasBeenSet
bool DesiredInstanceCountHasBeenSet() const
Definition: ProductionVariantSummary.h:223
Aws::SageMaker::Model::ProductionVariantSummary::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SageMaker::Model::ProductionVariantSummary::GetDesiredWeight
double GetDesiredWeight() const
Definition: ProductionVariantSummary.h:171
ProductionVariantStatus.h
Aws::SageMaker::Model::ProductionVariantSummary::GetDesiredInstanceCount
int GetDesiredInstanceCount() const
Definition: ProductionVariantSummary.h:217
Aws::SageMaker::Model::ProductionVariantSummary::CurrentWeightHasBeenSet
bool CurrentWeightHasBeenSet() const
Definition: ProductionVariantSummary.h:154
DeployedImage.h
Aws::SageMaker::Model::ProductionVariantSummary::WithVariantName
ProductionVariantSummary & WithVariantName(Aws::String &&value)
Definition: ProductionVariantSummary.h:81
Aws::SageMaker::Model::ProductionVariantSummary::WithVariantStatus
ProductionVariantSummary & WithVariantStatus(const Aws::Vector< ProductionVariantStatus > &value)
Definition: ProductionVariantSummary.h:266
Aws::SageMaker::Model::ProductionVariantSummary::SetVariantName
void SetVariantName(Aws::String &&value)
Definition: ProductionVariantSummary.h:66
Aws::SageMaker::Model::ProductionVariantSummary
Definition: ProductionVariantSummary.h:40
Aws::SageMaker::Model::ProductionVariantSummary::CurrentServerlessConfigHasBeenSet
bool CurrentServerlessConfigHasBeenSet() const
Definition: ProductionVariantSummary.h:299
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
ProductionVariantServerlessConfig.h
AWSVector.h
Aws::SageMaker::Model::ProductionVariantSummary::DesiredWeightHasBeenSet
bool DesiredWeightHasBeenSet() const
Definition: ProductionVariantSummary.h:177
Aws::SageMaker::Model::ProductionVariantSummary::AddDeployedImages
ProductionVariantSummary & AddDeployedImages(DeployedImage &&value)
Definition: ProductionVariantSummary.h:143
Aws::SageMaker::Model::ProductionVariantSummary::WithVariantStatus
ProductionVariantSummary & WithVariantStatus(Aws::Vector< ProductionVariantStatus > &&value)
Definition: ProductionVariantSummary.h:272
Aws::SageMaker::Model::ProductionVariantSummary::CurrentInstanceCountHasBeenSet
bool CurrentInstanceCountHasBeenSet() const
Definition: ProductionVariantSummary.h:200
Aws::SageMaker::Model::ProductionVariantServerlessConfig
Definition: ProductionVariantServerlessConfig.h:33
Aws::SageMaker::Model::ProductionVariantSummary::WithDesiredWeight
ProductionVariantSummary & WithDesiredWeight(double value)
Definition: ProductionVariantSummary.h:189
Aws::SageMaker::Model::ProductionVariantSummary::SetVariantStatus
void SetVariantStatus(Aws::Vector< ProductionVariantStatus > &&value)
Definition: ProductionVariantSummary.h:260
Aws::SageMaker::Model::ProductionVariantSummary::SetDesiredWeight
void SetDesiredWeight(double value)
Definition: ProductionVariantSummary.h:183
Aws::SageMaker::Model::ProductionVariantSummary::GetDesiredServerlessConfig
const ProductionVariantServerlessConfig & GetDesiredServerlessConfig() const
Definition: ProductionVariantSummary.h:336
Aws::SageMaker::Model::ProductionVariantSummary::WithVariantName
ProductionVariantSummary & WithVariantName(const char *value)
Definition: ProductionVariantSummary.h:86
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::ProductionVariantSummary::SetVariantName
void SetVariantName(const char *value)
Definition: ProductionVariantSummary.h:71
Aws::SageMaker::Model::ProductionVariantSummary::SetDeployedImages
void SetDeployedImages(Aws::Vector< DeployedImage > &&value)
Definition: ProductionVariantSummary.h:115
Aws::SageMaker::Model::ProductionVariantSummary::GetCurrentWeight
double GetCurrentWeight() const
Definition: ProductionVariantSummary.h:149
Aws::SageMaker::Model::ProductionVariantSummary::SetDesiredServerlessConfig
void SetDesiredServerlessConfig(const ProductionVariantServerlessConfig &value)
Definition: ProductionVariantSummary.h:352
Aws::SageMaker::Model::ProductionVariantSummary::AddVariantStatus
ProductionVariantSummary & AddVariantStatus(ProductionVariantStatus &&value)
Definition: ProductionVariantSummary.h:284
Aws::SageMaker::Model::ProductionVariantSummary::AddVariantStatus
ProductionVariantSummary & AddVariantStatus(const ProductionVariantStatus &value)
Definition: ProductionVariantSummary.h:278
Aws::SageMaker::Model::ProductionVariantSummary::GetCurrentServerlessConfig
const ProductionVariantServerlessConfig & GetCurrentServerlessConfig() const
Definition: ProductionVariantSummary.h:292
Aws::SageMaker::Model::ProductionVariantStatus
Definition: ProductionVariantStatus.h:34
Aws::SageMaker::Model::ProductionVariantSummary::WithDeployedImages
ProductionVariantSummary & WithDeployedImages(Aws::Vector< DeployedImage > &&value)
Definition: ProductionVariantSummary.h:129
Aws::SageMaker::Model::ProductionVariantSummary::WithDesiredServerlessConfig
ProductionVariantSummary & WithDesiredServerlessConfig(ProductionVariantServerlessConfig &&value)
Definition: ProductionVariantSummary.h:376
Aws::SageMaker::Model::ProductionVariantSummary::WithCurrentInstanceCount
ProductionVariantSummary & WithCurrentInstanceCount(int value)
Definition: ProductionVariantSummary.h:210
Aws::SageMaker::Model::ProductionVariantSummary::GetCurrentInstanceCount
int GetCurrentInstanceCount() const
Definition: ProductionVariantSummary.h:195
Aws::SageMaker::Model::ProductionVariantSummary::WithCurrentWeight
ProductionVariantSummary & WithCurrentWeight(double value)
Definition: ProductionVariantSummary.h:164
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SageMaker::Model::ProductionVariantSummary::SetCurrentServerlessConfig
void SetCurrentServerlessConfig(const ProductionVariantServerlessConfig &value)
Definition: ProductionVariantSummary.h:306
Aws::SageMaker::Model::ProductionVariantSummary::WithDesiredServerlessConfig
ProductionVariantSummary & WithDesiredServerlessConfig(const ProductionVariantServerlessConfig &value)
Definition: ProductionVariantSummary.h:368
Aws::SageMaker::Model::ProductionVariantSummary::SetVariantName
void SetVariantName(const Aws::String &value)
Definition: ProductionVariantSummary.h:61
Aws::SageMaker::Model::ProductionVariantSummary::operator=
ProductionVariantSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SageMaker::Model::ProductionVariantSummary::DeployedImagesHasBeenSet
bool DeployedImagesHasBeenSet() const
Definition: ProductionVariantSummary.h:101
Aws::SageMaker::Model::ProductionVariantSummary::VariantNameHasBeenSet
bool VariantNameHasBeenSet() const
Definition: ProductionVariantSummary.h:56
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::SageMaker::Model::ProductionVariantSummary::SetDeployedImages
void SetDeployedImages(const Aws::Vector< DeployedImage > &value)
Definition: ProductionVariantSummary.h:108
Aws::SageMaker::Model::ProductionVariantSummary::SetCurrentInstanceCount
void SetCurrentInstanceCount(int value)
Definition: ProductionVariantSummary.h:205
Aws::SageMaker::Model::ProductionVariantSummary::AddDeployedImages
ProductionVariantSummary & AddDeployedImages(const DeployedImage &value)
Definition: ProductionVariantSummary.h:136
Aws::SageMaker::Model::ProductionVariantSummary::WithCurrentServerlessConfig
ProductionVariantSummary & WithCurrentServerlessConfig(ProductionVariantServerlessConfig &&value)
Definition: ProductionVariantSummary.h:327
Aws::SageMaker::Model::ProductionVariantSummary::SetDesiredServerlessConfig
void SetDesiredServerlessConfig(ProductionVariantServerlessConfig &&value)
Definition: ProductionVariantSummary.h:360
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::DeployedImage
Definition: DeployedImage.h:42
Aws::SageMaker::Model::ProductionVariantSummary::SetDesiredInstanceCount
void SetDesiredInstanceCount(int value)
Definition: ProductionVariantSummary.h:229
Aws::SageMaker::Model::ProductionVariantSummary::VariantStatusHasBeenSet
bool VariantStatusHasBeenSet() const
Definition: ProductionVariantSummary.h:248
Aws::SageMaker::Model::ProductionVariantSummary::WithCurrentServerlessConfig
ProductionVariantSummary & WithCurrentServerlessConfig(const ProductionVariantServerlessConfig &value)
Definition: ProductionVariantSummary.h:320
Aws::SageMaker::Model::ProductionVariantSummary::SetCurrentWeight
void SetCurrentWeight(double value)
Definition: ProductionVariantSummary.h:159
Aws::SageMaker::Model::ProductionVariantSummary::GetVariantStatus
const Aws::Vector< ProductionVariantStatus > & GetVariantStatus() const
Definition: ProductionVariantSummary.h:242
Aws::SageMaker::Model::ProductionVariantSummary::ProductionVariantSummary
ProductionVariantSummary(Aws::Utils::Json::JsonView jsonValue)
Aws::SageMaker::Model::ProductionVariantSummary::WithDeployedImages
ProductionVariantSummary & WithDeployedImages(const Aws::Vector< DeployedImage > &value)
Definition: ProductionVariantSummary.h:122
Aws::SageMaker::Model::ProductionVariantSummary::SetCurrentServerlessConfig
void SetCurrentServerlessConfig(ProductionVariantServerlessConfig &&value)
Definition: ProductionVariantSummary.h:313
Aws::SageMaker::Model::ProductionVariantSummary::WithDesiredInstanceCount
ProductionVariantSummary & WithDesiredInstanceCount(int value)
Definition: ProductionVariantSummary.h:235
Aws::SageMaker::Model::ProductionVariantSummary::ProductionVariantSummary
ProductionVariantSummary()