AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListTrainingPlansRequest.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/sagemaker/model/TrainingPlanSortBy.h>
12#include <aws/sagemaker/model/TrainingPlanSortOrder.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/sagemaker/model/TrainingPlanFilter.h>
15#include <utility>
16
17namespace Aws
18{
19namespace SageMaker
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_SAGEMAKER_API ListTrainingPlansRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "ListTrainingPlans"; }
36
37 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
38
40
41
43
46 inline const Aws::String& GetNextToken() const { return m_nextToken; }
47 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
48 template<typename NextTokenT = Aws::String>
49 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
50 template<typename NextTokenT = Aws::String>
51 ListTrainingPlansRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
53
55
58 inline int GetMaxResults() const { return m_maxResults; }
59 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
60 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
61 inline ListTrainingPlansRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
63
65
69 inline const Aws::Utils::DateTime& GetStartTimeAfter() const { return m_startTimeAfter; }
70 inline bool StartTimeAfterHasBeenSet() const { return m_startTimeAfterHasBeenSet; }
71 template<typename StartTimeAfterT = Aws::Utils::DateTime>
72 void SetStartTimeAfter(StartTimeAfterT&& value) { m_startTimeAfterHasBeenSet = true; m_startTimeAfter = std::forward<StartTimeAfterT>(value); }
73 template<typename StartTimeAfterT = Aws::Utils::DateTime>
74 ListTrainingPlansRequest& WithStartTimeAfter(StartTimeAfterT&& value) { SetStartTimeAfter(std::forward<StartTimeAfterT>(value)); return *this;}
76
78
82 inline const Aws::Utils::DateTime& GetStartTimeBefore() const { return m_startTimeBefore; }
83 inline bool StartTimeBeforeHasBeenSet() const { return m_startTimeBeforeHasBeenSet; }
84 template<typename StartTimeBeforeT = Aws::Utils::DateTime>
85 void SetStartTimeBefore(StartTimeBeforeT&& value) { m_startTimeBeforeHasBeenSet = true; m_startTimeBefore = std::forward<StartTimeBeforeT>(value); }
86 template<typename StartTimeBeforeT = Aws::Utils::DateTime>
87 ListTrainingPlansRequest& WithStartTimeBefore(StartTimeBeforeT&& value) { SetStartTimeBefore(std::forward<StartTimeBeforeT>(value)); return *this;}
89
91
94 inline TrainingPlanSortBy GetSortBy() const { return m_sortBy; }
95 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
96 inline void SetSortBy(TrainingPlanSortBy value) { m_sortByHasBeenSet = true; m_sortBy = value; }
97 inline ListTrainingPlansRequest& WithSortBy(TrainingPlanSortBy value) { SetSortBy(value); return *this;}
99
101
104 inline TrainingPlanSortOrder GetSortOrder() const { return m_sortOrder; }
105 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
106 inline void SetSortOrder(TrainingPlanSortOrder value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
109
111
114 inline const Aws::Vector<TrainingPlanFilter>& GetFilters() const { return m_filters; }
115 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
116 template<typename FiltersT = Aws::Vector<TrainingPlanFilter>>
117 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
118 template<typename FiltersT = Aws::Vector<TrainingPlanFilter>>
119 ListTrainingPlansRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
120 template<typename FiltersT = TrainingPlanFilter>
121 ListTrainingPlansRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
123 private:
124
125 Aws::String m_nextToken;
126 bool m_nextTokenHasBeenSet = false;
127
128 int m_maxResults{0};
129 bool m_maxResultsHasBeenSet = false;
130
131 Aws::Utils::DateTime m_startTimeAfter{};
132 bool m_startTimeAfterHasBeenSet = false;
133
134 Aws::Utils::DateTime m_startTimeBefore{};
135 bool m_startTimeBeforeHasBeenSet = false;
136
138 bool m_sortByHasBeenSet = false;
139
141 bool m_sortOrderHasBeenSet = false;
142
144 bool m_filtersHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace SageMaker
149} // namespace Aws
AWS_SAGEMAKER_API ListTrainingPlansRequest()=default
ListTrainingPlansRequest & WithStartTimeAfter(StartTimeAfterT &&value)
ListTrainingPlansRequest & WithSortOrder(TrainingPlanSortOrder value)
ListTrainingPlansRequest & WithMaxResults(int value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListTrainingPlansRequest & WithFilters(FiltersT &&value)
ListTrainingPlansRequest & WithStartTimeBefore(StartTimeBeforeT &&value)
ListTrainingPlansRequest & WithNextToken(NextTokenT &&value)
ListTrainingPlansRequest & AddFilters(FiltersT &&value)
const Aws::Utils::DateTime & GetStartTimeBefore() const
virtual const char * GetServiceRequestName() const override
const Aws::Vector< TrainingPlanFilter > & GetFilters() const
const Aws::Utils::DateTime & GetStartTimeAfter() const
ListTrainingPlansRequest & WithSortBy(TrainingPlanSortBy value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
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