AWS SDK for C++  1.8.95
AWS SDK for C++
CreateAlgorithmRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace SageMaker
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "CreateAlgorithm"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
39 
43  inline const Aws::String& GetAlgorithmName() const{ return m_algorithmName; }
44 
48  inline bool AlgorithmNameHasBeenSet() const { return m_algorithmNameHasBeenSet; }
49 
53  inline void SetAlgorithmName(const Aws::String& value) { m_algorithmNameHasBeenSet = true; m_algorithmName = value; }
54 
58  inline void SetAlgorithmName(Aws::String&& value) { m_algorithmNameHasBeenSet = true; m_algorithmName = std::move(value); }
59 
63  inline void SetAlgorithmName(const char* value) { m_algorithmNameHasBeenSet = true; m_algorithmName.assign(value); }
64 
68  inline CreateAlgorithmRequest& WithAlgorithmName(const Aws::String& value) { SetAlgorithmName(value); return *this;}
69 
73  inline CreateAlgorithmRequest& WithAlgorithmName(Aws::String&& value) { SetAlgorithmName(std::move(value)); return *this;}
74 
78  inline CreateAlgorithmRequest& WithAlgorithmName(const char* value) { SetAlgorithmName(value); return *this;}
79 
80 
84  inline const Aws::String& GetAlgorithmDescription() const{ return m_algorithmDescription; }
85 
89  inline bool AlgorithmDescriptionHasBeenSet() const { return m_algorithmDescriptionHasBeenSet; }
90 
94  inline void SetAlgorithmDescription(const Aws::String& value) { m_algorithmDescriptionHasBeenSet = true; m_algorithmDescription = value; }
95 
99  inline void SetAlgorithmDescription(Aws::String&& value) { m_algorithmDescriptionHasBeenSet = true; m_algorithmDescription = std::move(value); }
100 
104  inline void SetAlgorithmDescription(const char* value) { m_algorithmDescriptionHasBeenSet = true; m_algorithmDescription.assign(value); }
105 
109  inline CreateAlgorithmRequest& WithAlgorithmDescription(const Aws::String& value) { SetAlgorithmDescription(value); return *this;}
110 
114  inline CreateAlgorithmRequest& WithAlgorithmDescription(Aws::String&& value) { SetAlgorithmDescription(std::move(value)); return *this;}
115 
119  inline CreateAlgorithmRequest& WithAlgorithmDescription(const char* value) { SetAlgorithmDescription(value); return *this;}
120 
121 
135  inline const TrainingSpecification& GetTrainingSpecification() const{ return m_trainingSpecification; }
136 
150  inline bool TrainingSpecificationHasBeenSet() const { return m_trainingSpecificationHasBeenSet; }
151 
165  inline void SetTrainingSpecification(const TrainingSpecification& value) { m_trainingSpecificationHasBeenSet = true; m_trainingSpecification = value; }
166 
180  inline void SetTrainingSpecification(TrainingSpecification&& value) { m_trainingSpecificationHasBeenSet = true; m_trainingSpecification = std::move(value); }
181 
195  inline CreateAlgorithmRequest& WithTrainingSpecification(const TrainingSpecification& value) { SetTrainingSpecification(value); return *this;}
196 
210  inline CreateAlgorithmRequest& WithTrainingSpecification(TrainingSpecification&& value) { SetTrainingSpecification(std::move(value)); return *this;}
211 
212 
221  inline const InferenceSpecification& GetInferenceSpecification() const{ return m_inferenceSpecification; }
222 
231  inline bool InferenceSpecificationHasBeenSet() const { return m_inferenceSpecificationHasBeenSet; }
232 
241  inline void SetInferenceSpecification(const InferenceSpecification& value) { m_inferenceSpecificationHasBeenSet = true; m_inferenceSpecification = value; }
242 
251  inline void SetInferenceSpecification(InferenceSpecification&& value) { m_inferenceSpecificationHasBeenSet = true; m_inferenceSpecification = std::move(value); }
252 
261  inline CreateAlgorithmRequest& WithInferenceSpecification(const InferenceSpecification& value) { SetInferenceSpecification(value); return *this;}
262 
271  inline CreateAlgorithmRequest& WithInferenceSpecification(InferenceSpecification&& value) { SetInferenceSpecification(std::move(value)); return *this;}
272 
273 
280  inline const AlgorithmValidationSpecification& GetValidationSpecification() const{ return m_validationSpecification; }
281 
288  inline bool ValidationSpecificationHasBeenSet() const { return m_validationSpecificationHasBeenSet; }
289 
296  inline void SetValidationSpecification(const AlgorithmValidationSpecification& value) { m_validationSpecificationHasBeenSet = true; m_validationSpecification = value; }
297 
304  inline void SetValidationSpecification(AlgorithmValidationSpecification&& value) { m_validationSpecificationHasBeenSet = true; m_validationSpecification = std::move(value); }
305 
312  inline CreateAlgorithmRequest& WithValidationSpecification(const AlgorithmValidationSpecification& value) { SetValidationSpecification(value); return *this;}
313 
320  inline CreateAlgorithmRequest& WithValidationSpecification(AlgorithmValidationSpecification&& value) { SetValidationSpecification(std::move(value)); return *this;}
321 
322 
327  inline bool GetCertifyForMarketplace() const{ return m_certifyForMarketplace; }
328 
333  inline bool CertifyForMarketplaceHasBeenSet() const { return m_certifyForMarketplaceHasBeenSet; }
334 
339  inline void SetCertifyForMarketplace(bool value) { m_certifyForMarketplaceHasBeenSet = true; m_certifyForMarketplace = value; }
340 
345  inline CreateAlgorithmRequest& WithCertifyForMarketplace(bool value) { SetCertifyForMarketplace(value); return *this;}
346 
347  private:
348 
349  Aws::String m_algorithmName;
350  bool m_algorithmNameHasBeenSet;
351 
352  Aws::String m_algorithmDescription;
353  bool m_algorithmDescriptionHasBeenSet;
354 
355  TrainingSpecification m_trainingSpecification;
356  bool m_trainingSpecificationHasBeenSet;
357 
358  InferenceSpecification m_inferenceSpecification;
359  bool m_inferenceSpecificationHasBeenSet;
360 
361  AlgorithmValidationSpecification m_validationSpecification;
362  bool m_validationSpecificationHasBeenSet;
363 
364  bool m_certifyForMarketplace;
365  bool m_certifyForMarketplaceHasBeenSet;
366  };
367 
368 } // namespace Model
369 } // namespace SageMaker
370 } // namespace Aws
#define AWS_SAGEMAKER_API
const InferenceSpecification & GetInferenceSpecification() const
CreateAlgorithmRequest & WithAlgorithmName(const char *value)
CreateAlgorithmRequest & WithInferenceSpecification(InferenceSpecification &&value)
CreateAlgorithmRequest & WithAlgorithmDescription(Aws::String &&value)
CreateAlgorithmRequest & WithAlgorithmDescription(const char *value)
void SetTrainingSpecification(TrainingSpecification &&value)
CreateAlgorithmRequest & WithTrainingSpecification(const TrainingSpecification &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
CreateAlgorithmRequest & WithInferenceSpecification(const InferenceSpecification &value)
CreateAlgorithmRequest & WithAlgorithmName(const Aws::String &value)
const AlgorithmValidationSpecification & GetValidationSpecification() const
virtual const char * GetServiceRequestName() const override
CreateAlgorithmRequest & WithValidationSpecification(const AlgorithmValidationSpecification &value)
CreateAlgorithmRequest & WithValidationSpecification(AlgorithmValidationSpecification &&value)
void SetInferenceSpecification(InferenceSpecification &&value)
CreateAlgorithmRequest & WithAlgorithmName(Aws::String &&value)
CreateAlgorithmRequest & WithAlgorithmDescription(const Aws::String &value)
void SetValidationSpecification(const AlgorithmValidationSpecification &value)
const TrainingSpecification & GetTrainingSpecification() const
void SetTrainingSpecification(const TrainingSpecification &value)
void SetValidationSpecification(AlgorithmValidationSpecification &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetAlgorithmDescription(const Aws::String &value)
void SetInferenceSpecification(const InferenceSpecification &value)
CreateAlgorithmRequest & WithCertifyForMarketplace(bool value)
CreateAlgorithmRequest & WithTrainingSpecification(TrainingSpecification &&value)