AWS SDK for C++  1.8.182
AWS SDK for C++
DesiredWeightAndCapacity.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace SageMaker
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetVariantName() const{ return m_variantName; }
45 
49  inline bool VariantNameHasBeenSet() const { return m_variantNameHasBeenSet; }
50 
54  inline void SetVariantName(const Aws::String& value) { m_variantNameHasBeenSet = true; m_variantName = value; }
55 
59  inline void SetVariantName(Aws::String&& value) { m_variantNameHasBeenSet = true; m_variantName = std::move(value); }
60 
64  inline void SetVariantName(const char* value) { m_variantNameHasBeenSet = true; m_variantName.assign(value); }
65 
69  inline DesiredWeightAndCapacity& WithVariantName(const Aws::String& value) { SetVariantName(value); return *this;}
70 
74  inline DesiredWeightAndCapacity& WithVariantName(Aws::String&& value) { SetVariantName(std::move(value)); return *this;}
75 
79  inline DesiredWeightAndCapacity& WithVariantName(const char* value) { SetVariantName(value); return *this;}
80 
81 
85  inline double GetDesiredWeight() const{ return m_desiredWeight; }
86 
90  inline bool DesiredWeightHasBeenSet() const { return m_desiredWeightHasBeenSet; }
91 
95  inline void SetDesiredWeight(double value) { m_desiredWeightHasBeenSet = true; m_desiredWeight = value; }
96 
100  inline DesiredWeightAndCapacity& WithDesiredWeight(double value) { SetDesiredWeight(value); return *this;}
101 
102 
106  inline int GetDesiredInstanceCount() const{ return m_desiredInstanceCount; }
107 
111  inline bool DesiredInstanceCountHasBeenSet() const { return m_desiredInstanceCountHasBeenSet; }
112 
116  inline void SetDesiredInstanceCount(int value) { m_desiredInstanceCountHasBeenSet = true; m_desiredInstanceCount = value; }
117 
121  inline DesiredWeightAndCapacity& WithDesiredInstanceCount(int value) { SetDesiredInstanceCount(value); return *this;}
122 
123  private:
124 
125  Aws::String m_variantName;
126  bool m_variantNameHasBeenSet;
127 
128  double m_desiredWeight;
129  bool m_desiredWeightHasBeenSet;
130 
131  int m_desiredInstanceCount;
132  bool m_desiredInstanceCountHasBeenSet;
133  };
134 
135 } // namespace Model
136 } // namespace SageMaker
137 } // namespace Aws
Aws::SageMaker::Model::DesiredWeightAndCapacity
Definition: DesiredWeightAndCapacity.h:33
SageMaker_EXPORTS.h
Aws::SageMaker::Model::DesiredWeightAndCapacity::DesiredWeightAndCapacity
DesiredWeightAndCapacity()
Aws::SageMaker::Model::DesiredWeightAndCapacity::SetVariantName
void SetVariantName(const char *value)
Definition: DesiredWeightAndCapacity.h:64
Aws::SageMaker::Model::DesiredWeightAndCapacity::operator=
DesiredWeightAndCapacity & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SageMaker::Model::DesiredWeightAndCapacity::DesiredWeightAndCapacity
DesiredWeightAndCapacity(Aws::Utils::Json::JsonView jsonValue)
Aws::SageMaker::Model::DesiredWeightAndCapacity::SetVariantName
void SetVariantName(const Aws::String &value)
Definition: DesiredWeightAndCapacity.h:54
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::DesiredWeightAndCapacity::WithVariantName
DesiredWeightAndCapacity & WithVariantName(Aws::String &&value)
Definition: DesiredWeightAndCapacity.h:74
Aws::SageMaker::Model::DesiredWeightAndCapacity::WithVariantName
DesiredWeightAndCapacity & WithVariantName(const char *value)
Definition: DesiredWeightAndCapacity.h:79
Aws::SageMaker::Model::DesiredWeightAndCapacity::DesiredInstanceCountHasBeenSet
bool DesiredInstanceCountHasBeenSet() const
Definition: DesiredWeightAndCapacity.h:111
Aws::SageMaker::Model::DesiredWeightAndCapacity::SetDesiredWeight
void SetDesiredWeight(double value)
Definition: DesiredWeightAndCapacity.h:95
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::SageMaker::Model::DesiredWeightAndCapacity::SetVariantName
void SetVariantName(Aws::String &&value)
Definition: DesiredWeightAndCapacity.h:59
Aws::SageMaker::Model::DesiredWeightAndCapacity::SetDesiredInstanceCount
void SetDesiredInstanceCount(int value)
Definition: DesiredWeightAndCapacity.h:116
Aws::SageMaker::Model::DesiredWeightAndCapacity::WithDesiredWeight
DesiredWeightAndCapacity & WithDesiredWeight(double value)
Definition: DesiredWeightAndCapacity.h:100
Aws::SageMaker::Model::DesiredWeightAndCapacity::WithDesiredInstanceCount
DesiredWeightAndCapacity & WithDesiredInstanceCount(int value)
Definition: DesiredWeightAndCapacity.h:121
Aws::SageMaker::Model::DesiredWeightAndCapacity::WithVariantName
DesiredWeightAndCapacity & WithVariantName(const Aws::String &value)
Definition: DesiredWeightAndCapacity.h:69
Aws::SageMaker::Model::DesiredWeightAndCapacity::GetDesiredInstanceCount
int GetDesiredInstanceCount() const
Definition: DesiredWeightAndCapacity.h:106
Aws::SageMaker::Model::DesiredWeightAndCapacity::GetDesiredWeight
double GetDesiredWeight() const
Definition: DesiredWeightAndCapacity.h:85
Aws::SageMaker::Model::DesiredWeightAndCapacity::VariantNameHasBeenSet
bool VariantNameHasBeenSet() const
Definition: DesiredWeightAndCapacity.h:49
Aws::SageMaker::Model::DesiredWeightAndCapacity::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws
Definition: AccessManagementClient.h:15
Aws::SageMaker::Model::DesiredWeightAndCapacity::GetVariantName
const Aws::String & GetVariantName() const
Definition: DesiredWeightAndCapacity.h:44
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::DesiredWeightAndCapacity::DesiredWeightHasBeenSet
bool DesiredWeightHasBeenSet() const
Definition: DesiredWeightAndCapacity.h:90