AWS SDK for C++  1.9.160
AWS SDK for C++
CapacitySize.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 
47  inline const CapacitySizeType& GetType() const{ return m_type; }
48 
55  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
56 
63  inline void SetType(const CapacitySizeType& value) { m_typeHasBeenSet = true; m_type = value; }
64 
71  inline void SetType(CapacitySizeType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
72 
79  inline CapacitySize& WithType(const CapacitySizeType& value) { SetType(value); return *this;}
80 
87  inline CapacitySize& WithType(CapacitySizeType&& value) { SetType(std::move(value)); return *this;}
88 
89 
94  inline int GetValue() const{ return m_value; }
95 
100  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
101 
106  inline void SetValue(int value) { m_valueHasBeenSet = true; m_value = value; }
107 
112  inline CapacitySize& WithValue(int value) { SetValue(value); return *this;}
113 
114  private:
115 
116  CapacitySizeType m_type;
117  bool m_typeHasBeenSet;
118 
119  int m_value;
120  bool m_valueHasBeenSet;
121  };
122 
123 } // namespace Model
124 } // namespace SageMaker
125 } // namespace Aws
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
SageMaker_EXPORTS.h
Aws::SageMaker::Model::CapacitySize::SetType
void SetType(const CapacitySizeType &value)
Definition: CapacitySize.h:63
Aws::SageMaker::Model::CapacitySize::SetType
void SetType(CapacitySizeType &&value)
Definition: CapacitySize.h:71
Aws::SageMaker::Model::CapacitySize::GetValue
int GetValue() const
Definition: CapacitySize.h:94
Aws::SageMaker::Model::CapacitySize::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: CapacitySize.h:55
Aws::SageMaker::Model::CapacitySize::GetType
const CapacitySizeType & GetType() const
Definition: CapacitySize.h:47
Aws::SageMaker::Model::CapacitySize::WithType
CapacitySize & WithType(const CapacitySizeType &value)
Definition: CapacitySize.h:79
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::CapacitySize::WithValue
CapacitySize & WithValue(int value)
Definition: CapacitySize.h:112
Aws::SageMaker::Model::CapacitySize::CapacitySize
CapacitySize(Aws::Utils::Json::JsonView jsonValue)
Aws::SageMaker::Model::CapacitySize::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: CapacitySize.h:100
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
CapacitySizeType.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SageMaker::Model::CapacitySize::SetValue
void SetValue(int value)
Definition: CapacitySize.h:106
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::SageMaker::Model::CapacitySizeType
CapacitySizeType
Definition: CapacitySizeType.h:17
Aws::SageMaker::Model::CapacitySize::operator=
CapacitySize & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SageMaker::Model::CapacitySize
Definition: CapacitySize.h:33
Aws::SageMaker::Model::CapacitySize::CapacitySize
CapacitySize()
Aws::SageMaker::Model::CapacitySize::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SageMaker::Model::CapacitySize::WithType
CapacitySize & WithType(CapacitySizeType &&value)
Definition: CapacitySize.h:87