AWS SDK for C++

AWS SDK for C++ Version 1.11.807

Loading...
Searching...
No Matches
InstancePoolSummary.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/ProductionVariantInstanceType.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
29 public:
30 AWS_SAGEMAKER_API InstancePoolSummary() = default;
31 AWS_SAGEMAKER_API InstancePoolSummary(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline ProductionVariantInstanceType GetInstanceType() const { return m_instanceType; }
40 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
42 m_instanceTypeHasBeenSet = true;
43 m_instanceType = value;
44 }
46 SetInstanceType(value);
47 return *this;
48 }
50
52
55 inline int GetCurrentInstanceCount() const { return m_currentInstanceCount; }
56 inline bool CurrentInstanceCountHasBeenSet() const { return m_currentInstanceCountHasBeenSet; }
57 inline void SetCurrentInstanceCount(int value) {
58 m_currentInstanceCountHasBeenSet = true;
59 m_currentInstanceCount = value;
60 }
63 return *this;
64 }
66 private:
68
69 int m_currentInstanceCount{0};
70 bool m_instanceTypeHasBeenSet = false;
71 bool m_currentInstanceCountHasBeenSet = false;
72};
73
74} // namespace Model
75} // namespace SageMaker
76} // namespace Aws
AWS_SAGEMAKER_API InstancePoolSummary(Aws::Utils::Json::JsonView jsonValue)
ProductionVariantInstanceType GetInstanceType() const
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API InstancePoolSummary()=default
InstancePoolSummary & WithInstanceType(ProductionVariantInstanceType value)
InstancePoolSummary & WithCurrentInstanceCount(int value)
AWS_SAGEMAKER_API InstancePoolSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetInstanceType(ProductionVariantInstanceType value)
Aws::Utils::Json::JsonValue JsonValue