AWS SDK for C++  1.8.95
AWS SDK for C++
CreateModelPackageRequest.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 "CreateModelPackage"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
39 
44  inline const Aws::String& GetModelPackageName() const{ return m_modelPackageName; }
45 
50  inline bool ModelPackageNameHasBeenSet() const { return m_modelPackageNameHasBeenSet; }
51 
56  inline void SetModelPackageName(const Aws::String& value) { m_modelPackageNameHasBeenSet = true; m_modelPackageName = value; }
57 
62  inline void SetModelPackageName(Aws::String&& value) { m_modelPackageNameHasBeenSet = true; m_modelPackageName = std::move(value); }
63 
68  inline void SetModelPackageName(const char* value) { m_modelPackageNameHasBeenSet = true; m_modelPackageName.assign(value); }
69 
74  inline CreateModelPackageRequest& WithModelPackageName(const Aws::String& value) { SetModelPackageName(value); return *this;}
75 
80  inline CreateModelPackageRequest& WithModelPackageName(Aws::String&& value) { SetModelPackageName(std::move(value)); return *this;}
81 
86  inline CreateModelPackageRequest& WithModelPackageName(const char* value) { SetModelPackageName(value); return *this;}
87 
88 
92  inline const Aws::String& GetModelPackageDescription() const{ return m_modelPackageDescription; }
93 
97  inline bool ModelPackageDescriptionHasBeenSet() const { return m_modelPackageDescriptionHasBeenSet; }
98 
102  inline void SetModelPackageDescription(const Aws::String& value) { m_modelPackageDescriptionHasBeenSet = true; m_modelPackageDescription = value; }
103 
107  inline void SetModelPackageDescription(Aws::String&& value) { m_modelPackageDescriptionHasBeenSet = true; m_modelPackageDescription = std::move(value); }
108 
112  inline void SetModelPackageDescription(const char* value) { m_modelPackageDescriptionHasBeenSet = true; m_modelPackageDescription.assign(value); }
113 
117  inline CreateModelPackageRequest& WithModelPackageDescription(const Aws::String& value) { SetModelPackageDescription(value); return *this;}
118 
122  inline CreateModelPackageRequest& WithModelPackageDescription(Aws::String&& value) { SetModelPackageDescription(std::move(value)); return *this;}
123 
127  inline CreateModelPackageRequest& WithModelPackageDescription(const char* value) { SetModelPackageDescription(value); return *this;}
128 
129 
139  inline const InferenceSpecification& GetInferenceSpecification() const{ return m_inferenceSpecification; }
140 
150  inline bool InferenceSpecificationHasBeenSet() const { return m_inferenceSpecificationHasBeenSet; }
151 
161  inline void SetInferenceSpecification(const InferenceSpecification& value) { m_inferenceSpecificationHasBeenSet = true; m_inferenceSpecification = value; }
162 
172  inline void SetInferenceSpecification(InferenceSpecification&& value) { m_inferenceSpecificationHasBeenSet = true; m_inferenceSpecification = std::move(value); }
173 
183  inline CreateModelPackageRequest& WithInferenceSpecification(const InferenceSpecification& value) { SetInferenceSpecification(value); return *this;}
184 
194  inline CreateModelPackageRequest& WithInferenceSpecification(InferenceSpecification&& value) { SetInferenceSpecification(std::move(value)); return *this;}
195 
196 
201  inline const ModelPackageValidationSpecification& GetValidationSpecification() const{ return m_validationSpecification; }
202 
207  inline bool ValidationSpecificationHasBeenSet() const { return m_validationSpecificationHasBeenSet; }
208 
213  inline void SetValidationSpecification(const ModelPackageValidationSpecification& value) { m_validationSpecificationHasBeenSet = true; m_validationSpecification = value; }
214 
219  inline void SetValidationSpecification(ModelPackageValidationSpecification&& value) { m_validationSpecificationHasBeenSet = true; m_validationSpecification = std::move(value); }
220 
225  inline CreateModelPackageRequest& WithValidationSpecification(const ModelPackageValidationSpecification& value) { SetValidationSpecification(value); return *this;}
226 
231  inline CreateModelPackageRequest& WithValidationSpecification(ModelPackageValidationSpecification&& value) { SetValidationSpecification(std::move(value)); return *this;}
232 
233 
237  inline const SourceAlgorithmSpecification& GetSourceAlgorithmSpecification() const{ return m_sourceAlgorithmSpecification; }
238 
242  inline bool SourceAlgorithmSpecificationHasBeenSet() const { return m_sourceAlgorithmSpecificationHasBeenSet; }
243 
247  inline void SetSourceAlgorithmSpecification(const SourceAlgorithmSpecification& value) { m_sourceAlgorithmSpecificationHasBeenSet = true; m_sourceAlgorithmSpecification = value; }
248 
252  inline void SetSourceAlgorithmSpecification(SourceAlgorithmSpecification&& value) { m_sourceAlgorithmSpecificationHasBeenSet = true; m_sourceAlgorithmSpecification = std::move(value); }
253 
257  inline CreateModelPackageRequest& WithSourceAlgorithmSpecification(const SourceAlgorithmSpecification& value) { SetSourceAlgorithmSpecification(value); return *this;}
258 
262  inline CreateModelPackageRequest& WithSourceAlgorithmSpecification(SourceAlgorithmSpecification&& value) { SetSourceAlgorithmSpecification(std::move(value)); return *this;}
263 
264 
268  inline bool GetCertifyForMarketplace() const{ return m_certifyForMarketplace; }
269 
273  inline bool CertifyForMarketplaceHasBeenSet() const { return m_certifyForMarketplaceHasBeenSet; }
274 
278  inline void SetCertifyForMarketplace(bool value) { m_certifyForMarketplaceHasBeenSet = true; m_certifyForMarketplace = value; }
279 
283  inline CreateModelPackageRequest& WithCertifyForMarketplace(bool value) { SetCertifyForMarketplace(value); return *this;}
284 
285  private:
286 
287  Aws::String m_modelPackageName;
288  bool m_modelPackageNameHasBeenSet;
289 
290  Aws::String m_modelPackageDescription;
291  bool m_modelPackageDescriptionHasBeenSet;
292 
293  InferenceSpecification m_inferenceSpecification;
294  bool m_inferenceSpecificationHasBeenSet;
295 
296  ModelPackageValidationSpecification m_validationSpecification;
297  bool m_validationSpecificationHasBeenSet;
298 
299  SourceAlgorithmSpecification m_sourceAlgorithmSpecification;
300  bool m_sourceAlgorithmSpecificationHasBeenSet;
301 
302  bool m_certifyForMarketplace;
303  bool m_certifyForMarketplaceHasBeenSet;
304  };
305 
306 } // namespace Model
307 } // namespace SageMaker
308 } // namespace Aws
#define AWS_SAGEMAKER_API
CreateModelPackageRequest & WithModelPackageName(const char *value)
const InferenceSpecification & GetInferenceSpecification() const
CreateModelPackageRequest & WithInferenceSpecification(const InferenceSpecification &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
void SetInferenceSpecification(const InferenceSpecification &value)
CreateModelPackageRequest & WithModelPackageDescription(const Aws::String &value)
void SetValidationSpecification(ModelPackageValidationSpecification &&value)
void SetInferenceSpecification(InferenceSpecification &&value)
void SetSourceAlgorithmSpecification(const SourceAlgorithmSpecification &value)
CreateModelPackageRequest & WithCertifyForMarketplace(bool value)
const SourceAlgorithmSpecification & GetSourceAlgorithmSpecification() const
CreateModelPackageRequest & WithInferenceSpecification(InferenceSpecification &&value)
void SetSourceAlgorithmSpecification(SourceAlgorithmSpecification &&value)
CreateModelPackageRequest & WithSourceAlgorithmSpecification(SourceAlgorithmSpecification &&value)
CreateModelPackageRequest & WithValidationSpecification(const ModelPackageValidationSpecification &value)
CreateModelPackageRequest & WithModelPackageDescription(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const ModelPackageValidationSpecification & GetValidationSpecification() const
CreateModelPackageRequest & WithSourceAlgorithmSpecification(const SourceAlgorithmSpecification &value)
CreateModelPackageRequest & WithModelPackageName(Aws::String &&value)
CreateModelPackageRequest & WithModelPackageDescription(const char *value)
CreateModelPackageRequest & WithModelPackageName(const Aws::String &value)
void SetValidationSpecification(const ModelPackageValidationSpecification &value)
CreateModelPackageRequest & WithValidationSpecification(ModelPackageValidationSpecification &&value)