AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DesiredWeightAndCapacity.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/model/ProductionVariantServerlessUpdateConfig.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SageMaker
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SAGEMAKER_API DesiredWeightAndCapacity();
39 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetVariantName() const{ return m_variantName; }
47 inline bool VariantNameHasBeenSet() const { return m_variantNameHasBeenSet; }
48 inline void SetVariantName(const Aws::String& value) { m_variantNameHasBeenSet = true; m_variantName = value; }
49 inline void SetVariantName(Aws::String&& value) { m_variantNameHasBeenSet = true; m_variantName = std::move(value); }
50 inline void SetVariantName(const char* value) { m_variantNameHasBeenSet = true; m_variantName.assign(value); }
51 inline DesiredWeightAndCapacity& WithVariantName(const Aws::String& value) { SetVariantName(value); return *this;}
52 inline DesiredWeightAndCapacity& WithVariantName(Aws::String&& value) { SetVariantName(std::move(value)); return *this;}
53 inline DesiredWeightAndCapacity& WithVariantName(const char* value) { SetVariantName(value); return *this;}
55
57
60 inline double GetDesiredWeight() const{ return m_desiredWeight; }
61 inline bool DesiredWeightHasBeenSet() const { return m_desiredWeightHasBeenSet; }
62 inline void SetDesiredWeight(double value) { m_desiredWeightHasBeenSet = true; m_desiredWeight = value; }
63 inline DesiredWeightAndCapacity& WithDesiredWeight(double value) { SetDesiredWeight(value); return *this;}
65
67
70 inline int GetDesiredInstanceCount() const{ return m_desiredInstanceCount; }
71 inline bool DesiredInstanceCountHasBeenSet() const { return m_desiredInstanceCountHasBeenSet; }
72 inline void SetDesiredInstanceCount(int value) { m_desiredInstanceCountHasBeenSet = true; m_desiredInstanceCount = value; }
75
77
81 inline const ProductionVariantServerlessUpdateConfig& GetServerlessUpdateConfig() const{ return m_serverlessUpdateConfig; }
82 inline bool ServerlessUpdateConfigHasBeenSet() const { return m_serverlessUpdateConfigHasBeenSet; }
83 inline void SetServerlessUpdateConfig(const ProductionVariantServerlessUpdateConfig& value) { m_serverlessUpdateConfigHasBeenSet = true; m_serverlessUpdateConfig = value; }
84 inline void SetServerlessUpdateConfig(ProductionVariantServerlessUpdateConfig&& value) { m_serverlessUpdateConfigHasBeenSet = true; m_serverlessUpdateConfig = std::move(value); }
88 private:
89
90 Aws::String m_variantName;
91 bool m_variantNameHasBeenSet = false;
92
93 double m_desiredWeight;
94 bool m_desiredWeightHasBeenSet = false;
95
96 int m_desiredInstanceCount;
97 bool m_desiredInstanceCountHasBeenSet = false;
98
99 ProductionVariantServerlessUpdateConfig m_serverlessUpdateConfig;
100 bool m_serverlessUpdateConfigHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace SageMaker
105} // namespace Aws
DesiredWeightAndCapacity & WithVariantName(const Aws::String &value)
AWS_SAGEMAKER_API DesiredWeightAndCapacity(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API DesiredWeightAndCapacity & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
DesiredWeightAndCapacity & WithVariantName(const char *value)
DesiredWeightAndCapacity & WithDesiredWeight(double value)
void SetServerlessUpdateConfig(ProductionVariantServerlessUpdateConfig &&value)
const ProductionVariantServerlessUpdateConfig & GetServerlessUpdateConfig() const
DesiredWeightAndCapacity & WithServerlessUpdateConfig(const ProductionVariantServerlessUpdateConfig &value)
DesiredWeightAndCapacity & WithServerlessUpdateConfig(ProductionVariantServerlessUpdateConfig &&value)
DesiredWeightAndCapacity & WithVariantName(Aws::String &&value)
DesiredWeightAndCapacity & WithDesiredInstanceCount(int value)
void SetServerlessUpdateConfig(const ProductionVariantServerlessUpdateConfig &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue