AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
CapacitySize.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/CapacitySizeType.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SageMaker {
20namespace Model {
21
34 public:
35 AWS_SAGEMAKER_API CapacitySize() = default;
36 AWS_SAGEMAKER_API CapacitySize(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SAGEMAKER_API CapacitySize& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
47 inline CapacitySizeType GetType() const { return m_type; }
48 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
49 inline void SetType(CapacitySizeType value) {
50 m_typeHasBeenSet = true;
51 m_type = value;
52 }
54 SetType(value);
55 return *this;
56 }
58
60
64 inline int GetValue() const { return m_value; }
65 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
66 inline void SetValue(int value) {
67 m_valueHasBeenSet = true;
68 m_value = value;
69 }
70 inline CapacitySize& WithValue(int value) {
71 SetValue(value);
72 return *this;
73 }
75 private:
77
78 int m_value{0};
79 bool m_typeHasBeenSet = false;
80 bool m_valueHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace SageMaker
85} // namespace Aws
void SetType(CapacitySizeType value)
AWS_SAGEMAKER_API CapacitySize(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
CapacitySizeType GetType() const
AWS_SAGEMAKER_API CapacitySize()=default
CapacitySize & WithType(CapacitySizeType value)
CapacitySize & WithValue(int value)
AWS_SAGEMAKER_API CapacitySize & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue