AWS SDK for C++

AWS SDK for C++ Version 1.11.807

Loading...
Searching...
No Matches
SearchTrainingPlanOfferingsRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sagemaker/SageMakerRequest.h>
11#include <aws/sagemaker/SageMaker_EXPORTS.h>
12#include <aws/sagemaker/model/ReservedCapacityInstanceType.h>
13#include <aws/sagemaker/model/SageMakerResourceName.h>
14
15#include <utility>
16
17namespace Aws {
18namespace SageMaker {
19namespace Model {
20
24 public:
25 AWS_SAGEMAKER_API SearchTrainingPlanOfferingsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "SearchTrainingPlanOfferings"; }
32
33 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
34
36
38
46 inline ReservedCapacityInstanceType GetInstanceType() const { return m_instanceType; }
47 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
49 m_instanceTypeHasBeenSet = true;
50 m_instanceType = value;
51 }
53 SetInstanceType(value);
54 return *this;
55 }
57
59
65 inline int GetInstanceCount() const { return m_instanceCount; }
66 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
67 inline void SetInstanceCount(int value) {
68 m_instanceCountHasBeenSet = true;
69 m_instanceCount = value;
70 }
72 SetInstanceCount(value);
73 return *this;
74 }
76
78
81 inline const Aws::String& GetUltraServerType() const { return m_ultraServerType; }
82 inline bool UltraServerTypeHasBeenSet() const { return m_ultraServerTypeHasBeenSet; }
83 template <typename UltraServerTypeT = Aws::String>
84 void SetUltraServerType(UltraServerTypeT&& value) {
85 m_ultraServerTypeHasBeenSet = true;
86 m_ultraServerType = std::forward<UltraServerTypeT>(value);
87 }
88 template <typename UltraServerTypeT = Aws::String>
90 SetUltraServerType(std::forward<UltraServerTypeT>(value));
91 return *this;
92 }
94
96
99 inline int GetUltraServerCount() const { return m_ultraServerCount; }
100 inline bool UltraServerCountHasBeenSet() const { return m_ultraServerCountHasBeenSet; }
101 inline void SetUltraServerCount(int value) {
102 m_ultraServerCountHasBeenSet = true;
103 m_ultraServerCount = value;
104 }
106 SetUltraServerCount(value);
107 return *this;
108 }
110
112
116 inline const Aws::Utils::DateTime& GetStartTimeAfter() const { return m_startTimeAfter; }
117 inline bool StartTimeAfterHasBeenSet() const { return m_startTimeAfterHasBeenSet; }
118 template <typename StartTimeAfterT = Aws::Utils::DateTime>
119 void SetStartTimeAfter(StartTimeAfterT&& value) {
120 m_startTimeAfterHasBeenSet = true;
121 m_startTimeAfter = std::forward<StartTimeAfterT>(value);
122 }
123 template <typename StartTimeAfterT = Aws::Utils::DateTime>
125 SetStartTimeAfter(std::forward<StartTimeAfterT>(value));
126 return *this;
127 }
129
131
135 inline const Aws::Utils::DateTime& GetEndTimeBefore() const { return m_endTimeBefore; }
136 inline bool EndTimeBeforeHasBeenSet() const { return m_endTimeBeforeHasBeenSet; }
137 template <typename EndTimeBeforeT = Aws::Utils::DateTime>
138 void SetEndTimeBefore(EndTimeBeforeT&& value) {
139 m_endTimeBeforeHasBeenSet = true;
140 m_endTimeBefore = std::forward<EndTimeBeforeT>(value);
141 }
142 template <typename EndTimeBeforeT = Aws::Utils::DateTime>
144 SetEndTimeBefore(std::forward<EndTimeBeforeT>(value));
145 return *this;
146 }
148
150
153 inline long long GetDurationHours() const { return m_durationHours; }
154 inline bool DurationHoursHasBeenSet() const { return m_durationHoursHasBeenSet; }
155 inline void SetDurationHours(long long value) {
156 m_durationHoursHasBeenSet = true;
157 m_durationHours = value;
158 }
160 SetDurationHours(value);
161 return *this;
162 }
164
166
179 inline const Aws::Vector<SageMakerResourceName>& GetTargetResources() const { return m_targetResources; }
180 inline bool TargetResourcesHasBeenSet() const { return m_targetResourcesHasBeenSet; }
181 template <typename TargetResourcesT = Aws::Vector<SageMakerResourceName>>
182 void SetTargetResources(TargetResourcesT&& value) {
183 m_targetResourcesHasBeenSet = true;
184 m_targetResources = std::forward<TargetResourcesT>(value);
185 }
186 template <typename TargetResourcesT = Aws::Vector<SageMakerResourceName>>
188 SetTargetResources(std::forward<TargetResourcesT>(value));
189 return *this;
190 }
192 m_targetResourcesHasBeenSet = true;
193 m_targetResources.push_back(value);
194 return *this;
195 }
197
199
204 inline const Aws::String& GetTrainingPlanArn() const { return m_trainingPlanArn; }
205 inline bool TrainingPlanArnHasBeenSet() const { return m_trainingPlanArnHasBeenSet; }
206 template <typename TrainingPlanArnT = Aws::String>
207 void SetTrainingPlanArn(TrainingPlanArnT&& value) {
208 m_trainingPlanArnHasBeenSet = true;
209 m_trainingPlanArn = std::forward<TrainingPlanArnT>(value);
210 }
211 template <typename TrainingPlanArnT = Aws::String>
213 SetTrainingPlanArn(std::forward<TrainingPlanArnT>(value));
214 return *this;
215 }
217 private:
219
220 int m_instanceCount{0};
221
222 Aws::String m_ultraServerType;
223
224 int m_ultraServerCount{0};
225
226 Aws::Utils::DateTime m_startTimeAfter{};
227
228 Aws::Utils::DateTime m_endTimeBefore{};
229
230 long long m_durationHours{0};
231
232 Aws::Vector<SageMakerResourceName> m_targetResources;
233
234 Aws::String m_trainingPlanArn;
235 bool m_instanceTypeHasBeenSet = false;
236 bool m_instanceCountHasBeenSet = false;
237 bool m_ultraServerTypeHasBeenSet = false;
238 bool m_ultraServerCountHasBeenSet = false;
239 bool m_startTimeAfterHasBeenSet = false;
240 bool m_endTimeBeforeHasBeenSet = false;
241 bool m_durationHoursHasBeenSet = false;
242 bool m_targetResourcesHasBeenSet = false;
243 bool m_trainingPlanArnHasBeenSet = false;
244};
245
246} // namespace Model
247} // namespace SageMaker
248} // namespace Aws
AWS_SAGEMAKER_API SearchTrainingPlanOfferingsRequest()=default
SearchTrainingPlanOfferingsRequest & WithTrainingPlanArn(TrainingPlanArnT &&value)
SearchTrainingPlanOfferingsRequest & WithEndTimeBefore(EndTimeBeforeT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
SearchTrainingPlanOfferingsRequest & WithUltraServerType(UltraServerTypeT &&value)
SearchTrainingPlanOfferingsRequest & WithTargetResources(TargetResourcesT &&value)
SearchTrainingPlanOfferingsRequest & WithDurationHours(long long value)
SearchTrainingPlanOfferingsRequest & WithStartTimeAfter(StartTimeAfterT &&value)
const Aws::Vector< SageMakerResourceName > & GetTargetResources() const
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
SearchTrainingPlanOfferingsRequest & WithInstanceType(ReservedCapacityInstanceType value)
SearchTrainingPlanOfferingsRequest & AddTargetResources(SageMakerResourceName 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