AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CapacitySizeConfig.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/NodeUnavailabilityType.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
30 public:
31 AWS_SAGEMAKER_API CapacitySizeConfig() = default;
32 AWS_SAGEMAKER_API CapacitySizeConfig(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline NodeUnavailabilityType GetType() const { return m_type; }
42 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
43 inline void SetType(NodeUnavailabilityType value) {
44 m_typeHasBeenSet = true;
45 m_type = value;
46 }
48 SetType(value);
49 return *this;
50 }
52
54
58 inline int GetValue() const { return m_value; }
59 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
60 inline void SetValue(int value) {
61 m_valueHasBeenSet = true;
62 m_value = value;
63 }
64 inline CapacitySizeConfig& WithValue(int value) {
65 SetValue(value);
66 return *this;
67 }
69 private:
71
72 int m_value{0};
73 bool m_typeHasBeenSet = false;
74 bool m_valueHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace SageMaker
79} // namespace Aws
CapacitySizeConfig & WithType(NodeUnavailabilityType value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API CapacitySizeConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
NodeUnavailabilityType GetType() const
CapacitySizeConfig & WithValue(int value)
AWS_SAGEMAKER_API CapacitySizeConfig(Aws::Utils::Json::JsonView jsonValue)
void SetType(NodeUnavailabilityType value)
AWS_SAGEMAKER_API CapacitySizeConfig()=default
Aws::Utils::Json::JsonValue JsonValue