AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ListModelsRequest.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/sagemaker/model/ModelSortKey.h>
10#include <aws/sagemaker/model/OrderKey.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/DateTime.h>
13#include <utility>
14
15namespace Aws
16{
17namespace SageMaker
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SAGEMAKER_API ListModelsRequest() = 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 "ListModels"; }
34
35 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline ModelSortKey GetSortBy() const { return m_sortBy; }
45 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
46 inline void SetSortBy(ModelSortKey value) { m_sortByHasBeenSet = true; m_sortBy = value; }
47 inline ListModelsRequest& WithSortBy(ModelSortKey value) { SetSortBy(value); return *this;}
49
51
54 inline OrderKey GetSortOrder() const { return m_sortOrder; }
55 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
56 inline void SetSortOrder(OrderKey value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
57 inline ListModelsRequest& WithSortOrder(OrderKey value) { SetSortOrder(value); return *this;}
59
61
66 inline const Aws::String& GetNextToken() const { return m_nextToken; }
67 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
68 template<typename NextTokenT = Aws::String>
69 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
70 template<typename NextTokenT = Aws::String>
71 ListModelsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
73
75
78 inline int GetMaxResults() const { return m_maxResults; }
79 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
80 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
81 inline ListModelsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
83
85
89 inline const Aws::String& GetNameContains() const { return m_nameContains; }
90 inline bool NameContainsHasBeenSet() const { return m_nameContainsHasBeenSet; }
91 template<typename NameContainsT = Aws::String>
92 void SetNameContains(NameContainsT&& value) { m_nameContainsHasBeenSet = true; m_nameContains = std::forward<NameContainsT>(value); }
93 template<typename NameContainsT = Aws::String>
94 ListModelsRequest& WithNameContains(NameContainsT&& value) { SetNameContains(std::forward<NameContainsT>(value)); return *this;}
96
98
102 inline const Aws::Utils::DateTime& GetCreationTimeBefore() const { return m_creationTimeBefore; }
103 inline bool CreationTimeBeforeHasBeenSet() const { return m_creationTimeBeforeHasBeenSet; }
104 template<typename CreationTimeBeforeT = Aws::Utils::DateTime>
105 void SetCreationTimeBefore(CreationTimeBeforeT&& value) { m_creationTimeBeforeHasBeenSet = true; m_creationTimeBefore = std::forward<CreationTimeBeforeT>(value); }
106 template<typename CreationTimeBeforeT = Aws::Utils::DateTime>
107 ListModelsRequest& WithCreationTimeBefore(CreationTimeBeforeT&& value) { SetCreationTimeBefore(std::forward<CreationTimeBeforeT>(value)); return *this;}
109
111
115 inline const Aws::Utils::DateTime& GetCreationTimeAfter() const { return m_creationTimeAfter; }
116 inline bool CreationTimeAfterHasBeenSet() const { return m_creationTimeAfterHasBeenSet; }
117 template<typename CreationTimeAfterT = Aws::Utils::DateTime>
118 void SetCreationTimeAfter(CreationTimeAfterT&& value) { m_creationTimeAfterHasBeenSet = true; m_creationTimeAfter = std::forward<CreationTimeAfterT>(value); }
119 template<typename CreationTimeAfterT = Aws::Utils::DateTime>
120 ListModelsRequest& WithCreationTimeAfter(CreationTimeAfterT&& value) { SetCreationTimeAfter(std::forward<CreationTimeAfterT>(value)); return *this;}
122 private:
123
125 bool m_sortByHasBeenSet = false;
126
127 OrderKey m_sortOrder{OrderKey::NOT_SET};
128 bool m_sortOrderHasBeenSet = false;
129
130 Aws::String m_nextToken;
131 bool m_nextTokenHasBeenSet = false;
132
133 int m_maxResults{0};
134 bool m_maxResultsHasBeenSet = false;
135
136 Aws::String m_nameContains;
137 bool m_nameContainsHasBeenSet = false;
138
139 Aws::Utils::DateTime m_creationTimeBefore{};
140 bool m_creationTimeBeforeHasBeenSet = false;
141
142 Aws::Utils::DateTime m_creationTimeAfter{};
143 bool m_creationTimeAfterHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace SageMaker
148} // namespace Aws
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
void SetCreationTimeBefore(CreationTimeBeforeT &&value)
ListModelsRequest & WithCreationTimeAfter(CreationTimeAfterT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListModelsRequest & WithNameContains(NameContainsT &&value)
ListModelsRequest & WithSortBy(ModelSortKey value)
ListModelsRequest & WithNextToken(NextTokenT &&value)
const Aws::Utils::DateTime & GetCreationTimeAfter() const
virtual const char * GetServiceRequestName() const override
void SetNameContains(NameContainsT &&value)
AWS_SAGEMAKER_API ListModelsRequest()=default
const Aws::String & GetNextToken() const
const Aws::Utils::DateTime & GetCreationTimeBefore() const
ListModelsRequest & WithCreationTimeBefore(CreationTimeBeforeT &&value)
ListModelsRequest & WithMaxResults(int value)
void SetCreationTimeAfter(CreationTimeAfterT &&value)
const Aws::String & GetNameContains() const
ListModelsRequest & WithSortOrder(OrderKey value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String