AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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
176 inline const Aws::Vector<SageMakerResourceName>& GetTargetResources() const { return m_targetResources; }
177 inline bool TargetResourcesHasBeenSet() const { return m_targetResourcesHasBeenSet; }
178 template <typename TargetResourcesT = Aws::Vector<SageMakerResourceName>>
179 void SetTargetResources(TargetResourcesT&& value) {
180 m_targetResourcesHasBeenSet = true;
181 m_targetResources = std::forward<TargetResourcesT>(value);
182 }
183 template <typename TargetResourcesT = Aws::Vector<SageMakerResourceName>>
185 SetTargetResources(std::forward<TargetResourcesT>(value));
186 return *this;
187 }
189 m_targetResourcesHasBeenSet = true;
190 m_targetResources.push_back(value);
191 return *this;
192 }
194 private:
196
197 int m_instanceCount{0};
198
199 Aws::String m_ultraServerType;
200
201 int m_ultraServerCount{0};
202
203 Aws::Utils::DateTime m_startTimeAfter{};
204
205 Aws::Utils::DateTime m_endTimeBefore{};
206
207 long long m_durationHours{0};
208
209 Aws::Vector<SageMakerResourceName> m_targetResources;
210 bool m_instanceTypeHasBeenSet = false;
211 bool m_instanceCountHasBeenSet = false;
212 bool m_ultraServerTypeHasBeenSet = false;
213 bool m_ultraServerCountHasBeenSet = false;
214 bool m_startTimeAfterHasBeenSet = false;
215 bool m_endTimeBeforeHasBeenSet = false;
216 bool m_durationHoursHasBeenSet = false;
217 bool m_targetResourcesHasBeenSet = false;
218};
219
220} // namespace Model
221} // namespace SageMaker
222} // namespace Aws
AWS_SAGEMAKER_API SearchTrainingPlanOfferingsRequest()=default
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