AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListProjectsRequest.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/ProjectSortBy.h>
12#include <aws/sagemaker/model/ProjectSortOrder.h>
13#include <utility>
14
15namespace Aws
16{
17namespace SageMaker
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SAGEMAKER_API ListProjectsRequest();
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 "ListProjects"; }
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 inline void SetCreationTimeAfter(const Aws::Utils::DateTime& value) { m_creationTimeAfterHasBeenSet = true; m_creationTimeAfter = value; }
48 inline void SetCreationTimeAfter(Aws::Utils::DateTime&& value) { m_creationTimeAfterHasBeenSet = true; m_creationTimeAfter = std::move(value); }
50 inline ListProjectsRequest& WithCreationTimeAfter(Aws::Utils::DateTime&& value) { SetCreationTimeAfter(std::move(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 inline void SetCreationTimeBefore(const Aws::Utils::DateTime& value) { m_creationTimeBeforeHasBeenSet = true; m_creationTimeBefore = value; }
61 inline void SetCreationTimeBefore(Aws::Utils::DateTime&& value) { m_creationTimeBeforeHasBeenSet = true; m_creationTimeBefore = std::move(value); }
63 inline ListProjectsRequest& WithCreationTimeBefore(Aws::Utils::DateTime&& value) { SetCreationTimeBefore(std::move(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 ListProjectsRequest& 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 inline void SetNameContains(const Aws::String& value) { m_nameContainsHasBeenSet = true; m_nameContains = value; }
84 inline void SetNameContains(Aws::String&& value) { m_nameContainsHasBeenSet = true; m_nameContains = std::move(value); }
85 inline void SetNameContains(const char* value) { m_nameContainsHasBeenSet = true; m_nameContains.assign(value); }
86 inline ListProjectsRequest& WithNameContains(const Aws::String& value) { SetNameContains(value); return *this;}
87 inline ListProjectsRequest& WithNameContains(Aws::String&& value) { SetNameContains(std::move(value)); return *this;}
88 inline ListProjectsRequest& WithNameContains(const char* value) { SetNameContains(value); return *this;}
90
92
97 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
98 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
99 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
100 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
101 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
102 inline ListProjectsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
103 inline ListProjectsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
104 inline ListProjectsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
106
108
112 inline const ProjectSortBy& GetSortBy() const{ return m_sortBy; }
113 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
114 inline void SetSortBy(const ProjectSortBy& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
115 inline void SetSortBy(ProjectSortBy&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
116 inline ListProjectsRequest& WithSortBy(const ProjectSortBy& value) { SetSortBy(value); return *this;}
117 inline ListProjectsRequest& WithSortBy(ProjectSortBy&& value) { SetSortBy(std::move(value)); return *this;}
119
121
124 inline const ProjectSortOrder& GetSortOrder() const{ return m_sortOrder; }
125 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
126 inline void SetSortOrder(const ProjectSortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
127 inline void SetSortOrder(ProjectSortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
128 inline ListProjectsRequest& WithSortOrder(const ProjectSortOrder& value) { SetSortOrder(value); return *this;}
129 inline ListProjectsRequest& WithSortOrder(ProjectSortOrder&& value) { SetSortOrder(std::move(value)); return *this;}
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;
140 bool m_maxResultsHasBeenSet = false;
141
142 Aws::String m_nameContains;
143 bool m_nameContainsHasBeenSet = false;
144
145 Aws::String m_nextToken;
146 bool m_nextTokenHasBeenSet = false;
147
148 ProjectSortBy m_sortBy;
149 bool m_sortByHasBeenSet = false;
150
151 ProjectSortOrder m_sortOrder;
152 bool m_sortOrderHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace SageMaker
157} // namespace Aws
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
ListProjectsRequest & WithMaxResults(int value)
void SetCreationTimeAfter(const Aws::Utils::DateTime &value)
ListProjectsRequest & WithSortBy(const ProjectSortBy &value)
ListProjectsRequest & WithCreationTimeBefore(Aws::Utils::DateTime &&value)
ListProjectsRequest & WithNextToken(Aws::String &&value)
void SetSortOrder(const ProjectSortOrder &value)
void SetSortOrder(ProjectSortOrder &&value)
void SetCreationTimeBefore(Aws::Utils::DateTime &&value)
ListProjectsRequest & WithNameContains(Aws::String &&value)
void SetSortBy(const ProjectSortBy &value)
ListProjectsRequest & WithCreationTimeBefore(const Aws::Utils::DateTime &value)
ListProjectsRequest & WithCreationTimeAfter(const Aws::Utils::DateTime &value)
ListProjectsRequest & WithSortOrder(ProjectSortOrder &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Utils::DateTime & GetCreationTimeBefore() const
void SetNextToken(const Aws::String &value)
void SetCreationTimeAfter(Aws::Utils::DateTime &&value)
ListProjectsRequest & WithNameContains(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
ListProjectsRequest & WithSortBy(ProjectSortBy &&value)
void SetNameContains(const Aws::String &value)
ListProjectsRequest & WithCreationTimeAfter(Aws::Utils::DateTime &&value)
void SetCreationTimeBefore(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetCreationTimeAfter() const
ListProjectsRequest & WithNameContains(const char *value)
const ProjectSortOrder & GetSortOrder() const
ListProjectsRequest & WithSortOrder(const ProjectSortOrder &value)
ListProjectsRequest & WithNextToken(const Aws::String &value)
ListProjectsRequest & WithNextToken(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String