1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 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/SortActionsBy.h> 12 #include <aws/sagemaker/model/SortOrder.h> 13 #include <utility> 14 15 namespace Aws 16 { 17 namespace SageMaker 18 { 19 namespace Model 20 { 21 22 /** 23 */ 24 class AWS_SAGEMAKER_API ListActionsRequest : public SageMakerRequest 25 { 26 public: 27 ListActionsRequest(); 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. GetServiceRequestName()33 inline virtual const char* GetServiceRequestName() const override { return "ListActions"; } 34 35 Aws::String SerializePayload() const override; 36 37 Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; 38 39 40 /** 41 * <p>A filter that returns only actions with the specified source URI.</p> 42 */ GetSourceUri()43 inline const Aws::String& GetSourceUri() const{ return m_sourceUri; } 44 45 /** 46 * <p>A filter that returns only actions with the specified source URI.</p> 47 */ SourceUriHasBeenSet()48 inline bool SourceUriHasBeenSet() const { return m_sourceUriHasBeenSet; } 49 50 /** 51 * <p>A filter that returns only actions with the specified source URI.</p> 52 */ SetSourceUri(const Aws::String & value)53 inline void SetSourceUri(const Aws::String& value) { m_sourceUriHasBeenSet = true; m_sourceUri = value; } 54 55 /** 56 * <p>A filter that returns only actions with the specified source URI.</p> 57 */ SetSourceUri(Aws::String && value)58 inline void SetSourceUri(Aws::String&& value) { m_sourceUriHasBeenSet = true; m_sourceUri = std::move(value); } 59 60 /** 61 * <p>A filter that returns only actions with the specified source URI.</p> 62 */ SetSourceUri(const char * value)63 inline void SetSourceUri(const char* value) { m_sourceUriHasBeenSet = true; m_sourceUri.assign(value); } 64 65 /** 66 * <p>A filter that returns only actions with the specified source URI.</p> 67 */ WithSourceUri(const Aws::String & value)68 inline ListActionsRequest& WithSourceUri(const Aws::String& value) { SetSourceUri(value); return *this;} 69 70 /** 71 * <p>A filter that returns only actions with the specified source URI.</p> 72 */ WithSourceUri(Aws::String && value)73 inline ListActionsRequest& WithSourceUri(Aws::String&& value) { SetSourceUri(std::move(value)); return *this;} 74 75 /** 76 * <p>A filter that returns only actions with the specified source URI.</p> 77 */ WithSourceUri(const char * value)78 inline ListActionsRequest& WithSourceUri(const char* value) { SetSourceUri(value); return *this;} 79 80 81 /** 82 * <p>A filter that returns only actions of the specified type.</p> 83 */ GetActionType()84 inline const Aws::String& GetActionType() const{ return m_actionType; } 85 86 /** 87 * <p>A filter that returns only actions of the specified type.</p> 88 */ ActionTypeHasBeenSet()89 inline bool ActionTypeHasBeenSet() const { return m_actionTypeHasBeenSet; } 90 91 /** 92 * <p>A filter that returns only actions of the specified type.</p> 93 */ SetActionType(const Aws::String & value)94 inline void SetActionType(const Aws::String& value) { m_actionTypeHasBeenSet = true; m_actionType = value; } 95 96 /** 97 * <p>A filter that returns only actions of the specified type.</p> 98 */ SetActionType(Aws::String && value)99 inline void SetActionType(Aws::String&& value) { m_actionTypeHasBeenSet = true; m_actionType = std::move(value); } 100 101 /** 102 * <p>A filter that returns only actions of the specified type.</p> 103 */ SetActionType(const char * value)104 inline void SetActionType(const char* value) { m_actionTypeHasBeenSet = true; m_actionType.assign(value); } 105 106 /** 107 * <p>A filter that returns only actions of the specified type.</p> 108 */ WithActionType(const Aws::String & value)109 inline ListActionsRequest& WithActionType(const Aws::String& value) { SetActionType(value); return *this;} 110 111 /** 112 * <p>A filter that returns only actions of the specified type.</p> 113 */ WithActionType(Aws::String && value)114 inline ListActionsRequest& WithActionType(Aws::String&& value) { SetActionType(std::move(value)); return *this;} 115 116 /** 117 * <p>A filter that returns only actions of the specified type.</p> 118 */ WithActionType(const char * value)119 inline ListActionsRequest& WithActionType(const char* value) { SetActionType(value); return *this;} 120 121 122 /** 123 * <p>A filter that returns only actions created on or after the specified 124 * time.</p> 125 */ GetCreatedAfter()126 inline const Aws::Utils::DateTime& GetCreatedAfter() const{ return m_createdAfter; } 127 128 /** 129 * <p>A filter that returns only actions created on or after the specified 130 * time.</p> 131 */ CreatedAfterHasBeenSet()132 inline bool CreatedAfterHasBeenSet() const { return m_createdAfterHasBeenSet; } 133 134 /** 135 * <p>A filter that returns only actions created on or after the specified 136 * time.</p> 137 */ SetCreatedAfter(const Aws::Utils::DateTime & value)138 inline void SetCreatedAfter(const Aws::Utils::DateTime& value) { m_createdAfterHasBeenSet = true; m_createdAfter = value; } 139 140 /** 141 * <p>A filter that returns only actions created on or after the specified 142 * time.</p> 143 */ SetCreatedAfter(Aws::Utils::DateTime && value)144 inline void SetCreatedAfter(Aws::Utils::DateTime&& value) { m_createdAfterHasBeenSet = true; m_createdAfter = std::move(value); } 145 146 /** 147 * <p>A filter that returns only actions created on or after the specified 148 * time.</p> 149 */ WithCreatedAfter(const Aws::Utils::DateTime & value)150 inline ListActionsRequest& WithCreatedAfter(const Aws::Utils::DateTime& value) { SetCreatedAfter(value); return *this;} 151 152 /** 153 * <p>A filter that returns only actions created on or after the specified 154 * time.</p> 155 */ WithCreatedAfter(Aws::Utils::DateTime && value)156 inline ListActionsRequest& WithCreatedAfter(Aws::Utils::DateTime&& value) { SetCreatedAfter(std::move(value)); return *this;} 157 158 159 /** 160 * <p>A filter that returns only actions created on or before the specified 161 * time.</p> 162 */ GetCreatedBefore()163 inline const Aws::Utils::DateTime& GetCreatedBefore() const{ return m_createdBefore; } 164 165 /** 166 * <p>A filter that returns only actions created on or before the specified 167 * time.</p> 168 */ CreatedBeforeHasBeenSet()169 inline bool CreatedBeforeHasBeenSet() const { return m_createdBeforeHasBeenSet; } 170 171 /** 172 * <p>A filter that returns only actions created on or before the specified 173 * time.</p> 174 */ SetCreatedBefore(const Aws::Utils::DateTime & value)175 inline void SetCreatedBefore(const Aws::Utils::DateTime& value) { m_createdBeforeHasBeenSet = true; m_createdBefore = value; } 176 177 /** 178 * <p>A filter that returns only actions created on or before the specified 179 * time.</p> 180 */ SetCreatedBefore(Aws::Utils::DateTime && value)181 inline void SetCreatedBefore(Aws::Utils::DateTime&& value) { m_createdBeforeHasBeenSet = true; m_createdBefore = std::move(value); } 182 183 /** 184 * <p>A filter that returns only actions created on or before the specified 185 * time.</p> 186 */ WithCreatedBefore(const Aws::Utils::DateTime & value)187 inline ListActionsRequest& WithCreatedBefore(const Aws::Utils::DateTime& value) { SetCreatedBefore(value); return *this;} 188 189 /** 190 * <p>A filter that returns only actions created on or before the specified 191 * time.</p> 192 */ WithCreatedBefore(Aws::Utils::DateTime && value)193 inline ListActionsRequest& WithCreatedBefore(Aws::Utils::DateTime&& value) { SetCreatedBefore(std::move(value)); return *this;} 194 195 196 /** 197 * <p>The property used to sort results. The default value is 198 * <code>CreationTime</code>.</p> 199 */ GetSortBy()200 inline const SortActionsBy& GetSortBy() const{ return m_sortBy; } 201 202 /** 203 * <p>The property used to sort results. The default value is 204 * <code>CreationTime</code>.</p> 205 */ SortByHasBeenSet()206 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; } 207 208 /** 209 * <p>The property used to sort results. The default value is 210 * <code>CreationTime</code>.</p> 211 */ SetSortBy(const SortActionsBy & value)212 inline void SetSortBy(const SortActionsBy& value) { m_sortByHasBeenSet = true; m_sortBy = value; } 213 214 /** 215 * <p>The property used to sort results. The default value is 216 * <code>CreationTime</code>.</p> 217 */ SetSortBy(SortActionsBy && value)218 inline void SetSortBy(SortActionsBy&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); } 219 220 /** 221 * <p>The property used to sort results. The default value is 222 * <code>CreationTime</code>.</p> 223 */ WithSortBy(const SortActionsBy & value)224 inline ListActionsRequest& WithSortBy(const SortActionsBy& value) { SetSortBy(value); return *this;} 225 226 /** 227 * <p>The property used to sort results. The default value is 228 * <code>CreationTime</code>.</p> 229 */ WithSortBy(SortActionsBy && value)230 inline ListActionsRequest& WithSortBy(SortActionsBy&& value) { SetSortBy(std::move(value)); return *this;} 231 232 233 /** 234 * <p>The sort order. The default value is <code>Descending</code>.</p> 235 */ GetSortOrder()236 inline const SortOrder& GetSortOrder() const{ return m_sortOrder; } 237 238 /** 239 * <p>The sort order. The default value is <code>Descending</code>.</p> 240 */ SortOrderHasBeenSet()241 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; } 242 243 /** 244 * <p>The sort order. The default value is <code>Descending</code>.</p> 245 */ SetSortOrder(const SortOrder & value)246 inline void SetSortOrder(const SortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; } 247 248 /** 249 * <p>The sort order. The default value is <code>Descending</code>.</p> 250 */ SetSortOrder(SortOrder && value)251 inline void SetSortOrder(SortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); } 252 253 /** 254 * <p>The sort order. The default value is <code>Descending</code>.</p> 255 */ WithSortOrder(const SortOrder & value)256 inline ListActionsRequest& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;} 257 258 /** 259 * <p>The sort order. The default value is <code>Descending</code>.</p> 260 */ WithSortOrder(SortOrder && value)261 inline ListActionsRequest& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;} 262 263 264 /** 265 * <p>If the previous call to <code>ListActions</code> didn't return the full set 266 * of actions, the call returns a token for getting the next set of actions.</p> 267 */ GetNextToken()268 inline const Aws::String& GetNextToken() const{ return m_nextToken; } 269 270 /** 271 * <p>If the previous call to <code>ListActions</code> didn't return the full set 272 * of actions, the call returns a token for getting the next set of actions.</p> 273 */ NextTokenHasBeenSet()274 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } 275 276 /** 277 * <p>If the previous call to <code>ListActions</code> didn't return the full set 278 * of actions, the call returns a token for getting the next set of actions.</p> 279 */ SetNextToken(const Aws::String & value)280 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } 281 282 /** 283 * <p>If the previous call to <code>ListActions</code> didn't return the full set 284 * of actions, the call returns a token for getting the next set of actions.</p> 285 */ SetNextToken(Aws::String && value)286 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } 287 288 /** 289 * <p>If the previous call to <code>ListActions</code> didn't return the full set 290 * of actions, the call returns a token for getting the next set of actions.</p> 291 */ SetNextToken(const char * value)292 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } 293 294 /** 295 * <p>If the previous call to <code>ListActions</code> didn't return the full set 296 * of actions, the call returns a token for getting the next set of actions.</p> 297 */ WithNextToken(const Aws::String & value)298 inline ListActionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} 299 300 /** 301 * <p>If the previous call to <code>ListActions</code> didn't return the full set 302 * of actions, the call returns a token for getting the next set of actions.</p> 303 */ WithNextToken(Aws::String && value)304 inline ListActionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} 305 306 /** 307 * <p>If the previous call to <code>ListActions</code> didn't return the full set 308 * of actions, the call returns a token for getting the next set of actions.</p> 309 */ WithNextToken(const char * value)310 inline ListActionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} 311 312 313 /** 314 * <p>The maximum number of actions to return in the response. The default value is 315 * 10.</p> 316 */ GetMaxResults()317 inline int GetMaxResults() const{ return m_maxResults; } 318 319 /** 320 * <p>The maximum number of actions to return in the response. The default value is 321 * 10.</p> 322 */ MaxResultsHasBeenSet()323 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } 324 325 /** 326 * <p>The maximum number of actions to return in the response. The default value is 327 * 10.</p> 328 */ SetMaxResults(int value)329 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } 330 331 /** 332 * <p>The maximum number of actions to return in the response. The default value is 333 * 10.</p> 334 */ WithMaxResults(int value)335 inline ListActionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} 336 337 private: 338 339 Aws::String m_sourceUri; 340 bool m_sourceUriHasBeenSet; 341 342 Aws::String m_actionType; 343 bool m_actionTypeHasBeenSet; 344 345 Aws::Utils::DateTime m_createdAfter; 346 bool m_createdAfterHasBeenSet; 347 348 Aws::Utils::DateTime m_createdBefore; 349 bool m_createdBeforeHasBeenSet; 350 351 SortActionsBy m_sortBy; 352 bool m_sortByHasBeenSet; 353 354 SortOrder m_sortOrder; 355 bool m_sortOrderHasBeenSet; 356 357 Aws::String m_nextToken; 358 bool m_nextTokenHasBeenSet; 359 360 int m_maxResults; 361 bool m_maxResultsHasBeenSet; 362 }; 363 364 } // namespace Model 365 } // namespace SageMaker 366 } // namespace Aws 367