AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/sagemaker/model/SageMakerResourceName.h>
13#include <utility>
14
15namespace Aws
16{
17namespace SageMaker
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SAGEMAKER_API SearchTrainingPlanOfferingsRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "SearchTrainingPlanOfferings"; }
34
35 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
36
38
39
41
49 inline ReservedCapacityInstanceType GetInstanceType() const { return m_instanceType; }
50 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
51 inline void SetInstanceType(ReservedCapacityInstanceType value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
54
56
62 inline int GetInstanceCount() const { return m_instanceCount; }
63 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
64 inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
65 inline SearchTrainingPlanOfferingsRequest& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
67
69
73 inline const Aws::Utils::DateTime& GetStartTimeAfter() const { return m_startTimeAfter; }
74 inline bool StartTimeAfterHasBeenSet() const { return m_startTimeAfterHasBeenSet; }
75 template<typename StartTimeAfterT = Aws::Utils::DateTime>
76 void SetStartTimeAfter(StartTimeAfterT&& value) { m_startTimeAfterHasBeenSet = true; m_startTimeAfter = std::forward<StartTimeAfterT>(value); }
77 template<typename StartTimeAfterT = Aws::Utils::DateTime>
78 SearchTrainingPlanOfferingsRequest& WithStartTimeAfter(StartTimeAfterT&& value) { SetStartTimeAfter(std::forward<StartTimeAfterT>(value)); return *this;}
80
82
86 inline const Aws::Utils::DateTime& GetEndTimeBefore() const { return m_endTimeBefore; }
87 inline bool EndTimeBeforeHasBeenSet() const { return m_endTimeBeforeHasBeenSet; }
88 template<typename EndTimeBeforeT = Aws::Utils::DateTime>
89 void SetEndTimeBefore(EndTimeBeforeT&& value) { m_endTimeBeforeHasBeenSet = true; m_endTimeBefore = std::forward<EndTimeBeforeT>(value); }
90 template<typename EndTimeBeforeT = Aws::Utils::DateTime>
91 SearchTrainingPlanOfferingsRequest& WithEndTimeBefore(EndTimeBeforeT&& value) { SetEndTimeBefore(std::forward<EndTimeBeforeT>(value)); return *this;}
93
95
98 inline long long GetDurationHours() const { return m_durationHours; }
99 inline bool DurationHoursHasBeenSet() const { return m_durationHoursHasBeenSet; }
100 inline void SetDurationHours(long long value) { m_durationHoursHasBeenSet = true; m_durationHours = value; }
101 inline SearchTrainingPlanOfferingsRequest& WithDurationHours(long long value) { SetDurationHours(value); return *this;}
103
105
113 inline const Aws::Vector<SageMakerResourceName>& GetTargetResources() const { return m_targetResources; }
114 inline bool TargetResourcesHasBeenSet() const { return m_targetResourcesHasBeenSet; }
115 template<typename TargetResourcesT = Aws::Vector<SageMakerResourceName>>
116 void SetTargetResources(TargetResourcesT&& value) { m_targetResourcesHasBeenSet = true; m_targetResources = std::forward<TargetResourcesT>(value); }
117 template<typename TargetResourcesT = Aws::Vector<SageMakerResourceName>>
118 SearchTrainingPlanOfferingsRequest& WithTargetResources(TargetResourcesT&& value) { SetTargetResources(std::forward<TargetResourcesT>(value)); return *this;}
119 inline SearchTrainingPlanOfferingsRequest& AddTargetResources(SageMakerResourceName value) { m_targetResourcesHasBeenSet = true; m_targetResources.push_back(value); return *this; }
121 private:
122
124 bool m_instanceTypeHasBeenSet = false;
125
126 int m_instanceCount{0};
127 bool m_instanceCountHasBeenSet = false;
128
129 Aws::Utils::DateTime m_startTimeAfter{};
130 bool m_startTimeAfterHasBeenSet = false;
131
132 Aws::Utils::DateTime m_endTimeBefore{};
133 bool m_endTimeBeforeHasBeenSet = false;
134
135 long long m_durationHours{0};
136 bool m_durationHoursHasBeenSet = false;
137
138 Aws::Vector<SageMakerResourceName> m_targetResources;
139 bool m_targetResourcesHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace SageMaker
144} // namespace Aws
AWS_SAGEMAKER_API SearchTrainingPlanOfferingsRequest()=default
SearchTrainingPlanOfferingsRequest & WithEndTimeBefore(EndTimeBeforeT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
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