AWS SDK for C++

AWS SDK for C++ Version 1.11.891

Loading...
Searching...
No Matches
ProcessingInstancePreference.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/ProcessingInstanceType.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 ProcessingInstancePreference() = default;
33 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline ProcessingInstanceType GetInstanceType() const { return m_instanceType; }
41 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
43 m_instanceTypeHasBeenSet = true;
44 m_instanceType = value;
45 }
47 SetInstanceType(value);
48 return *this;
49 }
51
53
69 inline int GetInstanceCount() const { return m_instanceCount; }
70 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
71 inline void SetInstanceCount(int value) {
72 m_instanceCountHasBeenSet = true;
73 m_instanceCount = value;
74 }
76 SetInstanceCount(value);
77 return *this;
78 }
80 private:
82
83 int m_instanceCount{0};
84 bool m_instanceTypeHasBeenSet = false;
85 bool m_instanceCountHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace SageMaker
90} // namespace Aws
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ProcessingInstancePreference & WithInstanceCount(int value)
AWS_SAGEMAKER_API ProcessingInstancePreference(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API ProcessingInstancePreference()=default
ProcessingInstancePreference & WithInstanceType(ProcessingInstanceType value)
AWS_SAGEMAKER_API ProcessingInstancePreference & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue