AWS SDK for C++  1.9.103
AWS SDK for C++
CreateMLModelRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace MachineLearning
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "CreateMLModel"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetMLModelId() const{ return m_mLModelId; }
43 
47  inline bool MLModelIdHasBeenSet() const { return m_mLModelIdHasBeenSet; }
48 
52  inline void SetMLModelId(const Aws::String& value) { m_mLModelIdHasBeenSet = true; m_mLModelId = value; }
53 
57  inline void SetMLModelId(Aws::String&& value) { m_mLModelIdHasBeenSet = true; m_mLModelId = std::move(value); }
58 
62  inline void SetMLModelId(const char* value) { m_mLModelIdHasBeenSet = true; m_mLModelId.assign(value); }
63 
67  inline CreateMLModelRequest& WithMLModelId(const Aws::String& value) { SetMLModelId(value); return *this;}
68 
72  inline CreateMLModelRequest& WithMLModelId(Aws::String&& value) { SetMLModelId(std::move(value)); return *this;}
73 
77  inline CreateMLModelRequest& WithMLModelId(const char* value) { SetMLModelId(value); return *this;}
78 
79 
83  inline const Aws::String& GetMLModelName() const{ return m_mLModelName; }
84 
88  inline bool MLModelNameHasBeenSet() const { return m_mLModelNameHasBeenSet; }
89 
93  inline void SetMLModelName(const Aws::String& value) { m_mLModelNameHasBeenSet = true; m_mLModelName = value; }
94 
98  inline void SetMLModelName(Aws::String&& value) { m_mLModelNameHasBeenSet = true; m_mLModelName = std::move(value); }
99 
103  inline void SetMLModelName(const char* value) { m_mLModelNameHasBeenSet = true; m_mLModelName.assign(value); }
104 
108  inline CreateMLModelRequest& WithMLModelName(const Aws::String& value) { SetMLModelName(value); return *this;}
109 
113  inline CreateMLModelRequest& WithMLModelName(Aws::String&& value) { SetMLModelName(std::move(value)); return *this;}
114 
118  inline CreateMLModelRequest& WithMLModelName(const char* value) { SetMLModelName(value); return *this;}
119 
120 
132  inline const MLModelType& GetMLModelType() const{ return m_mLModelType; }
133 
145  inline bool MLModelTypeHasBeenSet() const { return m_mLModelTypeHasBeenSet; }
146 
158  inline void SetMLModelType(const MLModelType& value) { m_mLModelTypeHasBeenSet = true; m_mLModelType = value; }
159 
171  inline void SetMLModelType(MLModelType&& value) { m_mLModelTypeHasBeenSet = true; m_mLModelType = std::move(value); }
172 
184  inline CreateMLModelRequest& WithMLModelType(const MLModelType& value) { SetMLModelType(value); return *this;}
185 
197  inline CreateMLModelRequest& WithMLModelType(MLModelType&& value) { SetMLModelType(std::move(value)); return *this;}
198 
199 
232  inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const{ return m_parameters; }
233 
266  inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
267 
300  inline void SetParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
301 
334  inline void SetParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
335 
368  inline CreateMLModelRequest& WithParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetParameters(value); return *this;}
369 
402  inline CreateMLModelRequest& WithParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetParameters(std::move(value)); return *this;}
403 
436  inline CreateMLModelRequest& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
437 
470  inline CreateMLModelRequest& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
471 
504  inline CreateMLModelRequest& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
505 
538  inline CreateMLModelRequest& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
539 
572  inline CreateMLModelRequest& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
573 
606  inline CreateMLModelRequest& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
607 
640  inline CreateMLModelRequest& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
641 
642 
646  inline const Aws::String& GetTrainingDataSourceId() const{ return m_trainingDataSourceId; }
647 
651  inline bool TrainingDataSourceIdHasBeenSet() const { return m_trainingDataSourceIdHasBeenSet; }
652 
656  inline void SetTrainingDataSourceId(const Aws::String& value) { m_trainingDataSourceIdHasBeenSet = true; m_trainingDataSourceId = value; }
657 
661  inline void SetTrainingDataSourceId(Aws::String&& value) { m_trainingDataSourceIdHasBeenSet = true; m_trainingDataSourceId = std::move(value); }
662 
666  inline void SetTrainingDataSourceId(const char* value) { m_trainingDataSourceIdHasBeenSet = true; m_trainingDataSourceId.assign(value); }
667 
671  inline CreateMLModelRequest& WithTrainingDataSourceId(const Aws::String& value) { SetTrainingDataSourceId(value); return *this;}
672 
676  inline CreateMLModelRequest& WithTrainingDataSourceId(Aws::String&& value) { SetTrainingDataSourceId(std::move(value)); return *this;}
677 
681  inline CreateMLModelRequest& WithTrainingDataSourceId(const char* value) { SetTrainingDataSourceId(value); return *this;}
682 
683 
689  inline const Aws::String& GetRecipe() const{ return m_recipe; }
690 
696  inline bool RecipeHasBeenSet() const { return m_recipeHasBeenSet; }
697 
703  inline void SetRecipe(const Aws::String& value) { m_recipeHasBeenSet = true; m_recipe = value; }
704 
710  inline void SetRecipe(Aws::String&& value) { m_recipeHasBeenSet = true; m_recipe = std::move(value); }
711 
717  inline void SetRecipe(const char* value) { m_recipeHasBeenSet = true; m_recipe.assign(value); }
718 
724  inline CreateMLModelRequest& WithRecipe(const Aws::String& value) { SetRecipe(value); return *this;}
725 
731  inline CreateMLModelRequest& WithRecipe(Aws::String&& value) { SetRecipe(std::move(value)); return *this;}
732 
738  inline CreateMLModelRequest& WithRecipe(const char* value) { SetRecipe(value); return *this;}
739 
740 
747  inline const Aws::String& GetRecipeUri() const{ return m_recipeUri; }
748 
755  inline bool RecipeUriHasBeenSet() const { return m_recipeUriHasBeenSet; }
756 
763  inline void SetRecipeUri(const Aws::String& value) { m_recipeUriHasBeenSet = true; m_recipeUri = value; }
764 
771  inline void SetRecipeUri(Aws::String&& value) { m_recipeUriHasBeenSet = true; m_recipeUri = std::move(value); }
772 
779  inline void SetRecipeUri(const char* value) { m_recipeUriHasBeenSet = true; m_recipeUri.assign(value); }
780 
787  inline CreateMLModelRequest& WithRecipeUri(const Aws::String& value) { SetRecipeUri(value); return *this;}
788 
795  inline CreateMLModelRequest& WithRecipeUri(Aws::String&& value) { SetRecipeUri(std::move(value)); return *this;}
796 
803  inline CreateMLModelRequest& WithRecipeUri(const char* value) { SetRecipeUri(value); return *this;}
804 
805  private:
806 
807  Aws::String m_mLModelId;
808  bool m_mLModelIdHasBeenSet;
809 
810  Aws::String m_mLModelName;
811  bool m_mLModelNameHasBeenSet;
812 
813  MLModelType m_mLModelType;
814  bool m_mLModelTypeHasBeenSet;
815 
817  bool m_parametersHasBeenSet;
818 
819  Aws::String m_trainingDataSourceId;
820  bool m_trainingDataSourceIdHasBeenSet;
821 
822  Aws::String m_recipe;
823  bool m_recipeHasBeenSet;
824 
825  Aws::String m_recipeUri;
826  bool m_recipeUriHasBeenSet;
827  };
828 
829 } // namespace Model
830 } // namespace MachineLearning
831 } // namespace Aws
Aws::MachineLearning::Model::CreateMLModelRequest::GetRecipe
const Aws::String & GetRecipe() const
Definition: CreateMLModelRequest.h:689
Aws::MachineLearning::Model::CreateMLModelRequest::SetMLModelName
void SetMLModelName(Aws::String &&value)
Definition: CreateMLModelRequest.h:98
Aws::MachineLearning::Model::CreateMLModelRequest::SetRecipe
void SetRecipe(Aws::String &&value)
Definition: CreateMLModelRequest.h:710
Aws::MachineLearning::Model::CreateMLModelRequest::ParametersHasBeenSet
bool ParametersHasBeenSet() const
Definition: CreateMLModelRequest.h:266
Aws::MachineLearning::Model::CreateMLModelRequest::WithMLModelId
CreateMLModelRequest & WithMLModelId(const char *value)
Definition: CreateMLModelRequest.h:77
Aws::MachineLearning::Model::CreateMLModelRequest::TrainingDataSourceIdHasBeenSet
bool TrainingDataSourceIdHasBeenSet() const
Definition: CreateMLModelRequest.h:651
Aws::MachineLearning::Model::CreateMLModelRequest::WithRecipe
CreateMLModelRequest & WithRecipe(const Aws::String &value)
Definition: CreateMLModelRequest.h:724
Aws::MachineLearning::Model::CreateMLModelRequest::WithMLModelName
CreateMLModelRequest & WithMLModelName(const char *value)
Definition: CreateMLModelRequest.h:118
Aws::MachineLearning::Model::CreateMLModelRequest::GetParameters
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
Definition: CreateMLModelRequest.h:232
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::MachineLearning::Model::CreateMLModelRequest::RecipeUriHasBeenSet
bool RecipeUriHasBeenSet() const
Definition: CreateMLModelRequest.h:755
MachineLearning_EXPORTS.h
Aws::MachineLearning::Model::CreateMLModelRequest::AddParameters
CreateMLModelRequest & AddParameters(Aws::String &&key, const char *value)
Definition: CreateMLModelRequest.h:606
Aws::MachineLearning::Model::CreateMLModelRequest::GetMLModelId
const Aws::String & GetMLModelId() const
Definition: CreateMLModelRequest.h:42
Aws::MachineLearning::Model::CreateMLModelRequest::WithTrainingDataSourceId
CreateMLModelRequest & WithTrainingDataSourceId(const char *value)
Definition: CreateMLModelRequest.h:681
Aws::MachineLearning::Model::CreateMLModelRequest::MLModelIdHasBeenSet
bool MLModelIdHasBeenSet() const
Definition: CreateMLModelRequest.h:47
Aws::MachineLearning::Model::CreateMLModelRequest::AddParameters
CreateMLModelRequest & AddParameters(const char *key, const char *value)
Definition: CreateMLModelRequest.h:640
Aws::MachineLearning::Model::CreateMLModelRequest::SetRecipeUri
void SetRecipeUri(Aws::String &&value)
Definition: CreateMLModelRequest.h:771
Aws::MachineLearning::Model::CreateMLModelRequest::WithRecipeUri
CreateMLModelRequest & WithRecipeUri(Aws::String &&value)
Definition: CreateMLModelRequest.h:795
Aws::MachineLearning::Model::CreateMLModelRequest::AddParameters
CreateMLModelRequest & AddParameters(const Aws::String &key, Aws::String &&value)
Definition: CreateMLModelRequest.h:504
Aws::MachineLearning::Model::CreateMLModelRequest::SetMLModelId
void SetMLModelId(const Aws::String &value)
Definition: CreateMLModelRequest.h:52
Aws::MachineLearning::Model::CreateMLModelRequest::GetMLModelType
const MLModelType & GetMLModelType() const
Definition: CreateMLModelRequest.h:132
Aws::MachineLearning::Model::CreateMLModelRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::MachineLearning::Model::CreateMLModelRequest::WithMLModelName
CreateMLModelRequest & WithMLModelName(Aws::String &&value)
Definition: CreateMLModelRequest.h:113
Aws::MachineLearning::Model::CreateMLModelRequest::SetRecipeUri
void SetRecipeUri(const Aws::String &value)
Definition: CreateMLModelRequest.h:763
Aws::MachineLearning::Model::CreateMLModelRequest::SetMLModelId
void SetMLModelId(Aws::String &&value)
Definition: CreateMLModelRequest.h:57
Aws::MachineLearning::Model::CreateMLModelRequest::SetRecipeUri
void SetRecipeUri(const char *value)
Definition: CreateMLModelRequest.h:779
Aws::MachineLearning::Model::CreateMLModelRequest::AddParameters
CreateMLModelRequest & AddParameters(const Aws::String &key, const Aws::String &value)
Definition: CreateMLModelRequest.h:436
Aws::MachineLearning::Model::CreateMLModelRequest::SetMLModelType
void SetMLModelType(MLModelType &&value)
Definition: CreateMLModelRequest.h:171
AWS_MACHINELEARNING_API
#define AWS_MACHINELEARNING_API
Definition: MachineLearning_EXPORTS.h:28
Aws::MachineLearning::Model::CreateMLModelRequest::WithMLModelType
CreateMLModelRequest & WithMLModelType(const MLModelType &value)
Definition: CreateMLModelRequest.h:184
Aws::MachineLearning::Model::MLModelType
MLModelType
Definition: MLModelType.h:17
Aws::MachineLearning::Model::CreateMLModelRequest::WithRecipeUri
CreateMLModelRequest & WithRecipeUri(const char *value)
Definition: CreateMLModelRequest.h:803
Aws::MachineLearning::Model::CreateMLModelRequest::CreateMLModelRequest
CreateMLModelRequest()
Aws::MachineLearning::Model::CreateMLModelRequest::WithMLModelId
CreateMLModelRequest & WithMLModelId(Aws::String &&value)
Definition: CreateMLModelRequest.h:72
Aws::MachineLearning::Model::CreateMLModelRequest::WithRecipe
CreateMLModelRequest & WithRecipe(const char *value)
Definition: CreateMLModelRequest.h:738
Aws::MachineLearning::Model::CreateMLModelRequest::SetTrainingDataSourceId
void SetTrainingDataSourceId(const Aws::String &value)
Definition: CreateMLModelRequest.h:656
Aws::MachineLearning::Model::CreateMLModelRequest::MLModelNameHasBeenSet
bool MLModelNameHasBeenSet() const
Definition: CreateMLModelRequest.h:88
Aws::MachineLearning::Model::CreateMLModelRequest::WithRecipe
CreateMLModelRequest & WithRecipe(Aws::String &&value)
Definition: CreateMLModelRequest.h:731
AWSString.h
Aws::MachineLearning::Model::CreateMLModelRequest::WithTrainingDataSourceId
CreateMLModelRequest & WithTrainingDataSourceId(const Aws::String &value)
Definition: CreateMLModelRequest.h:671
Aws::MachineLearning::Model::CreateMLModelRequest::WithRecipeUri
CreateMLModelRequest & WithRecipeUri(const Aws::String &value)
Definition: CreateMLModelRequest.h:787
Aws::MachineLearning::Model::CreateMLModelRequest::SetTrainingDataSourceId
void SetTrainingDataSourceId(const char *value)
Definition: CreateMLModelRequest.h:666
Aws::MachineLearning::Model::CreateMLModelRequest::WithMLModelName
CreateMLModelRequest & WithMLModelName(const Aws::String &value)
Definition: CreateMLModelRequest.h:108
Aws::MachineLearning::Model::CreateMLModelRequest::WithMLModelType
CreateMLModelRequest & WithMLModelType(MLModelType &&value)
Definition: CreateMLModelRequest.h:197
MLModelType.h
Aws::MachineLearning::Model::CreateMLModelRequest::GetMLModelName
const Aws::String & GetMLModelName() const
Definition: CreateMLModelRequest.h:83
Aws::MachineLearning::Model::CreateMLModelRequest::GetTrainingDataSourceId
const Aws::String & GetTrainingDataSourceId() const
Definition: CreateMLModelRequest.h:646
Aws::MachineLearning::Model::CreateMLModelRequest::WithParameters
CreateMLModelRequest & WithParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateMLModelRequest.h:402
Aws::MachineLearning::Model::CreateMLModelRequest::SetTrainingDataSourceId
void SetTrainingDataSourceId(Aws::String &&value)
Definition: CreateMLModelRequest.h:661
MachineLearningRequest.h
Aws::MachineLearning::Model::CreateMLModelRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::MachineLearning::Model::CreateMLModelRequest::WithMLModelId
CreateMLModelRequest & WithMLModelId(const Aws::String &value)
Definition: CreateMLModelRequest.h:67
Aws::MachineLearning::Model::CreateMLModelRequest::MLModelTypeHasBeenSet
bool MLModelTypeHasBeenSet() const
Definition: CreateMLModelRequest.h:145
Aws::MachineLearning::Model::CreateMLModelRequest::SetRecipe
void SetRecipe(const char *value)
Definition: CreateMLModelRequest.h:717
Aws::MachineLearning::MachineLearningRequest
Definition: MachineLearningRequest.h:17
Aws::MachineLearning::Model::CreateMLModelRequest::SetMLModelId
void SetMLModelId(const char *value)
Definition: CreateMLModelRequest.h:62
Aws::MachineLearning::Model::CreateMLModelRequest
Definition: CreateMLModelRequest.h:24
Aws::MachineLearning::Model::CreateMLModelRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateMLModelRequest.h:32
Aws::MachineLearning::Model::CreateMLModelRequest::SetRecipe
void SetRecipe(const Aws::String &value)
Definition: CreateMLModelRequest.h:703
Aws::MachineLearning::Model::CreateMLModelRequest::RecipeHasBeenSet
bool RecipeHasBeenSet() const
Definition: CreateMLModelRequest.h:696
Aws
Definition: AccessManagementClient.h:15
Aws::MachineLearning::Model::CreateMLModelRequest::SetMLModelName
void SetMLModelName(const Aws::String &value)
Definition: CreateMLModelRequest.h:93
Aws::MachineLearning::Model::CreateMLModelRequest::AddParameters
CreateMLModelRequest & AddParameters(Aws::String &&key, const Aws::String &value)
Definition: CreateMLModelRequest.h:470
Aws::MachineLearning::Model::CreateMLModelRequest::SetMLModelType
void SetMLModelType(const MLModelType &value)
Definition: CreateMLModelRequest.h:158
Aws::MachineLearning::Model::CreateMLModelRequest::AddParameters
CreateMLModelRequest & AddParameters(Aws::String &&key, Aws::String &&value)
Definition: CreateMLModelRequest.h:538
Aws::MachineLearning::Model::CreateMLModelRequest::GetRecipeUri
const Aws::String & GetRecipeUri() const
Definition: CreateMLModelRequest.h:747
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MachineLearning::Model::CreateMLModelRequest::AddParameters
CreateMLModelRequest & AddParameters(const char *key, Aws::String &&value)
Definition: CreateMLModelRequest.h:572
Aws::MachineLearning::Model::CreateMLModelRequest::WithParameters
CreateMLModelRequest & WithParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateMLModelRequest.h:368
Aws::MachineLearning::Model::CreateMLModelRequest::SetParameters
void SetParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateMLModelRequest.h:300
AWSMap.h
Aws::MachineLearning::Model::CreateMLModelRequest::SetParameters
void SetParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateMLModelRequest.h:334
Aws::MachineLearning::Model::CreateMLModelRequest::WithTrainingDataSourceId
CreateMLModelRequest & WithTrainingDataSourceId(Aws::String &&value)
Definition: CreateMLModelRequest.h:676
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::MachineLearning::Model::CreateMLModelRequest::SetMLModelName
void SetMLModelName(const char *value)
Definition: CreateMLModelRequest.h:103