AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ListClusterNodesRequest.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/ClusterSortBy.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 ListClusterNodesRequest() = 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 "ListClusterNodes"; }
34
35 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
36
38
39
41
45 inline const Aws::String& GetClusterName() const { return m_clusterName; }
46 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
47 template<typename ClusterNameT = Aws::String>
48 void SetClusterName(ClusterNameT&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::forward<ClusterNameT>(value); }
49 template<typename ClusterNameT = Aws::String>
50 ListClusterNodesRequest& WithClusterName(ClusterNameT&& value) { SetClusterName(std::forward<ClusterNameT>(value)); return *this;}
52
54
70 inline const Aws::Utils::DateTime& GetCreationTimeAfter() const { return m_creationTimeAfter; }
71 inline bool CreationTimeAfterHasBeenSet() const { return m_creationTimeAfterHasBeenSet; }
72 template<typename CreationTimeAfterT = Aws::Utils::DateTime>
73 void SetCreationTimeAfter(CreationTimeAfterT&& value) { m_creationTimeAfterHasBeenSet = true; m_creationTimeAfter = std::forward<CreationTimeAfterT>(value); }
74 template<typename CreationTimeAfterT = Aws::Utils::DateTime>
75 ListClusterNodesRequest& WithCreationTimeAfter(CreationTimeAfterT&& value) { SetCreationTimeAfter(std::forward<CreationTimeAfterT>(value)); return *this;}
77
79
87 inline const Aws::Utils::DateTime& GetCreationTimeBefore() const { return m_creationTimeBefore; }
88 inline bool CreationTimeBeforeHasBeenSet() const { return m_creationTimeBeforeHasBeenSet; }
89 template<typename CreationTimeBeforeT = Aws::Utils::DateTime>
90 void SetCreationTimeBefore(CreationTimeBeforeT&& value) { m_creationTimeBeforeHasBeenSet = true; m_creationTimeBefore = std::forward<CreationTimeBeforeT>(value); }
91 template<typename CreationTimeBeforeT = Aws::Utils::DateTime>
92 ListClusterNodesRequest& WithCreationTimeBefore(CreationTimeBeforeT&& value) { SetCreationTimeBefore(std::forward<CreationTimeBeforeT>(value)); return *this;}
94
96
100 inline const Aws::String& GetInstanceGroupNameContains() const { return m_instanceGroupNameContains; }
101 inline bool InstanceGroupNameContainsHasBeenSet() const { return m_instanceGroupNameContainsHasBeenSet; }
102 template<typename InstanceGroupNameContainsT = Aws::String>
103 void SetInstanceGroupNameContains(InstanceGroupNameContainsT&& value) { m_instanceGroupNameContainsHasBeenSet = true; m_instanceGroupNameContains = std::forward<InstanceGroupNameContainsT>(value); }
104 template<typename InstanceGroupNameContainsT = Aws::String>
105 ListClusterNodesRequest& WithInstanceGroupNameContains(InstanceGroupNameContainsT&& value) { SetInstanceGroupNameContains(std::forward<InstanceGroupNameContainsT>(value)); return *this;}
107
109
112 inline int GetMaxResults() const { return m_maxResults; }
113 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
114 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
115 inline ListClusterNodesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
117
119
124 inline const Aws::String& GetNextToken() const { return m_nextToken; }
125 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
126 template<typename NextTokenT = Aws::String>
127 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
128 template<typename NextTokenT = Aws::String>
129 ListClusterNodesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
131
133
137 inline ClusterSortBy GetSortBy() const { return m_sortBy; }
138 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
139 inline void SetSortBy(ClusterSortBy value) { m_sortByHasBeenSet = true; m_sortBy = value; }
140 inline ListClusterNodesRequest& WithSortBy(ClusterSortBy value) { SetSortBy(value); return *this;}
142
144
147 inline SortOrder GetSortOrder() const { return m_sortOrder; }
148 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
149 inline void SetSortOrder(SortOrder value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
150 inline ListClusterNodesRequest& WithSortOrder(SortOrder value) { SetSortOrder(value); return *this;}
152 private:
153
154 Aws::String m_clusterName;
155 bool m_clusterNameHasBeenSet = false;
156
157 Aws::Utils::DateTime m_creationTimeAfter{};
158 bool m_creationTimeAfterHasBeenSet = false;
159
160 Aws::Utils::DateTime m_creationTimeBefore{};
161 bool m_creationTimeBeforeHasBeenSet = false;
162
163 Aws::String m_instanceGroupNameContains;
164 bool m_instanceGroupNameContainsHasBeenSet = false;
165
166 int m_maxResults{0};
167 bool m_maxResultsHasBeenSet = false;
168
169 Aws::String m_nextToken;
170 bool m_nextTokenHasBeenSet = false;
171
173 bool m_sortByHasBeenSet = false;
174
175 SortOrder m_sortOrder{SortOrder::NOT_SET};
176 bool m_sortOrderHasBeenSet = false;
177 };
178
179} // namespace Model
180} // namespace SageMaker
181} // namespace Aws
ListClusterNodesRequest & WithSortOrder(SortOrder value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
ListClusterNodesRequest & WithCreationTimeBefore(CreationTimeBeforeT &&value)
virtual const char * GetServiceRequestName() const override
ListClusterNodesRequest & WithInstanceGroupNameContains(InstanceGroupNameContainsT &&value)
ListClusterNodesRequest & WithNextToken(NextTokenT &&value)
const Aws::Utils::DateTime & GetCreationTimeBefore() const
ListClusterNodesRequest & WithMaxResults(int value)
AWS_SAGEMAKER_API ListClusterNodesRequest()=default
ListClusterNodesRequest & WithCreationTimeAfter(CreationTimeAfterT &&value)
void SetCreationTimeAfter(CreationTimeAfterT &&value)
ListClusterNodesRequest & WithClusterName(ClusterNameT &&value)
void SetCreationTimeBefore(CreationTimeBeforeT &&value)
ListClusterNodesRequest & WithSortBy(ClusterSortBy value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Utils::DateTime & GetCreationTimeAfter() const
void SetInstanceGroupNameContains(InstanceGroupNameContainsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String