AWS SDK for C++

AWS SDK for C++ Version 1.11.635

Loading...
Searching...
No Matches
SearchTrainingPlanOfferingsRequest.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/sagemaker/model/ReservedCapacityInstanceType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/sagemaker/model/SageMakerResourceName.h>
14#include <utility>
15
16namespace Aws
17{
18namespace SageMaker
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_SAGEMAKER_API SearchTrainingPlanOfferingsRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "SearchTrainingPlanOfferings"; }
35
36 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
37
39
40
42
50 inline ReservedCapacityInstanceType GetInstanceType() const { return m_instanceType; }
51 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
52 inline void SetInstanceType(ReservedCapacityInstanceType value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
55
57
63 inline int GetInstanceCount() const { return m_instanceCount; }
64 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
65 inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
66 inline SearchTrainingPlanOfferingsRequest& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
68
70
73 inline const Aws::String& GetUltraServerType() const { return m_ultraServerType; }
74 inline bool UltraServerTypeHasBeenSet() const { return m_ultraServerTypeHasBeenSet; }
75 template<typename UltraServerTypeT = Aws::String>
76 void SetUltraServerType(UltraServerTypeT&& value) { m_ultraServerTypeHasBeenSet = true; m_ultraServerType = std::forward<UltraServerTypeT>(value); }
77 template<typename UltraServerTypeT = Aws::String>
78 SearchTrainingPlanOfferingsRequest& WithUltraServerType(UltraServerTypeT&& value) { SetUltraServerType(std::forward<UltraServerTypeT>(value)); return *this;}
80
82
85 inline int GetUltraServerCount() const { return m_ultraServerCount; }
86 inline bool UltraServerCountHasBeenSet() const { return m_ultraServerCountHasBeenSet; }
87 inline void SetUltraServerCount(int value) { m_ultraServerCountHasBeenSet = true; m_ultraServerCount = value; }
90
92
96 inline const Aws::Utils::DateTime& GetStartTimeAfter() const { return m_startTimeAfter; }
97 inline bool StartTimeAfterHasBeenSet() const { return m_startTimeAfterHasBeenSet; }
98 template<typename StartTimeAfterT = Aws::Utils::DateTime>
99 void SetStartTimeAfter(StartTimeAfterT&& value) { m_startTimeAfterHasBeenSet = true; m_startTimeAfter = std::forward<StartTimeAfterT>(value); }
100 template<typename StartTimeAfterT = Aws::Utils::DateTime>
101 SearchTrainingPlanOfferingsRequest& WithStartTimeAfter(StartTimeAfterT&& value) { SetStartTimeAfter(std::forward<StartTimeAfterT>(value)); return *this;}
103
105
109 inline const Aws::Utils::DateTime& GetEndTimeBefore() const { return m_endTimeBefore; }
110 inline bool EndTimeBeforeHasBeenSet() const { return m_endTimeBeforeHasBeenSet; }
111 template<typename EndTimeBeforeT = Aws::Utils::DateTime>
112 void SetEndTimeBefore(EndTimeBeforeT&& value) { m_endTimeBeforeHasBeenSet = true; m_endTimeBefore = std::forward<EndTimeBeforeT>(value); }
113 template<typename EndTimeBeforeT = Aws::Utils::DateTime>
114 SearchTrainingPlanOfferingsRequest& WithEndTimeBefore(EndTimeBeforeT&& value) { SetEndTimeBefore(std::forward<EndTimeBeforeT>(value)); return *this;}
116
118
121 inline long long GetDurationHours() const { return m_durationHours; }
122 inline bool DurationHoursHasBeenSet() const { return m_durationHoursHasBeenSet; }
123 inline void SetDurationHours(long long value) { m_durationHoursHasBeenSet = true; m_durationHours = value; }
124 inline SearchTrainingPlanOfferingsRequest& WithDurationHours(long long value) { SetDurationHours(value); return *this;}
126
128
136 inline const Aws::Vector<SageMakerResourceName>& GetTargetResources() const { return m_targetResources; }
137 inline bool TargetResourcesHasBeenSet() const { return m_targetResourcesHasBeenSet; }
138 template<typename TargetResourcesT = Aws::Vector<SageMakerResourceName>>
139 void SetTargetResources(TargetResourcesT&& value) { m_targetResourcesHasBeenSet = true; m_targetResources = std::forward<TargetResourcesT>(value); }
140 template<typename TargetResourcesT = Aws::Vector<SageMakerResourceName>>
141 SearchTrainingPlanOfferingsRequest& WithTargetResources(TargetResourcesT&& value) { SetTargetResources(std::forward<TargetResourcesT>(value)); return *this;}
142 inline SearchTrainingPlanOfferingsRequest& AddTargetResources(SageMakerResourceName value) { m_targetResourcesHasBeenSet = true; m_targetResources.push_back(value); return *this; }
144 private:
145
147 bool m_instanceTypeHasBeenSet = false;
148
149 int m_instanceCount{0};
150 bool m_instanceCountHasBeenSet = false;
151
152 Aws::String m_ultraServerType;
153 bool m_ultraServerTypeHasBeenSet = false;
154
155 int m_ultraServerCount{0};
156 bool m_ultraServerCountHasBeenSet = false;
157
158 Aws::Utils::DateTime m_startTimeAfter{};
159 bool m_startTimeAfterHasBeenSet = false;
160
161 Aws::Utils::DateTime m_endTimeBefore{};
162 bool m_endTimeBeforeHasBeenSet = false;
163
164 long long m_durationHours{0};
165 bool m_durationHoursHasBeenSet = false;
166
167 Aws::Vector<SageMakerResourceName> m_targetResources;
168 bool m_targetResourcesHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace SageMaker
173} // namespace Aws
AWS_SAGEMAKER_API SearchTrainingPlanOfferingsRequest()=default
SearchTrainingPlanOfferingsRequest & WithUltraServerCount(int 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