AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ListArtifactsRequest.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/sagemaker/model/SortArtifactsBy.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 ListArtifactsRequest() = 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 "ListArtifacts"; }
34
35 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetSourceUri() const { return m_sourceUri; }
45 inline bool SourceUriHasBeenSet() const { return m_sourceUriHasBeenSet; }
46 template<typename SourceUriT = Aws::String>
47 void SetSourceUri(SourceUriT&& value) { m_sourceUriHasBeenSet = true; m_sourceUri = std::forward<SourceUriT>(value); }
48 template<typename SourceUriT = Aws::String>
49 ListArtifactsRequest& WithSourceUri(SourceUriT&& value) { SetSourceUri(std::forward<SourceUriT>(value)); return *this;}
51
53
56 inline const Aws::String& GetArtifactType() const { return m_artifactType; }
57 inline bool ArtifactTypeHasBeenSet() const { return m_artifactTypeHasBeenSet; }
58 template<typename ArtifactTypeT = Aws::String>
59 void SetArtifactType(ArtifactTypeT&& value) { m_artifactTypeHasBeenSet = true; m_artifactType = std::forward<ArtifactTypeT>(value); }
60 template<typename ArtifactTypeT = Aws::String>
61 ListArtifactsRequest& WithArtifactType(ArtifactTypeT&& value) { SetArtifactType(std::forward<ArtifactTypeT>(value)); return *this;}
63
65
69 inline const Aws::Utils::DateTime& GetCreatedAfter() const { return m_createdAfter; }
70 inline bool CreatedAfterHasBeenSet() const { return m_createdAfterHasBeenSet; }
71 template<typename CreatedAfterT = Aws::Utils::DateTime>
72 void SetCreatedAfter(CreatedAfterT&& value) { m_createdAfterHasBeenSet = true; m_createdAfter = std::forward<CreatedAfterT>(value); }
73 template<typename CreatedAfterT = Aws::Utils::DateTime>
74 ListArtifactsRequest& WithCreatedAfter(CreatedAfterT&& value) { SetCreatedAfter(std::forward<CreatedAfterT>(value)); return *this;}
76
78
82 inline const Aws::Utils::DateTime& GetCreatedBefore() const { return m_createdBefore; }
83 inline bool CreatedBeforeHasBeenSet() const { return m_createdBeforeHasBeenSet; }
84 template<typename CreatedBeforeT = Aws::Utils::DateTime>
85 void SetCreatedBefore(CreatedBeforeT&& value) { m_createdBeforeHasBeenSet = true; m_createdBefore = std::forward<CreatedBeforeT>(value); }
86 template<typename CreatedBeforeT = Aws::Utils::DateTime>
87 ListArtifactsRequest& WithCreatedBefore(CreatedBeforeT&& value) { SetCreatedBefore(std::forward<CreatedBeforeT>(value)); return *this;}
89
91
95 inline SortArtifactsBy GetSortBy() const { return m_sortBy; }
96 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
97 inline void SetSortBy(SortArtifactsBy value) { m_sortByHasBeenSet = true; m_sortBy = value; }
98 inline ListArtifactsRequest& WithSortBy(SortArtifactsBy value) { SetSortBy(value); return *this;}
100
102
105 inline SortOrder GetSortOrder() const { return m_sortOrder; }
106 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
107 inline void SetSortOrder(SortOrder value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
108 inline ListArtifactsRequest& WithSortOrder(SortOrder value) { SetSortOrder(value); return *this;}
110
112
117 inline const Aws::String& GetNextToken() const { return m_nextToken; }
118 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
119 template<typename NextTokenT = Aws::String>
120 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
121 template<typename NextTokenT = Aws::String>
122 ListArtifactsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
124
126
130 inline int GetMaxResults() const { return m_maxResults; }
131 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
132 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
133 inline ListArtifactsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
135 private:
136
137 Aws::String m_sourceUri;
138 bool m_sourceUriHasBeenSet = false;
139
140 Aws::String m_artifactType;
141 bool m_artifactTypeHasBeenSet = false;
142
143 Aws::Utils::DateTime m_createdAfter{};
144 bool m_createdAfterHasBeenSet = false;
145
146 Aws::Utils::DateTime m_createdBefore{};
147 bool m_createdBeforeHasBeenSet = false;
148
150 bool m_sortByHasBeenSet = false;
151
152 SortOrder m_sortOrder{SortOrder::NOT_SET};
153 bool m_sortOrderHasBeenSet = false;
154
155 Aws::String m_nextToken;
156 bool m_nextTokenHasBeenSet = false;
157
158 int m_maxResults{0};
159 bool m_maxResultsHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace SageMaker
164} // namespace Aws
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
ListArtifactsRequest & WithSourceUri(SourceUriT &&value)
AWS_SAGEMAKER_API ListArtifactsRequest()=default
ListArtifactsRequest & WithCreatedAfter(CreatedAfterT &&value)
ListArtifactsRequest & WithNextToken(NextTokenT &&value)
ListArtifactsRequest & WithMaxResults(int value)
const Aws::Utils::DateTime & GetCreatedBefore() const
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
const Aws::Utils::DateTime & GetCreatedAfter() const
ListArtifactsRequest & WithArtifactType(ArtifactTypeT &&value)
ListArtifactsRequest & WithSortOrder(SortOrder value)
ListArtifactsRequest & WithSortBy(SortArtifactsBy value)
ListArtifactsRequest & WithCreatedBefore(CreatedBeforeT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String