AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateTrainingPlanRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/SageMakerRequest.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace SageMaker {
17namespace Model {
18
22 public:
23 AWS_SAGEMAKER_API CreateTrainingPlanRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateTrainingPlan"; }
30
31 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetTrainingPlanName() const { return m_trainingPlanName; }
40 inline bool TrainingPlanNameHasBeenSet() const { return m_trainingPlanNameHasBeenSet; }
41 template <typename TrainingPlanNameT = Aws::String>
42 void SetTrainingPlanName(TrainingPlanNameT&& value) {
43 m_trainingPlanNameHasBeenSet = true;
44 m_trainingPlanName = std::forward<TrainingPlanNameT>(value);
45 }
46 template <typename TrainingPlanNameT = Aws::String>
47 CreateTrainingPlanRequest& WithTrainingPlanName(TrainingPlanNameT&& value) {
48 SetTrainingPlanName(std::forward<TrainingPlanNameT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetTrainingPlanOfferingId() const { return m_trainingPlanOfferingId; }
59 inline bool TrainingPlanOfferingIdHasBeenSet() const { return m_trainingPlanOfferingIdHasBeenSet; }
60 template <typename TrainingPlanOfferingIdT = Aws::String>
61 void SetTrainingPlanOfferingId(TrainingPlanOfferingIdT&& value) {
62 m_trainingPlanOfferingIdHasBeenSet = true;
63 m_trainingPlanOfferingId = std::forward<TrainingPlanOfferingIdT>(value);
64 }
65 template <typename TrainingPlanOfferingIdT = Aws::String>
66 CreateTrainingPlanRequest& WithTrainingPlanOfferingId(TrainingPlanOfferingIdT&& value) {
67 SetTrainingPlanOfferingId(std::forward<TrainingPlanOfferingIdT>(value));
68 return *this;
69 }
71
73
77 inline int GetSpareInstanceCountPerUltraServer() const { return m_spareInstanceCountPerUltraServer; }
78 inline bool SpareInstanceCountPerUltraServerHasBeenSet() const { return m_spareInstanceCountPerUltraServerHasBeenSet; }
79 inline void SetSpareInstanceCountPerUltraServer(int value) {
80 m_spareInstanceCountPerUltraServerHasBeenSet = true;
81 m_spareInstanceCountPerUltraServer = value;
82 }
85 return *this;
86 }
88
90
93 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
94 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
95 template <typename TagsT = Aws::Vector<Tag>>
96 void SetTags(TagsT&& value) {
97 m_tagsHasBeenSet = true;
98 m_tags = std::forward<TagsT>(value);
99 }
100 template <typename TagsT = Aws::Vector<Tag>>
102 SetTags(std::forward<TagsT>(value));
103 return *this;
104 }
105 template <typename TagsT = Tag>
107 m_tagsHasBeenSet = true;
108 m_tags.emplace_back(std::forward<TagsT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_trainingPlanName;
114
115 Aws::String m_trainingPlanOfferingId;
116
117 int m_spareInstanceCountPerUltraServer{0};
118
119 Aws::Vector<Tag> m_tags;
120 bool m_trainingPlanNameHasBeenSet = false;
121 bool m_trainingPlanOfferingIdHasBeenSet = false;
122 bool m_spareInstanceCountPerUltraServerHasBeenSet = false;
123 bool m_tagsHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace SageMaker
128} // 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