AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ServerlessJobConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sagemaker/SageMaker_EXPORTS.h>
9#include <aws/sagemaker/model/CustomizationTechnique.h>
10#include <aws/sagemaker/model/EvaluationType.h>
11#include <aws/sagemaker/model/Peft.h>
12#include <aws/sagemaker/model/ServerlessJobType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SageMaker {
24namespace Model {
25
33 public:
34 AWS_SAGEMAKER_API ServerlessJobConfig() = default;
35 AWS_SAGEMAKER_API ServerlessJobConfig(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
46 inline const Aws::String& GetBaseModelArn() const { return m_baseModelArn; }
47 inline bool BaseModelArnHasBeenSet() const { return m_baseModelArnHasBeenSet; }
48 template <typename BaseModelArnT = Aws::String>
49 void SetBaseModelArn(BaseModelArnT&& value) {
50 m_baseModelArnHasBeenSet = true;
51 m_baseModelArn = std::forward<BaseModelArnT>(value);
52 }
53 template <typename BaseModelArnT = Aws::String>
54 ServerlessJobConfig& WithBaseModelArn(BaseModelArnT&& value) {
55 SetBaseModelArn(std::forward<BaseModelArnT>(value));
56 return *this;
57 }
59
61
71 inline bool GetAcceptEula() const { return m_acceptEula; }
72 inline bool AcceptEulaHasBeenSet() const { return m_acceptEulaHasBeenSet; }
73 inline void SetAcceptEula(bool value) {
74 m_acceptEulaHasBeenSet = true;
75 m_acceptEula = value;
76 }
77 inline ServerlessJobConfig& WithAcceptEula(bool value) {
78 SetAcceptEula(value);
79 return *this;
80 }
82
84
87 inline ServerlessJobType GetJobType() const { return m_jobType; }
88 inline bool JobTypeHasBeenSet() const { return m_jobTypeHasBeenSet; }
89 inline void SetJobType(ServerlessJobType value) {
90 m_jobTypeHasBeenSet = true;
91 m_jobType = value;
92 }
94 SetJobType(value);
95 return *this;
96 }
98
100
103 inline CustomizationTechnique GetCustomizationTechnique() const { return m_customizationTechnique; }
104 inline bool CustomizationTechniqueHasBeenSet() const { return m_customizationTechniqueHasBeenSet; }
106 m_customizationTechniqueHasBeenSet = true;
107 m_customizationTechnique = value;
108 }
111 return *this;
112 }
114
116
119 inline Peft GetPeft() const { return m_peft; }
120 inline bool PeftHasBeenSet() const { return m_peftHasBeenSet; }
121 inline void SetPeft(Peft value) {
122 m_peftHasBeenSet = true;
123 m_peft = value;
124 }
126 SetPeft(value);
127 return *this;
128 }
130
132
136 inline EvaluationType GetEvaluationType() const { return m_evaluationType; }
137 inline bool EvaluationTypeHasBeenSet() const { return m_evaluationTypeHasBeenSet; }
139 m_evaluationTypeHasBeenSet = true;
140 m_evaluationType = value;
141 }
143 SetEvaluationType(value);
144 return *this;
145 }
147
149
153 inline const Aws::String& GetEvaluatorArn() const { return m_evaluatorArn; }
154 inline bool EvaluatorArnHasBeenSet() const { return m_evaluatorArnHasBeenSet; }
155 template <typename EvaluatorArnT = Aws::String>
156 void SetEvaluatorArn(EvaluatorArnT&& value) {
157 m_evaluatorArnHasBeenSet = true;
158 m_evaluatorArn = std::forward<EvaluatorArnT>(value);
159 }
160 template <typename EvaluatorArnT = Aws::String>
161 ServerlessJobConfig& WithEvaluatorArn(EvaluatorArnT&& value) {
162 SetEvaluatorArn(std::forward<EvaluatorArnT>(value));
163 return *this;
164 }
166 private:
167 Aws::String m_baseModelArn;
168
169 bool m_acceptEula{false};
170
172
174
175 Peft m_peft{Peft::NOT_SET};
176
177 EvaluationType m_evaluationType{EvaluationType::NOT_SET};
178
179 Aws::String m_evaluatorArn;
180 bool m_baseModelArnHasBeenSet = false;
181 bool m_acceptEulaHasBeenSet = false;
182 bool m_jobTypeHasBeenSet = false;
183 bool m_customizationTechniqueHasBeenSet = false;
184 bool m_peftHasBeenSet = false;
185 bool m_evaluationTypeHasBeenSet = false;
186 bool m_evaluatorArnHasBeenSet = false;
187};
188
189} // namespace Model
190} // namespace SageMaker
191} // namespace Aws
ServerlessJobConfig & WithCustomizationTechnique(CustomizationTechnique value)
ServerlessJobConfig & WithAcceptEula(bool value)
ServerlessJobConfig & WithEvaluatorArn(EvaluatorArnT &&value)
void SetCustomizationTechnique(CustomizationTechnique value)
ServerlessJobConfig & WithPeft(Peft value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API ServerlessJobConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
ServerlessJobConfig & WithEvaluationType(EvaluationType value)
AWS_SAGEMAKER_API ServerlessJobConfig()=default
AWS_SAGEMAKER_API ServerlessJobConfig(Aws::Utils::Json::JsonView jsonValue)
CustomizationTechnique GetCustomizationTechnique() const
ServerlessJobConfig & WithBaseModelArn(BaseModelArnT &&value)
ServerlessJobConfig & WithJobType(ServerlessJobType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue