AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListTrialsRequest.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/SortTrialsBy.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 ListTrialsRequest();
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 "ListTrials"; }
34
35 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
36
38
39
41
45 inline const Aws::String& GetExperimentName() const{ return m_experimentName; }
46 inline bool ExperimentNameHasBeenSet() const { return m_experimentNameHasBeenSet; }
47 inline void SetExperimentName(const Aws::String& value) { m_experimentNameHasBeenSet = true; m_experimentName = value; }
48 inline void SetExperimentName(Aws::String&& value) { m_experimentNameHasBeenSet = true; m_experimentName = std::move(value); }
49 inline void SetExperimentName(const char* value) { m_experimentNameHasBeenSet = true; m_experimentName.assign(value); }
50 inline ListTrialsRequest& WithExperimentName(const Aws::String& value) { SetExperimentName(value); return *this;}
51 inline ListTrialsRequest& WithExperimentName(Aws::String&& value) { SetExperimentName(std::move(value)); return *this;}
52 inline ListTrialsRequest& WithExperimentName(const char* value) { SetExperimentName(value); return *this;}
54
56
60 inline const Aws::String& GetTrialComponentName() const{ return m_trialComponentName; }
61 inline bool TrialComponentNameHasBeenSet() const { return m_trialComponentNameHasBeenSet; }
62 inline void SetTrialComponentName(const Aws::String& value) { m_trialComponentNameHasBeenSet = true; m_trialComponentName = value; }
63 inline void SetTrialComponentName(Aws::String&& value) { m_trialComponentNameHasBeenSet = true; m_trialComponentName = std::move(value); }
64 inline void SetTrialComponentName(const char* value) { m_trialComponentNameHasBeenSet = true; m_trialComponentName.assign(value); }
65 inline ListTrialsRequest& WithTrialComponentName(const Aws::String& value) { SetTrialComponentName(value); return *this;}
66 inline ListTrialsRequest& WithTrialComponentName(Aws::String&& value) { SetTrialComponentName(std::move(value)); return *this;}
67 inline ListTrialsRequest& WithTrialComponentName(const char* value) { SetTrialComponentName(value); return *this;}
69
71
74 inline const Aws::Utils::DateTime& GetCreatedAfter() const{ return m_createdAfter; }
75 inline bool CreatedAfterHasBeenSet() const { return m_createdAfterHasBeenSet; }
76 inline void SetCreatedAfter(const Aws::Utils::DateTime& value) { m_createdAfterHasBeenSet = true; m_createdAfter = value; }
77 inline void SetCreatedAfter(Aws::Utils::DateTime&& value) { m_createdAfterHasBeenSet = true; m_createdAfter = std::move(value); }
78 inline ListTrialsRequest& WithCreatedAfter(const Aws::Utils::DateTime& value) { SetCreatedAfter(value); return *this;}
79 inline ListTrialsRequest& WithCreatedAfter(Aws::Utils::DateTime&& value) { SetCreatedAfter(std::move(value)); return *this;}
81
83
86 inline const Aws::Utils::DateTime& GetCreatedBefore() const{ return m_createdBefore; }
87 inline bool CreatedBeforeHasBeenSet() const { return m_createdBeforeHasBeenSet; }
88 inline void SetCreatedBefore(const Aws::Utils::DateTime& value) { m_createdBeforeHasBeenSet = true; m_createdBefore = value; }
89 inline void SetCreatedBefore(Aws::Utils::DateTime&& value) { m_createdBeforeHasBeenSet = true; m_createdBefore = std::move(value); }
90 inline ListTrialsRequest& WithCreatedBefore(const Aws::Utils::DateTime& value) { SetCreatedBefore(value); return *this;}
91 inline ListTrialsRequest& WithCreatedBefore(Aws::Utils::DateTime&& value) { SetCreatedBefore(std::move(value)); return *this;}
93
95
99 inline const SortTrialsBy& GetSortBy() const{ return m_sortBy; }
100 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
101 inline void SetSortBy(const SortTrialsBy& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
102 inline void SetSortBy(SortTrialsBy&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
103 inline ListTrialsRequest& WithSortBy(const SortTrialsBy& value) { SetSortBy(value); return *this;}
104 inline ListTrialsRequest& WithSortBy(SortTrialsBy&& value) { SetSortBy(std::move(value)); return *this;}
106
108
111 inline const SortOrder& GetSortOrder() const{ return m_sortOrder; }
112 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
113 inline void SetSortOrder(const SortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
114 inline void SetSortOrder(SortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
115 inline ListTrialsRequest& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;}
116 inline ListTrialsRequest& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;}
118
120
124 inline int GetMaxResults() const{ return m_maxResults; }
125 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
126 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
127 inline ListTrialsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
129
131
135 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
136 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
137 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
138 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
139 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
140 inline ListTrialsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
141 inline ListTrialsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
142 inline ListTrialsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
144 private:
145
146 Aws::String m_experimentName;
147 bool m_experimentNameHasBeenSet = false;
148
149 Aws::String m_trialComponentName;
150 bool m_trialComponentNameHasBeenSet = false;
151
152 Aws::Utils::DateTime m_createdAfter;
153 bool m_createdAfterHasBeenSet = false;
154
155 Aws::Utils::DateTime m_createdBefore;
156 bool m_createdBeforeHasBeenSet = false;
157
158 SortTrialsBy m_sortBy;
159 bool m_sortByHasBeenSet = false;
160
161 SortOrder m_sortOrder;
162 bool m_sortOrderHasBeenSet = false;
163
164 int m_maxResults;
165 bool m_maxResultsHasBeenSet = false;
166
167 Aws::String m_nextToken;
168 bool m_nextTokenHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace SageMaker
173} // namespace Aws
void SetSortBy(const SortTrialsBy &value)
ListTrialsRequest & WithCreatedBefore(const Aws::Utils::DateTime &value)
void SetNextToken(const Aws::String &value)
const SortTrialsBy & GetSortBy() const
ListTrialsRequest & WithTrialComponentName(const Aws::String &value)
const Aws::String & GetExperimentName() const
void SetCreatedAfter(Aws::Utils::DateTime &&value)
ListTrialsRequest & WithExperimentName(const char *value)
void SetCreatedAfter(const Aws::Utils::DateTime &value)
void SetSortOrder(const SortOrder &value)
ListTrialsRequest & WithCreatedAfter(const Aws::Utils::DateTime &value)
ListTrialsRequest & WithCreatedBefore(Aws::Utils::DateTime &&value)
void SetExperimentName(const Aws::String &value)
void SetCreatedBefore(const Aws::Utils::DateTime &value)
ListTrialsRequest & WithMaxResults(int value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListTrialsRequest & WithSortBy(const SortTrialsBy &value)
ListTrialsRequest & WithTrialComponentName(const char *value)
const Aws::Utils::DateTime & GetCreatedAfter() const
ListTrialsRequest & WithNextToken(const Aws::String &value)
ListTrialsRequest & WithSortOrder(SortOrder &&value)
ListTrialsRequest & WithSortOrder(const SortOrder &value)
ListTrialsRequest & WithSortBy(SortTrialsBy &&value)
const Aws::String & GetTrialComponentName() const
ListTrialsRequest & WithCreatedAfter(Aws::Utils::DateTime &&value)
ListTrialsRequest & WithNextToken(const char *value)
void SetTrialComponentName(const Aws::String &value)
void SetExperimentName(Aws::String &&value)
ListTrialsRequest & WithNextToken(Aws::String &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
void SetCreatedBefore(Aws::Utils::DateTime &&value)
ListTrialsRequest & WithExperimentName(const Aws::String &value)
ListTrialsRequest & WithTrialComponentName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
ListTrialsRequest & WithExperimentName(Aws::String &&value)
void SetTrialComponentName(Aws::String &&value)
const Aws::Utils::DateTime & GetCreatedBefore() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String