AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateAlgorithmRequest.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sagemaker/model/TrainingSpecification.h>
11#include <aws/sagemaker/model/InferenceSpecification.h>
12#include <aws/sagemaker/model/AlgorithmValidationSpecification.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/sagemaker/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace SageMaker
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_SAGEMAKER_API CreateAlgorithmRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateAlgorithm"; }
36
37 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
38
40
41
43
46 inline const Aws::String& GetAlgorithmName() const{ return m_algorithmName; }
47 inline bool AlgorithmNameHasBeenSet() const { return m_algorithmNameHasBeenSet; }
48 inline void SetAlgorithmName(const Aws::String& value) { m_algorithmNameHasBeenSet = true; m_algorithmName = value; }
49 inline void SetAlgorithmName(Aws::String&& value) { m_algorithmNameHasBeenSet = true; m_algorithmName = std::move(value); }
50 inline void SetAlgorithmName(const char* value) { m_algorithmNameHasBeenSet = true; m_algorithmName.assign(value); }
51 inline CreateAlgorithmRequest& WithAlgorithmName(const Aws::String& value) { SetAlgorithmName(value); return *this;}
52 inline CreateAlgorithmRequest& WithAlgorithmName(Aws::String&& value) { SetAlgorithmName(std::move(value)); return *this;}
53 inline CreateAlgorithmRequest& WithAlgorithmName(const char* value) { SetAlgorithmName(value); return *this;}
55
57
60 inline const Aws::String& GetAlgorithmDescription() const{ return m_algorithmDescription; }
61 inline bool AlgorithmDescriptionHasBeenSet() const { return m_algorithmDescriptionHasBeenSet; }
62 inline void SetAlgorithmDescription(const Aws::String& value) { m_algorithmDescriptionHasBeenSet = true; m_algorithmDescription = value; }
63 inline void SetAlgorithmDescription(Aws::String&& value) { m_algorithmDescriptionHasBeenSet = true; m_algorithmDescription = std::move(value); }
64 inline void SetAlgorithmDescription(const char* value) { m_algorithmDescriptionHasBeenSet = true; m_algorithmDescription.assign(value); }
66 inline CreateAlgorithmRequest& WithAlgorithmDescription(Aws::String&& value) { SetAlgorithmDescription(std::move(value)); return *this;}
67 inline CreateAlgorithmRequest& WithAlgorithmDescription(const char* value) { SetAlgorithmDescription(value); return *this;}
69
71
84 inline const TrainingSpecification& GetTrainingSpecification() const{ return m_trainingSpecification; }
85 inline bool TrainingSpecificationHasBeenSet() const { return m_trainingSpecificationHasBeenSet; }
86 inline void SetTrainingSpecification(const TrainingSpecification& value) { m_trainingSpecificationHasBeenSet = true; m_trainingSpecification = value; }
87 inline void SetTrainingSpecification(TrainingSpecification&& value) { m_trainingSpecificationHasBeenSet = true; m_trainingSpecification = std::move(value); }
91
93
101 inline const InferenceSpecification& GetInferenceSpecification() const{ return m_inferenceSpecification; }
102 inline bool InferenceSpecificationHasBeenSet() const { return m_inferenceSpecificationHasBeenSet; }
103 inline void SetInferenceSpecification(const InferenceSpecification& value) { m_inferenceSpecificationHasBeenSet = true; m_inferenceSpecification = value; }
104 inline void SetInferenceSpecification(InferenceSpecification&& value) { m_inferenceSpecificationHasBeenSet = true; m_inferenceSpecification = std::move(value); }
108
110
115 inline const AlgorithmValidationSpecification& GetValidationSpecification() const{ return m_validationSpecification; }
116 inline bool ValidationSpecificationHasBeenSet() const { return m_validationSpecificationHasBeenSet; }
117 inline void SetValidationSpecification(const AlgorithmValidationSpecification& value) { m_validationSpecificationHasBeenSet = true; m_validationSpecification = value; }
118 inline void SetValidationSpecification(AlgorithmValidationSpecification&& value) { m_validationSpecificationHasBeenSet = true; m_validationSpecification = std::move(value); }
122
124
128 inline bool GetCertifyForMarketplace() const{ return m_certifyForMarketplace; }
129 inline bool CertifyForMarketplaceHasBeenSet() const { return m_certifyForMarketplaceHasBeenSet; }
130 inline void SetCertifyForMarketplace(bool value) { m_certifyForMarketplaceHasBeenSet = true; m_certifyForMarketplace = value; }
133
135
142 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
143 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
144 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
145 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
146 inline CreateAlgorithmRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
147 inline CreateAlgorithmRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
148 inline CreateAlgorithmRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
149 inline CreateAlgorithmRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
151 private:
152
153 Aws::String m_algorithmName;
154 bool m_algorithmNameHasBeenSet = false;
155
156 Aws::String m_algorithmDescription;
157 bool m_algorithmDescriptionHasBeenSet = false;
158
159 TrainingSpecification m_trainingSpecification;
160 bool m_trainingSpecificationHasBeenSet = false;
161
162 InferenceSpecification m_inferenceSpecification;
163 bool m_inferenceSpecificationHasBeenSet = false;
164
165 AlgorithmValidationSpecification m_validationSpecification;
166 bool m_validationSpecificationHasBeenSet = false;
167
168 bool m_certifyForMarketplace;
169 bool m_certifyForMarketplaceHasBeenSet = false;
170
171 Aws::Vector<Tag> m_tags;
172 bool m_tagsHasBeenSet = false;
173 };
174
175} // namespace Model
176} // namespace SageMaker
177} // namespace Aws
void SetValidationSpecification(AlgorithmValidationSpecification &&value)
const InferenceSpecification & GetInferenceSpecification() const
CreateAlgorithmRequest & WithTrainingSpecification(TrainingSpecification &&value)
CreateAlgorithmRequest & WithInferenceSpecification(const InferenceSpecification &value)
CreateAlgorithmRequest & AddTags(Tag &&value)
CreateAlgorithmRequest & WithAlgorithmName(Aws::String &&value)
CreateAlgorithmRequest & WithAlgorithmName(const Aws::String &value)
CreateAlgorithmRequest & WithTrainingSpecification(const TrainingSpecification &value)
CreateAlgorithmRequest & AddTags(const Tag &value)
void SetTrainingSpecification(TrainingSpecification &&value)
const AlgorithmValidationSpecification & GetValidationSpecification() const
CreateAlgorithmRequest & WithValidationSpecification(const AlgorithmValidationSpecification &value)
CreateAlgorithmRequest & WithAlgorithmDescription(Aws::String &&value)
void SetTrainingSpecification(const TrainingSpecification &value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateAlgorithmRequest & WithTags(const Aws::Vector< Tag > &value)
CreateAlgorithmRequest & WithAlgorithmDescription(const Aws::String &value)
void SetValidationSpecification(const AlgorithmValidationSpecification &value)
void SetTags(const Aws::Vector< Tag > &value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateAlgorithmRequest & WithAlgorithmDescription(const char *value)
CreateAlgorithmRequest & WithAlgorithmName(const char *value)
CreateAlgorithmRequest & WithTags(Aws::Vector< Tag > &&value)
void SetInferenceSpecification(InferenceSpecification &&value)
const TrainingSpecification & GetTrainingSpecification() const
CreateAlgorithmRequest & WithInferenceSpecification(InferenceSpecification &&value)
CreateAlgorithmRequest & WithCertifyForMarketplace(bool value)
virtual const char * GetServiceRequestName() const override
void SetAlgorithmDescription(const Aws::String &value)
void SetInferenceSpecification(const InferenceSpecification &value)
CreateAlgorithmRequest & WithValidationSpecification(AlgorithmValidationSpecification &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector