AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCreationTimeAfter(const Aws::Utils::DateTime& value) { m_creationTimeAfterHasBeenSet = true; m_creationTimeAfter = value; }
50 inline void SetCreationTimeAfter(Aws::Utils::DateTime&& value) { m_creationTimeAfterHasBeenSet = true; m_creationTimeAfter = std::move(value); }
54
56
60 inline const Aws::Utils::DateTime& GetCreationTimeBefore() const{ return m_creationTimeBefore; }
61 inline bool CreationTimeBeforeHasBeenSet() const { return m_creationTimeBeforeHasBeenSet; }
62 inline void SetCreationTimeBefore(const Aws::Utils::DateTime& value) { m_creationTimeBeforeHasBeenSet = true; m_creationTimeBefore = value; }
63 inline void SetCreationTimeBefore(Aws::Utils::DateTime&& value) { m_creationTimeBeforeHasBeenSet = true; m_creationTimeBefore = std::move(value); }
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 inline void SetNameContains(const Aws::String& value) { m_nameContainsHasBeenSet = true; m_nameContains = value; }
86 inline void SetNameContains(Aws::String&& value) { m_nameContainsHasBeenSet = true; m_nameContains = std::move(value); }
87 inline void SetNameContains(const char* value) { m_nameContainsHasBeenSet = true; m_nameContains.assign(value); }
88 inline ListModelPackagesRequest& WithNameContains(const Aws::String& value) { SetNameContains(value); return *this;}
89 inline ListModelPackagesRequest& WithNameContains(Aws::String&& value) { SetNameContains(std::move(value)); return *this;}
90 inline ListModelPackagesRequest& WithNameContains(const char* value) { SetNameContains(value); return *this;}
92
94
98 inline const ModelApprovalStatus& GetModelApprovalStatus() const{ return m_modelApprovalStatus; }
99 inline bool ModelApprovalStatusHasBeenSet() const { return m_modelApprovalStatusHasBeenSet; }
100 inline void SetModelApprovalStatus(const ModelApprovalStatus& value) { m_modelApprovalStatusHasBeenSet = true; m_modelApprovalStatus = value; }
101 inline void SetModelApprovalStatus(ModelApprovalStatus&& value) { m_modelApprovalStatusHasBeenSet = true; m_modelApprovalStatus = std::move(value); }
105
107
111 inline const Aws::String& GetModelPackageGroupName() const{ return m_modelPackageGroupName; }
112 inline bool ModelPackageGroupNameHasBeenSet() const { return m_modelPackageGroupNameHasBeenSet; }
113 inline void SetModelPackageGroupName(const Aws::String& value) { m_modelPackageGroupNameHasBeenSet = true; m_modelPackageGroupName = value; }
114 inline void SetModelPackageGroupName(Aws::String&& value) { m_modelPackageGroupNameHasBeenSet = true; m_modelPackageGroupName = std::move(value); }
115 inline void SetModelPackageGroupName(const char* value) { m_modelPackageGroupNameHasBeenSet = true; m_modelPackageGroupName.assign(value); }
118 inline ListModelPackagesRequest& WithModelPackageGroupName(const char* value) { SetModelPackageGroupName(value); return *this;}
120
122
130 inline const ModelPackageType& GetModelPackageType() const{ return m_modelPackageType; }
131 inline bool ModelPackageTypeHasBeenSet() const { return m_modelPackageTypeHasBeenSet; }
132 inline void SetModelPackageType(const ModelPackageType& value) { m_modelPackageTypeHasBeenSet = true; m_modelPackageType = value; }
133 inline void SetModelPackageType(ModelPackageType&& value) { m_modelPackageTypeHasBeenSet = true; m_modelPackageType = std::move(value); }
135 inline ListModelPackagesRequest& WithModelPackageType(ModelPackageType&& value) { SetModelPackageType(std::move(value)); return *this;}
137
139
144 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
145 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
146 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
147 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
148 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
149 inline ListModelPackagesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
150 inline ListModelPackagesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
151 inline ListModelPackagesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
153
155
159 inline const ModelPackageSortBy& GetSortBy() const{ return m_sortBy; }
160 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
161 inline void SetSortBy(const ModelPackageSortBy& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
162 inline void SetSortBy(ModelPackageSortBy&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
163 inline ListModelPackagesRequest& WithSortBy(const ModelPackageSortBy& value) { SetSortBy(value); return *this;}
164 inline ListModelPackagesRequest& WithSortBy(ModelPackageSortBy&& value) { SetSortBy(std::move(value)); return *this;}
166
168
171 inline const SortOrder& GetSortOrder() const{ return m_sortOrder; }
172 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
173 inline void SetSortOrder(const SortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
174 inline void SetSortOrder(SortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
175 inline ListModelPackagesRequest& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;}
176 inline ListModelPackagesRequest& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;}
178 private:
179
180 Aws::Utils::DateTime m_creationTimeAfter;
181 bool m_creationTimeAfterHasBeenSet = false;
182
183 Aws::Utils::DateTime m_creationTimeBefore;
184 bool m_creationTimeBeforeHasBeenSet = false;
185
186 int m_maxResults;
187 bool m_maxResultsHasBeenSet = false;
188
189 Aws::String m_nameContains;
190 bool m_nameContainsHasBeenSet = false;
191
192 ModelApprovalStatus m_modelApprovalStatus;
193 bool m_modelApprovalStatusHasBeenSet = false;
194
195 Aws::String m_modelPackageGroupName;
196 bool m_modelPackageGroupNameHasBeenSet = false;
197
198 ModelPackageType m_modelPackageType;
199 bool m_modelPackageTypeHasBeenSet = false;
200
201 Aws::String m_nextToken;
202 bool m_nextTokenHasBeenSet = false;
203
204 ModelPackageSortBy m_sortBy;
205 bool m_sortByHasBeenSet = false;
206
207 SortOrder m_sortOrder;
208 bool m_sortOrderHasBeenSet = false;
209 };
210
211} // namespace Model
212} // namespace SageMaker
213} // namespace Aws
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetCreationTimeBefore(const Aws::Utils::DateTime &value)
void SetCreationTimeAfter(Aws::Utils::DateTime &&value)
ListModelPackagesRequest & WithNameContains(const char *value)
ListModelPackagesRequest & WithModelApprovalStatus(const ModelApprovalStatus &value)
ListModelPackagesRequest & WithSortBy(ModelPackageSortBy &&value)
void SetModelPackageType(const ModelPackageType &value)
void SetCreationTimeBefore(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetCreationTimeAfter() const
ListModelPackagesRequest & WithCreationTimeAfter(const Aws::Utils::DateTime &value)
ListModelPackagesRequest & WithModelPackageGroupName(const Aws::String &value)
ListModelPackagesRequest & WithSortBy(const ModelPackageSortBy &value)
virtual const char * GetServiceRequestName() const override
ListModelPackagesRequest & WithNextToken(Aws::String &&value)
ListModelPackagesRequest & WithCreationTimeAfter(Aws::Utils::DateTime &&value)
ListModelPackagesRequest & WithCreationTimeBefore(const Aws::Utils::DateTime &value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
ListModelPackagesRequest & WithModelPackageGroupName(Aws::String &&value)
ListModelPackagesRequest & WithModelPackageGroupName(const char *value)
void SetModelApprovalStatus(const ModelApprovalStatus &value)
ListModelPackagesRequest & WithModelPackageType(const ModelPackageType &value)
ListModelPackagesRequest & WithNameContains(const Aws::String &value)
const ModelApprovalStatus & GetModelApprovalStatus() const
ListModelPackagesRequest & WithMaxResults(int value)
ListModelPackagesRequest & WithNameContains(Aws::String &&value)
ListModelPackagesRequest & WithModelApprovalStatus(ModelApprovalStatus &&value)
ListModelPackagesRequest & WithNextToken(const char *value)
ListModelPackagesRequest & WithSortOrder(const SortOrder &value)
ListModelPackagesRequest & WithSortOrder(SortOrder &&value)
ListModelPackagesRequest & WithNextToken(const Aws::String &value)
const Aws::Utils::DateTime & GetCreationTimeBefore() const
void SetCreationTimeAfter(const Aws::Utils::DateTime &value)
ListModelPackagesRequest & WithCreationTimeBefore(Aws::Utils::DateTime &&value)
ListModelPackagesRequest & WithModelPackageType(ModelPackageType &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String