AWS SDK for C++

AWS SDK for C++ Version 1.11.633

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
69 inline int GetSpareInstanceCountPerUltraServer() const { return m_spareInstanceCountPerUltraServer; }
70 inline bool SpareInstanceCountPerUltraServerHasBeenSet() const { return m_spareInstanceCountPerUltraServerHasBeenSet; }
71 inline void SetSpareInstanceCountPerUltraServer(int value) { m_spareInstanceCountPerUltraServerHasBeenSet = true; m_spareInstanceCountPerUltraServer = value; }
74
76
79 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
80 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
81 template<typename TagsT = Aws::Vector<Tag>>
82 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
83 template<typename TagsT = Aws::Vector<Tag>>
84 CreateTrainingPlanRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
85 template<typename TagsT = Tag>
86 CreateTrainingPlanRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
88 private:
89
90 Aws::String m_trainingPlanName;
91 bool m_trainingPlanNameHasBeenSet = false;
92
93 Aws::String m_trainingPlanOfferingId;
94 bool m_trainingPlanOfferingIdHasBeenSet = false;
95
96 int m_spareInstanceCountPerUltraServer{0};
97 bool m_spareInstanceCountPerUltraServerHasBeenSet = false;
98
99 Aws::Vector<Tag> m_tags;
100 bool m_tagsHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace SageMaker
105} // 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 & WithSpareInstanceCountPerUltraServer(int 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