AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceGroup.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/TrainingInstanceType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SageMaker
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_SAGEMAKER_API InstanceGroup();
39 AWS_SAGEMAKER_API InstanceGroup(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SAGEMAKER_API InstanceGroup& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const TrainingInstanceType& GetInstanceType() const{ return m_instanceType; }
49 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
50 inline void SetInstanceType(const TrainingInstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
51 inline void SetInstanceType(TrainingInstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
52 inline InstanceGroup& WithInstanceType(const TrainingInstanceType& value) { SetInstanceType(value); return *this;}
53 inline InstanceGroup& WithInstanceType(TrainingInstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
55
57
60 inline int GetInstanceCount() const{ return m_instanceCount; }
61 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
62 inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
63 inline InstanceGroup& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
65
67
70 inline const Aws::String& GetInstanceGroupName() const{ return m_instanceGroupName; }
71 inline bool InstanceGroupNameHasBeenSet() const { return m_instanceGroupNameHasBeenSet; }
72 inline void SetInstanceGroupName(const Aws::String& value) { m_instanceGroupNameHasBeenSet = true; m_instanceGroupName = value; }
73 inline void SetInstanceGroupName(Aws::String&& value) { m_instanceGroupNameHasBeenSet = true; m_instanceGroupName = std::move(value); }
74 inline void SetInstanceGroupName(const char* value) { m_instanceGroupNameHasBeenSet = true; m_instanceGroupName.assign(value); }
75 inline InstanceGroup& WithInstanceGroupName(const Aws::String& value) { SetInstanceGroupName(value); return *this;}
76 inline InstanceGroup& WithInstanceGroupName(Aws::String&& value) { SetInstanceGroupName(std::move(value)); return *this;}
77 inline InstanceGroup& WithInstanceGroupName(const char* value) { SetInstanceGroupName(value); return *this;}
79 private:
80
81 TrainingInstanceType m_instanceType;
82 bool m_instanceTypeHasBeenSet = false;
83
84 int m_instanceCount;
85 bool m_instanceCountHasBeenSet = false;
86
87 Aws::String m_instanceGroupName;
88 bool m_instanceGroupNameHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace SageMaker
93} // namespace Aws
InstanceGroup & WithInstanceGroupName(const Aws::String &value)
const TrainingInstanceType & GetInstanceType() const
const Aws::String & GetInstanceGroupName() const
AWS_SAGEMAKER_API InstanceGroup(Aws::Utils::Json::JsonView jsonValue)
void SetInstanceType(const TrainingInstanceType &value)
AWS_SAGEMAKER_API InstanceGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetInstanceType(TrainingInstanceType &&value)
void SetInstanceGroupName(Aws::String &&value)
void SetInstanceGroupName(const Aws::String &value)
InstanceGroup & WithInstanceGroupName(const char *value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetInstanceGroupName(const char *value)
InstanceGroup & WithInstanceGroupName(Aws::String &&value)
InstanceGroup & WithInstanceType(TrainingInstanceType &&value)
InstanceGroup & WithInstanceCount(int value)
InstanceGroup & WithInstanceType(const TrainingInstanceType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue