AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateTrainingPlanRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/sagemaker/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SageMaker
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SAGEMAKER_API CreateTrainingPlanRequest() = default;
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 "CreateTrainingPlan"; }
33
34 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetTrainingPlanName() const { return m_trainingPlanName; }
44 inline bool TrainingPlanNameHasBeenSet() const { return m_trainingPlanNameHasBeenSet; }
45 template<typename TrainingPlanNameT = Aws::String>
46 void SetTrainingPlanName(TrainingPlanNameT&& value) { m_trainingPlanNameHasBeenSet = true; m_trainingPlanName = std::forward<TrainingPlanNameT>(value); }
47 template<typename TrainingPlanNameT = Aws::String>
48 CreateTrainingPlanRequest& WithTrainingPlanName(TrainingPlanNameT&& value) { SetTrainingPlanName(std::forward<TrainingPlanNameT>(value)); return *this;}
50
52
56 inline const Aws::String& GetTrainingPlanOfferingId() const { return m_trainingPlanOfferingId; }
57 inline bool TrainingPlanOfferingIdHasBeenSet() const { return m_trainingPlanOfferingIdHasBeenSet; }
58 template<typename TrainingPlanOfferingIdT = Aws::String>
59 void SetTrainingPlanOfferingId(TrainingPlanOfferingIdT&& value) { m_trainingPlanOfferingIdHasBeenSet = true; m_trainingPlanOfferingId = std::forward<TrainingPlanOfferingIdT>(value); }
60 template<typename TrainingPlanOfferingIdT = Aws::String>
61 CreateTrainingPlanRequest& WithTrainingPlanOfferingId(TrainingPlanOfferingIdT&& value) { SetTrainingPlanOfferingId(std::forward<TrainingPlanOfferingIdT>(value)); return *this;}
63
65
68 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
69 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
70 template<typename TagsT = Aws::Vector<Tag>>
71 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
72 template<typename TagsT = Aws::Vector<Tag>>
73 CreateTrainingPlanRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
74 template<typename TagsT = Tag>
75 CreateTrainingPlanRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
77 private:
78
79 Aws::String m_trainingPlanName;
80 bool m_trainingPlanNameHasBeenSet = false;
81
82 Aws::String m_trainingPlanOfferingId;
83 bool m_trainingPlanOfferingIdHasBeenSet = false;
84
85 Aws::Vector<Tag> m_tags;
86 bool m_tagsHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace SageMaker
91} // namespace Aws
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateTrainingPlanRequest & AddTags(TagsT &&value)
void SetTrainingPlanOfferingId(TrainingPlanOfferingIdT &&value)
AWS_SAGEMAKER_API CreateTrainingPlanRequest()=default
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateTrainingPlanRequest & WithTrainingPlanName(TrainingPlanNameT &&value)
CreateTrainingPlanRequest & WithTrainingPlanOfferingId(TrainingPlanOfferingIdT &&value)
virtual const char * GetServiceRequestName() const override
CreateTrainingPlanRequest & WithTags(TagsT &&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