AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListModelPackagesRequest.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/sagemaker/model/ModelApprovalStatus.h>
12#include <aws/sagemaker/model/ModelPackageType.h>
13#include <aws/sagemaker/model/ModelPackageSortBy.h>
14#include <aws/sagemaker/model/SortOrder.h>
15#include <utility>
16
17namespace Aws
18{
19namespace SageMaker
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_SAGEMAKER_API ListModelPackagesRequest() = 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 "ListModelPackages"; }
36
37 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
38
40
41
43
47 inline const Aws::Utils::DateTime& GetCreationTimeAfter() const { return m_creationTimeAfter; }
48 inline bool CreationTimeAfterHasBeenSet() const { return m_creationTimeAfterHasBeenSet; }
49 template<typename CreationTimeAfterT = Aws::Utils::DateTime>
50 void SetCreationTimeAfter(CreationTimeAfterT&& value) { m_creationTimeAfterHasBeenSet = true; m_creationTimeAfter = std::forward<CreationTimeAfterT>(value); }
51 template<typename CreationTimeAfterT = Aws::Utils::DateTime>
52 ListModelPackagesRequest& WithCreationTimeAfter(CreationTimeAfterT&& value) { SetCreationTimeAfter(std::forward<CreationTimeAfterT>(value)); return *this;}
54
56
60 inline const Aws::Utils::DateTime& GetCreationTimeBefore() const { return m_creationTimeBefore; }
61 inline bool CreationTimeBeforeHasBeenSet() const { return m_creationTimeBeforeHasBeenSet; }
62 template<typename CreationTimeBeforeT = Aws::Utils::DateTime>
63 void SetCreationTimeBefore(CreationTimeBeforeT&& value) { m_creationTimeBeforeHasBeenSet = true; m_creationTimeBefore = std::forward<CreationTimeBeforeT>(value); }
64 template<typename CreationTimeBeforeT = Aws::Utils::DateTime>
65 ListModelPackagesRequest& WithCreationTimeBefore(CreationTimeBeforeT&& value) { SetCreationTimeBefore(std::forward<CreationTimeBeforeT>(value)); return *this;}
67
69
72 inline int GetMaxResults() const { return m_maxResults; }
73 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
74 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
75 inline ListModelPackagesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
77
79
83 inline const Aws::String& GetNameContains() const { return m_nameContains; }
84 inline bool NameContainsHasBeenSet() const { return m_nameContainsHasBeenSet; }
85 template<typename NameContainsT = Aws::String>
86 void SetNameContains(NameContainsT&& value) { m_nameContainsHasBeenSet = true; m_nameContains = std::forward<NameContainsT>(value); }
87 template<typename NameContainsT = Aws::String>
88 ListModelPackagesRequest& WithNameContains(NameContainsT&& value) { SetNameContains(std::forward<NameContainsT>(value)); return *this;}
90
92
96 inline ModelApprovalStatus GetModelApprovalStatus() const { return m_modelApprovalStatus; }
97 inline bool ModelApprovalStatusHasBeenSet() const { return m_modelApprovalStatusHasBeenSet; }
98 inline void SetModelApprovalStatus(ModelApprovalStatus value) { m_modelApprovalStatusHasBeenSet = true; m_modelApprovalStatus = value; }
101
103
107 inline const Aws::String& GetModelPackageGroupName() const { return m_modelPackageGroupName; }
108 inline bool ModelPackageGroupNameHasBeenSet() const { return m_modelPackageGroupNameHasBeenSet; }
109 template<typename ModelPackageGroupNameT = Aws::String>
110 void SetModelPackageGroupName(ModelPackageGroupNameT&& value) { m_modelPackageGroupNameHasBeenSet = true; m_modelPackageGroupName = std::forward<ModelPackageGroupNameT>(value); }
111 template<typename ModelPackageGroupNameT = Aws::String>
112 ListModelPackagesRequest& WithModelPackageGroupName(ModelPackageGroupNameT&& value) { SetModelPackageGroupName(std::forward<ModelPackageGroupNameT>(value)); return *this;}
114
116
124 inline ModelPackageType GetModelPackageType() const { return m_modelPackageType; }
125 inline bool ModelPackageTypeHasBeenSet() const { return m_modelPackageTypeHasBeenSet; }
126 inline void SetModelPackageType(ModelPackageType value) { m_modelPackageTypeHasBeenSet = true; m_modelPackageType = value; }
129
131
136 inline const Aws::String& GetNextToken() const { return m_nextToken; }
137 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
138 template<typename NextTokenT = Aws::String>
139 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
140 template<typename NextTokenT = Aws::String>
141 ListModelPackagesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
143
145
149 inline ModelPackageSortBy GetSortBy() const { return m_sortBy; }
150 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
151 inline void SetSortBy(ModelPackageSortBy value) { m_sortByHasBeenSet = true; m_sortBy = value; }
152 inline ListModelPackagesRequest& WithSortBy(ModelPackageSortBy value) { SetSortBy(value); return *this;}
154
156
159 inline SortOrder GetSortOrder() const { return m_sortOrder; }
160 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
161 inline void SetSortOrder(SortOrder value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
162 inline ListModelPackagesRequest& WithSortOrder(SortOrder value) { SetSortOrder(value); return *this;}
164 private:
165
166 Aws::Utils::DateTime m_creationTimeAfter{};
167 bool m_creationTimeAfterHasBeenSet = false;
168
169 Aws::Utils::DateTime m_creationTimeBefore{};
170 bool m_creationTimeBeforeHasBeenSet = false;
171
172 int m_maxResults{0};
173 bool m_maxResultsHasBeenSet = false;
174
175 Aws::String m_nameContains;
176 bool m_nameContainsHasBeenSet = false;
177
179 bool m_modelApprovalStatusHasBeenSet = false;
180
181 Aws::String m_modelPackageGroupName;
182 bool m_modelPackageGroupNameHasBeenSet = false;
183
185 bool m_modelPackageTypeHasBeenSet = false;
186
187 Aws::String m_nextToken;
188 bool m_nextTokenHasBeenSet = false;
189
191 bool m_sortByHasBeenSet = false;
192
193 SortOrder m_sortOrder{SortOrder::NOT_SET};
194 bool m_sortOrderHasBeenSet = false;
195 };
196
197} // namespace Model
198} // namespace SageMaker
199} // namespace Aws
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListModelPackagesRequest & WithSortBy(ModelPackageSortBy value)
const Aws::Utils::DateTime & GetCreationTimeAfter() const
ListModelPackagesRequest & WithCreationTimeAfter(CreationTimeAfterT &&value)
ListModelPackagesRequest & WithModelPackageGroupName(ModelPackageGroupNameT &&value)
ListModelPackagesRequest & WithCreationTimeBefore(CreationTimeBeforeT &&value)
ListModelPackagesRequest & WithModelPackageType(ModelPackageType value)
ListModelPackagesRequest & WithNextToken(NextTokenT &&value)
ListModelPackagesRequest & WithNameContains(NameContainsT &&value)
void SetModelPackageGroupName(ModelPackageGroupNameT &&value)
virtual const char * GetServiceRequestName() const override
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
ListModelPackagesRequest & WithSortOrder(SortOrder value)
void SetCreationTimeBefore(CreationTimeBeforeT &&value)
AWS_SAGEMAKER_API ListModelPackagesRequest()=default
ListModelPackagesRequest & WithModelApprovalStatus(ModelApprovalStatus value)
ListModelPackagesRequest & WithMaxResults(int value)
const Aws::Utils::DateTime & GetCreationTimeBefore() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String