AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ListImageVersionsRequest.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/ImageVersionSortBy.h>
12#include <aws/sagemaker/model/ImageVersionSortOrder.h>
13#include <utility>
14
15namespace Aws
16{
17namespace SageMaker
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SAGEMAKER_API ListImageVersionsRequest() = 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 "ListImageVersions"; }
34
35 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
36
38
39
41
45 inline const Aws::Utils::DateTime& GetCreationTimeAfter() const { return m_creationTimeAfter; }
46 inline bool CreationTimeAfterHasBeenSet() const { return m_creationTimeAfterHasBeenSet; }
47 template<typename CreationTimeAfterT = Aws::Utils::DateTime>
48 void SetCreationTimeAfter(CreationTimeAfterT&& value) { m_creationTimeAfterHasBeenSet = true; m_creationTimeAfter = std::forward<CreationTimeAfterT>(value); }
49 template<typename CreationTimeAfterT = Aws::Utils::DateTime>
50 ListImageVersionsRequest& WithCreationTimeAfter(CreationTimeAfterT&& value) { SetCreationTimeAfter(std::forward<CreationTimeAfterT>(value)); return *this;}
52
54
58 inline const Aws::Utils::DateTime& GetCreationTimeBefore() const { return m_creationTimeBefore; }
59 inline bool CreationTimeBeforeHasBeenSet() const { return m_creationTimeBeforeHasBeenSet; }
60 template<typename CreationTimeBeforeT = Aws::Utils::DateTime>
61 void SetCreationTimeBefore(CreationTimeBeforeT&& value) { m_creationTimeBeforeHasBeenSet = true; m_creationTimeBefore = std::forward<CreationTimeBeforeT>(value); }
62 template<typename CreationTimeBeforeT = Aws::Utils::DateTime>
63 ListImageVersionsRequest& WithCreationTimeBefore(CreationTimeBeforeT&& value) { SetCreationTimeBefore(std::forward<CreationTimeBeforeT>(value)); return *this;}
65
67
70 inline const Aws::String& GetImageName() const { return m_imageName; }
71 inline bool ImageNameHasBeenSet() const { return m_imageNameHasBeenSet; }
72 template<typename ImageNameT = Aws::String>
73 void SetImageName(ImageNameT&& value) { m_imageNameHasBeenSet = true; m_imageName = std::forward<ImageNameT>(value); }
74 template<typename ImageNameT = Aws::String>
75 ListImageVersionsRequest& WithImageName(ImageNameT&& value) { SetImageName(std::forward<ImageNameT>(value)); return *this;}
77
79
83 inline const Aws::Utils::DateTime& GetLastModifiedTimeAfter() const { return m_lastModifiedTimeAfter; }
84 inline bool LastModifiedTimeAfterHasBeenSet() const { return m_lastModifiedTimeAfterHasBeenSet; }
85 template<typename LastModifiedTimeAfterT = Aws::Utils::DateTime>
86 void SetLastModifiedTimeAfter(LastModifiedTimeAfterT&& value) { m_lastModifiedTimeAfterHasBeenSet = true; m_lastModifiedTimeAfter = std::forward<LastModifiedTimeAfterT>(value); }
87 template<typename LastModifiedTimeAfterT = Aws::Utils::DateTime>
88 ListImageVersionsRequest& WithLastModifiedTimeAfter(LastModifiedTimeAfterT&& value) { SetLastModifiedTimeAfter(std::forward<LastModifiedTimeAfterT>(value)); return *this;}
90
92
96 inline const Aws::Utils::DateTime& GetLastModifiedTimeBefore() const { return m_lastModifiedTimeBefore; }
97 inline bool LastModifiedTimeBeforeHasBeenSet() const { return m_lastModifiedTimeBeforeHasBeenSet; }
98 template<typename LastModifiedTimeBeforeT = Aws::Utils::DateTime>
99 void SetLastModifiedTimeBefore(LastModifiedTimeBeforeT&& value) { m_lastModifiedTimeBeforeHasBeenSet = true; m_lastModifiedTimeBefore = std::forward<LastModifiedTimeBeforeT>(value); }
100 template<typename LastModifiedTimeBeforeT = Aws::Utils::DateTime>
101 ListImageVersionsRequest& WithLastModifiedTimeBefore(LastModifiedTimeBeforeT&& value) { SetLastModifiedTimeBefore(std::forward<LastModifiedTimeBeforeT>(value)); return *this;}
103
105
109 inline int GetMaxResults() const { return m_maxResults; }
110 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
111 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
112 inline ListImageVersionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
114
116
121 inline const Aws::String& GetNextToken() const { return m_nextToken; }
122 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
123 template<typename NextTokenT = Aws::String>
124 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
125 template<typename NextTokenT = Aws::String>
126 ListImageVersionsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
128
130
134 inline ImageVersionSortBy GetSortBy() const { return m_sortBy; }
135 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
136 inline void SetSortBy(ImageVersionSortBy value) { m_sortByHasBeenSet = true; m_sortBy = value; }
137 inline ListImageVersionsRequest& WithSortBy(ImageVersionSortBy value) { SetSortBy(value); return *this;}
139
141
144 inline ImageVersionSortOrder GetSortOrder() const { return m_sortOrder; }
145 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
146 inline void SetSortOrder(ImageVersionSortOrder value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
149 private:
150
151 Aws::Utils::DateTime m_creationTimeAfter{};
152 bool m_creationTimeAfterHasBeenSet = false;
153
154 Aws::Utils::DateTime m_creationTimeBefore{};
155 bool m_creationTimeBeforeHasBeenSet = false;
156
157 Aws::String m_imageName;
158 bool m_imageNameHasBeenSet = false;
159
160 Aws::Utils::DateTime m_lastModifiedTimeAfter{};
161 bool m_lastModifiedTimeAfterHasBeenSet = false;
162
163 Aws::Utils::DateTime m_lastModifiedTimeBefore{};
164 bool m_lastModifiedTimeBeforeHasBeenSet = false;
165
166 int m_maxResults{0};
167 bool m_maxResultsHasBeenSet = false;
168
169 Aws::String m_nextToken;
170 bool m_nextTokenHasBeenSet = false;
171
173 bool m_sortByHasBeenSet = false;
174
176 bool m_sortOrderHasBeenSet = false;
177 };
178
179} // namespace Model
180} // namespace SageMaker
181} // namespace Aws
void SetLastModifiedTimeBefore(LastModifiedTimeBeforeT &&value)
const Aws::Utils::DateTime & GetCreationTimeAfter() const
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
ListImageVersionsRequest & WithMaxResults(int value)
ListImageVersionsRequest & WithLastModifiedTimeAfter(LastModifiedTimeAfterT &&value)
ListImageVersionsRequest & WithImageName(ImageNameT &&value)
AWS_SAGEMAKER_API ListImageVersionsRequest()=default
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListImageVersionsRequest & WithCreationTimeAfter(CreationTimeAfterT &&value)
ListImageVersionsRequest & WithCreationTimeBefore(CreationTimeBeforeT &&value)
const Aws::Utils::DateTime & GetLastModifiedTimeBefore() const
ListImageVersionsRequest & WithLastModifiedTimeBefore(LastModifiedTimeBeforeT &&value)
ListImageVersionsRequest & WithNextToken(NextTokenT &&value)
void SetCreationTimeBefore(CreationTimeBeforeT &&value)
ListImageVersionsRequest & WithSortOrder(ImageVersionSortOrder value)
void SetLastModifiedTimeAfter(LastModifiedTimeAfterT &&value)
const Aws::Utils::DateTime & GetLastModifiedTimeAfter() const
ListImageVersionsRequest & WithSortBy(ImageVersionSortBy 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