AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListCustomModelsRequest.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/BedrockRequest.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/bedrock/model/SortModelsBy.h>
12#include <aws/bedrock/model/SortOrder.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Http
18{
19 class URI;
20} //namespace Http
21namespace Bedrock
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_BEDROCK_API ListCustomModelsRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "ListCustomModels"; }
38
39 AWS_BEDROCK_API Aws::String SerializePayload() const override;
40
41 AWS_BEDROCK_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42
43
45
48 inline const Aws::Utils::DateTime& GetCreationTimeBefore() const{ return m_creationTimeBefore; }
49 inline bool CreationTimeBeforeHasBeenSet() const { return m_creationTimeBeforeHasBeenSet; }
50 inline void SetCreationTimeBefore(const Aws::Utils::DateTime& value) { m_creationTimeBeforeHasBeenSet = true; m_creationTimeBefore = value; }
51 inline void SetCreationTimeBefore(Aws::Utils::DateTime&& value) { m_creationTimeBeforeHasBeenSet = true; m_creationTimeBefore = std::move(value); }
55
57
60 inline const Aws::Utils::DateTime& GetCreationTimeAfter() const{ return m_creationTimeAfter; }
61 inline bool CreationTimeAfterHasBeenSet() const { return m_creationTimeAfterHasBeenSet; }
62 inline void SetCreationTimeAfter(const Aws::Utils::DateTime& value) { m_creationTimeAfterHasBeenSet = true; m_creationTimeAfter = value; }
63 inline void SetCreationTimeAfter(Aws::Utils::DateTime&& value) { m_creationTimeAfterHasBeenSet = true; m_creationTimeAfter = std::move(value); }
67
69
72 inline const Aws::String& GetNameContains() const{ return m_nameContains; }
73 inline bool NameContainsHasBeenSet() const { return m_nameContainsHasBeenSet; }
74 inline void SetNameContains(const Aws::String& value) { m_nameContainsHasBeenSet = true; m_nameContains = value; }
75 inline void SetNameContains(Aws::String&& value) { m_nameContainsHasBeenSet = true; m_nameContains = std::move(value); }
76 inline void SetNameContains(const char* value) { m_nameContainsHasBeenSet = true; m_nameContains.assign(value); }
77 inline ListCustomModelsRequest& WithNameContains(const Aws::String& value) { SetNameContains(value); return *this;}
78 inline ListCustomModelsRequest& WithNameContains(Aws::String&& value) { SetNameContains(std::move(value)); return *this;}
79 inline ListCustomModelsRequest& WithNameContains(const char* value) { SetNameContains(value); return *this;}
81
83
87 inline const Aws::String& GetBaseModelArnEquals() const{ return m_baseModelArnEquals; }
88 inline bool BaseModelArnEqualsHasBeenSet() const { return m_baseModelArnEqualsHasBeenSet; }
89 inline void SetBaseModelArnEquals(const Aws::String& value) { m_baseModelArnEqualsHasBeenSet = true; m_baseModelArnEquals = value; }
90 inline void SetBaseModelArnEquals(Aws::String&& value) { m_baseModelArnEqualsHasBeenSet = true; m_baseModelArnEquals = std::move(value); }
91 inline void SetBaseModelArnEquals(const char* value) { m_baseModelArnEqualsHasBeenSet = true; m_baseModelArnEquals.assign(value); }
93 inline ListCustomModelsRequest& WithBaseModelArnEquals(Aws::String&& value) { SetBaseModelArnEquals(std::move(value)); return *this;}
94 inline ListCustomModelsRequest& WithBaseModelArnEquals(const char* value) { SetBaseModelArnEquals(value); return *this;}
96
98
102 inline const Aws::String& GetFoundationModelArnEquals() const{ return m_foundationModelArnEquals; }
103 inline bool FoundationModelArnEqualsHasBeenSet() const { return m_foundationModelArnEqualsHasBeenSet; }
104 inline void SetFoundationModelArnEquals(const Aws::String& value) { m_foundationModelArnEqualsHasBeenSet = true; m_foundationModelArnEquals = value; }
105 inline void SetFoundationModelArnEquals(Aws::String&& value) { m_foundationModelArnEqualsHasBeenSet = true; m_foundationModelArnEquals = std::move(value); }
106 inline void SetFoundationModelArnEquals(const char* value) { m_foundationModelArnEqualsHasBeenSet = true; m_foundationModelArnEquals.assign(value); }
109 inline ListCustomModelsRequest& WithFoundationModelArnEquals(const char* value) { SetFoundationModelArnEquals(value); return *this;}
111
113
119 inline int GetMaxResults() const{ return m_maxResults; }
120 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
121 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
122 inline ListCustomModelsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
124
126
132 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
133 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
134 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
135 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
136 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
137 inline ListCustomModelsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
138 inline ListCustomModelsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
139 inline ListCustomModelsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
141
143
146 inline const SortModelsBy& GetSortBy() const{ return m_sortBy; }
147 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
148 inline void SetSortBy(const SortModelsBy& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
149 inline void SetSortBy(SortModelsBy&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
150 inline ListCustomModelsRequest& WithSortBy(const SortModelsBy& value) { SetSortBy(value); return *this;}
151 inline ListCustomModelsRequest& WithSortBy(SortModelsBy&& value) { SetSortBy(std::move(value)); return *this;}
153
155
158 inline const SortOrder& GetSortOrder() const{ return m_sortOrder; }
159 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
160 inline void SetSortOrder(const SortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
161 inline void SetSortOrder(SortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
162 inline ListCustomModelsRequest& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;}
163 inline ListCustomModelsRequest& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;}
165
167
172 inline bool GetIsOwned() const{ return m_isOwned; }
173 inline bool IsOwnedHasBeenSet() const { return m_isOwnedHasBeenSet; }
174 inline void SetIsOwned(bool value) { m_isOwnedHasBeenSet = true; m_isOwned = value; }
175 inline ListCustomModelsRequest& WithIsOwned(bool value) { SetIsOwned(value); return *this;}
177 private:
178
179 Aws::Utils::DateTime m_creationTimeBefore;
180 bool m_creationTimeBeforeHasBeenSet = false;
181
182 Aws::Utils::DateTime m_creationTimeAfter;
183 bool m_creationTimeAfterHasBeenSet = false;
184
185 Aws::String m_nameContains;
186 bool m_nameContainsHasBeenSet = false;
187
188 Aws::String m_baseModelArnEquals;
189 bool m_baseModelArnEqualsHasBeenSet = false;
190
191 Aws::String m_foundationModelArnEquals;
192 bool m_foundationModelArnEqualsHasBeenSet = false;
193
194 int m_maxResults;
195 bool m_maxResultsHasBeenSet = false;
196
197 Aws::String m_nextToken;
198 bool m_nextTokenHasBeenSet = false;
199
200 SortModelsBy m_sortBy;
201 bool m_sortByHasBeenSet = false;
202
203 SortOrder m_sortOrder;
204 bool m_sortOrderHasBeenSet = false;
205
206 bool m_isOwned;
207 bool m_isOwnedHasBeenSet = false;
208 };
209
210} // namespace Model
211} // namespace Bedrock
212} // namespace Aws
ListCustomModelsRequest & WithFoundationModelArnEquals(const Aws::String &value)
ListCustomModelsRequest & WithCreationTimeAfter(const Aws::Utils::DateTime &value)
ListCustomModelsRequest & WithBaseModelArnEquals(const char *value)
const Aws::Utils::DateTime & GetCreationTimeAfter() const
ListCustomModelsRequest & WithSortBy(SortModelsBy &&value)
ListCustomModelsRequest & WithFoundationModelArnEquals(const char *value)
void SetCreationTimeBefore(const Aws::Utils::DateTime &value)
ListCustomModelsRequest & WithSortOrder(const SortOrder &value)
ListCustomModelsRequest & WithIsOwned(bool value)
ListCustomModelsRequest & WithSortOrder(SortOrder &&value)
ListCustomModelsRequest & WithNameContains(const Aws::String &value)
ListCustomModelsRequest & WithBaseModelArnEquals(Aws::String &&value)
void SetCreationTimeAfter(Aws::Utils::DateTime &&value)
ListCustomModelsRequest & WithNextToken(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
ListCustomModelsRequest & WithSortBy(const SortModelsBy &value)
ListCustomModelsRequest & WithMaxResults(int value)
ListCustomModelsRequest & WithFoundationModelArnEquals(Aws::String &&value)
ListCustomModelsRequest & WithNameContains(const char *value)
ListCustomModelsRequest & WithNextToken(Aws::String &&value)
const Aws::Utils::DateTime & GetCreationTimeBefore() const
ListCustomModelsRequest & WithBaseModelArnEquals(const Aws::String &value)
AWS_BEDROCK_API Aws::String SerializePayload() const override
AWS_BEDROCK_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetCreationTimeAfter(const Aws::Utils::DateTime &value)
ListCustomModelsRequest & WithNextToken(const char *value)
ListCustomModelsRequest & WithCreationTimeBefore(const Aws::Utils::DateTime &value)
ListCustomModelsRequest & WithCreationTimeAfter(Aws::Utils::DateTime &&value)
ListCustomModelsRequest & WithCreationTimeBefore(Aws::Utils::DateTime &&value)
ListCustomModelsRequest & WithNameContains(Aws::String &&value)
void SetCreationTimeBefore(Aws::Utils::DateTime &&value)
void SetFoundationModelArnEquals(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String