AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ListAliasesRequest.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 <utility>
11
12namespace Aws
13{
14namespace SageMaker
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_SAGEMAKER_API ListAliasesRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "ListAliases"; }
31
32 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
33
35
36
38
41 inline const Aws::String& GetImageName() const { return m_imageName; }
42 inline bool ImageNameHasBeenSet() const { return m_imageNameHasBeenSet; }
43 template<typename ImageNameT = Aws::String>
44 void SetImageName(ImageNameT&& value) { m_imageNameHasBeenSet = true; m_imageName = std::forward<ImageNameT>(value); }
45 template<typename ImageNameT = Aws::String>
46 ListAliasesRequest& WithImageName(ImageNameT&& value) { SetImageName(std::forward<ImageNameT>(value)); return *this;}
48
50
53 inline const Aws::String& GetAlias() const { return m_alias; }
54 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
55 template<typename AliasT = Aws::String>
56 void SetAlias(AliasT&& value) { m_aliasHasBeenSet = true; m_alias = std::forward<AliasT>(value); }
57 template<typename AliasT = Aws::String>
58 ListAliasesRequest& WithAlias(AliasT&& value) { SetAlias(std::forward<AliasT>(value)); return *this;}
60
62
66 inline int GetVersion() const { return m_version; }
67 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
68 inline void SetVersion(int value) { m_versionHasBeenSet = true; m_version = value; }
69 inline ListAliasesRequest& WithVersion(int value) { SetVersion(value); return *this;}
71
73
76 inline int GetMaxResults() const { return m_maxResults; }
77 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
78 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
79 inline ListAliasesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
81
83
87 inline const Aws::String& GetNextToken() const { return m_nextToken; }
88 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
89 template<typename NextTokenT = Aws::String>
90 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
91 template<typename NextTokenT = Aws::String>
92 ListAliasesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
94 private:
95
96 Aws::String m_imageName;
97 bool m_imageNameHasBeenSet = false;
98
99 Aws::String m_alias;
100 bool m_aliasHasBeenSet = false;
101
102 int m_version{0};
103 bool m_versionHasBeenSet = false;
104
105 int m_maxResults{0};
106 bool m_maxResultsHasBeenSet = false;
107
108 Aws::String m_nextToken;
109 bool m_nextTokenHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace SageMaker
114} // namespace Aws
ListAliasesRequest & WithNextToken(NextTokenT &&value)
ListAliasesRequest & WithMaxResults(int value)
ListAliasesRequest & WithImageName(ImageNameT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
AWS_SAGEMAKER_API ListAliasesRequest()=default
ListAliasesRequest & WithAlias(AliasT &&value)
virtual const char * GetServiceRequestName() const override
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListAliasesRequest & WithVersion(int value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String