AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const ModelSortKey& GetSortBy() const{ return m_sortBy; }
45 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
46 inline void SetSortBy(const ModelSortKey& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
47 inline void SetSortBy(ModelSortKey&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
48 inline ListModelsRequest& WithSortBy(const ModelSortKey& value) { SetSortBy(value); return *this;}
49 inline ListModelsRequest& WithSortBy(ModelSortKey&& value) { SetSortBy(std::move(value)); return *this;}
51
53
56 inline const OrderKey& GetSortOrder() const{ return m_sortOrder; }
57 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
58 inline void SetSortOrder(const OrderKey& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
59 inline void SetSortOrder(OrderKey&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
60 inline ListModelsRequest& WithSortOrder(const OrderKey& value) { SetSortOrder(value); return *this;}
61 inline ListModelsRequest& WithSortOrder(OrderKey&& value) { SetSortOrder(std::move(value)); return *this;}
63
65
70 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
71 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
72 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
73 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
74 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
75 inline ListModelsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
76 inline ListModelsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
77 inline ListModelsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
79
81
84 inline int GetMaxResults() const{ return m_maxResults; }
85 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
86 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
87 inline ListModelsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
89
91
95 inline const Aws::String& GetNameContains() const{ return m_nameContains; }
96 inline bool NameContainsHasBeenSet() const { return m_nameContainsHasBeenSet; }
97 inline void SetNameContains(const Aws::String& value) { m_nameContainsHasBeenSet = true; m_nameContains = value; }
98 inline void SetNameContains(Aws::String&& value) { m_nameContainsHasBeenSet = true; m_nameContains = std::move(value); }
99 inline void SetNameContains(const char* value) { m_nameContainsHasBeenSet = true; m_nameContains.assign(value); }
100 inline ListModelsRequest& WithNameContains(const Aws::String& value) { SetNameContains(value); return *this;}
101 inline ListModelsRequest& WithNameContains(Aws::String&& value) { SetNameContains(std::move(value)); return *this;}
102 inline ListModelsRequest& WithNameContains(const char* value) { SetNameContains(value); return *this;}
104
106
110 inline const Aws::Utils::DateTime& GetCreationTimeBefore() const{ return m_creationTimeBefore; }
111 inline bool CreationTimeBeforeHasBeenSet() const { return m_creationTimeBeforeHasBeenSet; }
112 inline void SetCreationTimeBefore(const Aws::Utils::DateTime& value) { m_creationTimeBeforeHasBeenSet = true; m_creationTimeBefore = value; }
113 inline void SetCreationTimeBefore(Aws::Utils::DateTime&& value) { m_creationTimeBeforeHasBeenSet = true; m_creationTimeBefore = std::move(value); }
115 inline ListModelsRequest& WithCreationTimeBefore(Aws::Utils::DateTime&& value) { SetCreationTimeBefore(std::move(value)); return *this;}
117
119
123 inline const Aws::Utils::DateTime& GetCreationTimeAfter() const{ return m_creationTimeAfter; }
124 inline bool CreationTimeAfterHasBeenSet() const { return m_creationTimeAfterHasBeenSet; }
125 inline void SetCreationTimeAfter(const Aws::Utils::DateTime& value) { m_creationTimeAfterHasBeenSet = true; m_creationTimeAfter = value; }
126 inline void SetCreationTimeAfter(Aws::Utils::DateTime&& value) { m_creationTimeAfterHasBeenSet = true; m_creationTimeAfter = std::move(value); }
128 inline ListModelsRequest& WithCreationTimeAfter(Aws::Utils::DateTime&& value) { SetCreationTimeAfter(std::move(value)); return *this;}
130 private:
131
132 ModelSortKey m_sortBy;
133 bool m_sortByHasBeenSet = false;
134
135 OrderKey m_sortOrder;
136 bool m_sortOrderHasBeenSet = false;
137
138 Aws::String m_nextToken;
139 bool m_nextTokenHasBeenSet = false;
140
141 int m_maxResults;
142 bool m_maxResultsHasBeenSet = false;
143
144 Aws::String m_nameContains;
145 bool m_nameContainsHasBeenSet = false;
146
147 Aws::Utils::DateTime m_creationTimeBefore;
148 bool m_creationTimeBeforeHasBeenSet = false;
149
150 Aws::Utils::DateTime m_creationTimeAfter;
151 bool m_creationTimeAfterHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace SageMaker
156} // namespace Aws
ListModelsRequest & WithNextToken(const char *value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
ListModelsRequest & WithCreationTimeBefore(const Aws::Utils::DateTime &value)
void SetNextToken(const Aws::String &value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListModelsRequest & WithCreationTimeAfter(const Aws::Utils::DateTime &value)
ListModelsRequest & WithNameContains(const Aws::String &value)
ListModelsRequest & WithSortOrder(OrderKey &&value)
ListModelsRequest & WithNameContains(Aws::String &&value)
const Aws::Utils::DateTime & GetCreationTimeAfter() const
virtual const char * GetServiceRequestName() const override
ListModelsRequest & WithSortOrder(const OrderKey &value)
void SetCreationTimeAfter(Aws::Utils::DateTime &&value)
void SetSortBy(const ModelSortKey &value)
ListModelsRequest & WithNameContains(const char *value)
void SetCreationTimeBefore(const Aws::Utils::DateTime &value)
ListModelsRequest & WithSortBy(ModelSortKey &&value)
const Aws::String & GetNextToken() const
const ModelSortKey & GetSortBy() const
ListModelsRequest & WithCreationTimeAfter(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetCreationTimeBefore() const
void SetNameContains(const Aws::String &value)
ListModelsRequest & WithCreationTimeBefore(Aws::Utils::DateTime &&value)
void SetCreationTimeBefore(Aws::Utils::DateTime &&value)
ListModelsRequest & WithNextToken(const Aws::String &value)
void SetSortOrder(const OrderKey &value)
ListModelsRequest & WithSortBy(const ModelSortKey &value)
ListModelsRequest & WithMaxResults(int value)
const Aws::String & GetNameContains() const
void SetCreationTimeAfter(const Aws::Utils::DateTime &value)
ListModelsRequest & WithNextToken(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String