AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListModelCardsRequest.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/ModelCardStatus.h>
12#include <aws/sagemaker/model/ModelCardSortBy.h>
13#include <aws/sagemaker/model/ModelCardSortOrder.h>
14#include <utility>
15
16namespace Aws
17{
18namespace SageMaker
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_SAGEMAKER_API ListModelCardsRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "ListModelCards"; }
35
36 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
37
39
40
42
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 ListModelCardsRequest& WithCreationTimeAfter(CreationTimeAfterT&& value) { SetCreationTimeAfter(std::forward<CreationTimeAfterT>(value)); return *this;}
52
54
57 inline const Aws::Utils::DateTime& GetCreationTimeBefore() const { return m_creationTimeBefore; }
58 inline bool CreationTimeBeforeHasBeenSet() const { return m_creationTimeBeforeHasBeenSet; }
59 template<typename CreationTimeBeforeT = Aws::Utils::DateTime>
60 void SetCreationTimeBefore(CreationTimeBeforeT&& value) { m_creationTimeBeforeHasBeenSet = true; m_creationTimeBefore = std::forward<CreationTimeBeforeT>(value); }
61 template<typename CreationTimeBeforeT = Aws::Utils::DateTime>
62 ListModelCardsRequest& WithCreationTimeBefore(CreationTimeBeforeT&& value) { SetCreationTimeBefore(std::forward<CreationTimeBeforeT>(value)); return *this;}
64
66
69 inline int GetMaxResults() const { return m_maxResults; }
70 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
71 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
72 inline ListModelCardsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
74
76
79 inline const Aws::String& GetNameContains() const { return m_nameContains; }
80 inline bool NameContainsHasBeenSet() const { return m_nameContainsHasBeenSet; }
81 template<typename NameContainsT = Aws::String>
82 void SetNameContains(NameContainsT&& value) { m_nameContainsHasBeenSet = true; m_nameContains = std::forward<NameContainsT>(value); }
83 template<typename NameContainsT = Aws::String>
84 ListModelCardsRequest& WithNameContains(NameContainsT&& value) { SetNameContains(std::forward<NameContainsT>(value)); return *this;}
86
88
91 inline ModelCardStatus GetModelCardStatus() const { return m_modelCardStatus; }
92 inline bool ModelCardStatusHasBeenSet() const { return m_modelCardStatusHasBeenSet; }
93 inline void SetModelCardStatus(ModelCardStatus value) { m_modelCardStatusHasBeenSet = true; m_modelCardStatus = value; }
96
98
103 inline const Aws::String& GetNextToken() const { return m_nextToken; }
104 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
105 template<typename NextTokenT = Aws::String>
106 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
107 template<typename NextTokenT = Aws::String>
108 ListModelCardsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
110
112
116 inline ModelCardSortBy GetSortBy() const { return m_sortBy; }
117 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
118 inline void SetSortBy(ModelCardSortBy value) { m_sortByHasBeenSet = true; m_sortBy = value; }
119 inline ListModelCardsRequest& WithSortBy(ModelCardSortBy value) { SetSortBy(value); return *this;}
121
123
126 inline ModelCardSortOrder GetSortOrder() const { return m_sortOrder; }
127 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
128 inline void SetSortOrder(ModelCardSortOrder value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
131 private:
132
133 Aws::Utils::DateTime m_creationTimeAfter{};
134 bool m_creationTimeAfterHasBeenSet = false;
135
136 Aws::Utils::DateTime m_creationTimeBefore{};
137 bool m_creationTimeBeforeHasBeenSet = false;
138
139 int m_maxResults{0};
140 bool m_maxResultsHasBeenSet = false;
141
142 Aws::String m_nameContains;
143 bool m_nameContainsHasBeenSet = false;
144
145 ModelCardStatus m_modelCardStatus{ModelCardStatus::NOT_SET};
146 bool m_modelCardStatusHasBeenSet = false;
147
148 Aws::String m_nextToken;
149 bool m_nextTokenHasBeenSet = false;
150
152 bool m_sortByHasBeenSet = false;
153
155 bool m_sortOrderHasBeenSet = false;
156 };
157
158} // namespace Model
159} // namespace SageMaker
160} // namespace Aws
const Aws::Utils::DateTime & GetCreationTimeAfter() const
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Utils::DateTime & GetCreationTimeBefore() const
AWS_SAGEMAKER_API ListModelCardsRequest()=default
ListModelCardsRequest & WithNextToken(NextTokenT &&value)
ListModelCardsRequest & WithNameContains(NameContainsT &&value)
ListModelCardsRequest & WithMaxResults(int value)
ListModelCardsRequest & WithModelCardStatus(ModelCardStatus value)
ListModelCardsRequest & WithCreationTimeBefore(CreationTimeBeforeT &&value)
ListModelCardsRequest & WithSortOrder(ModelCardSortOrder value)
void SetCreationTimeBefore(CreationTimeBeforeT &&value)
ListModelCardsRequest & WithSortBy(ModelCardSortBy value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
void SetCreationTimeAfter(CreationTimeAfterT &&value)
virtual const char * GetServiceRequestName() const override
ListModelCardsRequest & WithCreationTimeAfter(CreationTimeAfterT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String