AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListAlgorithmsRequest.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/AlgorithmSortBy.h>
12#include <aws/sagemaker/model/SortOrder.h>
13#include <utility>
14
15namespace Aws
16{
17namespace SageMaker
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SAGEMAKER_API ListAlgorithmsRequest() = 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 "ListAlgorithms"; }
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 ListAlgorithmsRequest& 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 ListAlgorithmsRequest& WithCreationTimeBefore(CreationTimeBeforeT&& value) { SetCreationTimeBefore(std::forward<CreationTimeBeforeT>(value)); return *this;}
65
67
70 inline int GetMaxResults() const { return m_maxResults; }
71 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
72 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
73 inline ListAlgorithmsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
75
77
81 inline const Aws::String& GetNameContains() const { return m_nameContains; }
82 inline bool NameContainsHasBeenSet() const { return m_nameContainsHasBeenSet; }
83 template<typename NameContainsT = Aws::String>
84 void SetNameContains(NameContainsT&& value) { m_nameContainsHasBeenSet = true; m_nameContains = std::forward<NameContainsT>(value); }
85 template<typename NameContainsT = Aws::String>
86 ListAlgorithmsRequest& WithNameContains(NameContainsT&& value) { SetNameContains(std::forward<NameContainsT>(value)); return *this;}
88
90
95 inline const Aws::String& GetNextToken() const { return m_nextToken; }
96 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
97 template<typename NextTokenT = Aws::String>
98 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
99 template<typename NextTokenT = Aws::String>
100 ListAlgorithmsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
102
104
108 inline AlgorithmSortBy GetSortBy() const { return m_sortBy; }
109 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
110 inline void SetSortBy(AlgorithmSortBy value) { m_sortByHasBeenSet = true; m_sortBy = value; }
111 inline ListAlgorithmsRequest& WithSortBy(AlgorithmSortBy value) { SetSortBy(value); return *this;}
113
115
118 inline SortOrder GetSortOrder() const { return m_sortOrder; }
119 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
120 inline void SetSortOrder(SortOrder value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
121 inline ListAlgorithmsRequest& WithSortOrder(SortOrder value) { SetSortOrder(value); return *this;}
123 private:
124
125 Aws::Utils::DateTime m_creationTimeAfter{};
126 bool m_creationTimeAfterHasBeenSet = false;
127
128 Aws::Utils::DateTime m_creationTimeBefore{};
129 bool m_creationTimeBeforeHasBeenSet = false;
130
131 int m_maxResults{0};
132 bool m_maxResultsHasBeenSet = false;
133
134 Aws::String m_nameContains;
135 bool m_nameContainsHasBeenSet = false;
136
137 Aws::String m_nextToken;
138 bool m_nextTokenHasBeenSet = false;
139
141 bool m_sortByHasBeenSet = false;
142
143 SortOrder m_sortOrder{SortOrder::NOT_SET};
144 bool m_sortOrderHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace SageMaker
149} // namespace Aws
AWS_SAGEMAKER_API ListAlgorithmsRequest()=default
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetCreationTimeAfter(CreationTimeAfterT &&value)
const Aws::Utils::DateTime & GetCreationTimeAfter() const
ListAlgorithmsRequest & WithSortOrder(SortOrder value)
ListAlgorithmsRequest & WithNextToken(NextTokenT &&value)
const Aws::Utils::DateTime & GetCreationTimeBefore() const
void SetCreationTimeBefore(CreationTimeBeforeT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
ListAlgorithmsRequest & WithCreationTimeBefore(CreationTimeBeforeT &&value)
ListAlgorithmsRequest & WithMaxResults(int value)
virtual const char * GetServiceRequestName() const override
ListAlgorithmsRequest & WithCreationTimeAfter(CreationTimeAfterT &&value)
ListAlgorithmsRequest & WithSortBy(AlgorithmSortBy value)
ListAlgorithmsRequest & WithNameContains(NameContainsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String