AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ListAliasesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace SageMaker {
15namespace Model {
16
20 public:
21 AWS_SAGEMAKER_API ListAliasesRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "ListAliases"; }
28
29 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
30
32
34
37 inline const Aws::String& GetImageName() const { return m_imageName; }
38 inline bool ImageNameHasBeenSet() const { return m_imageNameHasBeenSet; }
39 template <typename ImageNameT = Aws::String>
40 void SetImageName(ImageNameT&& value) {
41 m_imageNameHasBeenSet = true;
42 m_imageName = std::forward<ImageNameT>(value);
43 }
44 template <typename ImageNameT = Aws::String>
45 ListAliasesRequest& WithImageName(ImageNameT&& value) {
46 SetImageName(std::forward<ImageNameT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetAlias() const { return m_alias; }
56 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
57 template <typename AliasT = Aws::String>
58 void SetAlias(AliasT&& value) {
59 m_aliasHasBeenSet = true;
60 m_alias = std::forward<AliasT>(value);
61 }
62 template <typename AliasT = Aws::String>
63 ListAliasesRequest& WithAlias(AliasT&& value) {
64 SetAlias(std::forward<AliasT>(value));
65 return *this;
66 }
68
70
74 inline int GetVersion() const { return m_version; }
75 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
76 inline void SetVersion(int value) {
77 m_versionHasBeenSet = true;
78 m_version = value;
79 }
80 inline ListAliasesRequest& WithVersion(int value) {
81 SetVersion(value);
82 return *this;
83 }
85
87
90 inline int GetMaxResults() const { return m_maxResults; }
91 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
92 inline void SetMaxResults(int value) {
93 m_maxResultsHasBeenSet = true;
94 m_maxResults = value;
95 }
97 SetMaxResults(value);
98 return *this;
99 }
101
103
107 inline const Aws::String& GetNextToken() const { return m_nextToken; }
108 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
109 template <typename NextTokenT = Aws::String>
110 void SetNextToken(NextTokenT&& value) {
111 m_nextTokenHasBeenSet = true;
112 m_nextToken = std::forward<NextTokenT>(value);
113 }
114 template <typename NextTokenT = Aws::String>
115 ListAliasesRequest& WithNextToken(NextTokenT&& value) {
116 SetNextToken(std::forward<NextTokenT>(value));
117 return *this;
118 }
120 private:
121 Aws::String m_imageName;
122
123 Aws::String m_alias;
124
125 int m_version{0};
126
127 int m_maxResults{0};
128
129 Aws::String m_nextToken;
130 bool m_imageNameHasBeenSet = false;
131 bool m_aliasHasBeenSet = false;
132 bool m_versionHasBeenSet = false;
133 bool m_maxResultsHasBeenSet = false;
134 bool m_nextTokenHasBeenSet = false;
135};
136
137} // namespace Model
138} // namespace SageMaker
139} // 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