AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ListImagesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecr/ECRRequest.h>
9#include <aws/ecr/ECR_EXPORTS.h>
10#include <aws/ecr/model/ListImagesFilter.h>
11
12#include <utility>
13
14namespace Aws {
15namespace ECR {
16namespace Model {
17
21 public:
22 AWS_ECR_API ListImagesRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "ListImages"; }
29
30 AWS_ECR_API Aws::String SerializePayload() const override;
31
33
35
40 inline const Aws::String& GetRegistryId() const { return m_registryId; }
41 inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
42 template <typename RegistryIdT = Aws::String>
43 void SetRegistryId(RegistryIdT&& value) {
44 m_registryIdHasBeenSet = true;
45 m_registryId = std::forward<RegistryIdT>(value);
46 }
47 template <typename RegistryIdT = Aws::String>
48 ListImagesRequest& WithRegistryId(RegistryIdT&& value) {
49 SetRegistryId(std::forward<RegistryIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
59 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
60 template <typename RepositoryNameT = Aws::String>
61 void SetRepositoryName(RepositoryNameT&& value) {
62 m_repositoryNameHasBeenSet = true;
63 m_repositoryName = std::forward<RepositoryNameT>(value);
64 }
65 template <typename RepositoryNameT = Aws::String>
66 ListImagesRequest& WithRepositoryName(RepositoryNameT&& value) {
67 SetRepositoryName(std::forward<RepositoryNameT>(value));
68 return *this;
69 }
71
73
83 inline const Aws::String& GetNextToken() const { return m_nextToken; }
84 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
85 template <typename NextTokenT = Aws::String>
86 void SetNextToken(NextTokenT&& value) {
87 m_nextTokenHasBeenSet = true;
88 m_nextToken = std::forward<NextTokenT>(value);
89 }
90 template <typename NextTokenT = Aws::String>
91 ListImagesRequest& WithNextToken(NextTokenT&& value) {
92 SetNextToken(std::forward<NextTokenT>(value));
93 return *this;
94 }
96
98
108 inline int GetMaxResults() const { return m_maxResults; }
109 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
110 inline void SetMaxResults(int value) {
111 m_maxResultsHasBeenSet = true;
112 m_maxResults = value;
113 }
115 SetMaxResults(value);
116 return *this;
117 }
119
121
125 inline const ListImagesFilter& GetFilter() const { return m_filter; }
126 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
127 template <typename FilterT = ListImagesFilter>
128 void SetFilter(FilterT&& value) {
129 m_filterHasBeenSet = true;
130 m_filter = std::forward<FilterT>(value);
131 }
132 template <typename FilterT = ListImagesFilter>
133 ListImagesRequest& WithFilter(FilterT&& value) {
134 SetFilter(std::forward<FilterT>(value));
135 return *this;
136 }
138 private:
139 Aws::String m_registryId;
140
141 Aws::String m_repositoryName;
142
143 Aws::String m_nextToken;
144
145 int m_maxResults{0};
146
147 ListImagesFilter m_filter;
148 bool m_registryIdHasBeenSet = false;
149 bool m_repositoryNameHasBeenSet = false;
150 bool m_nextTokenHasBeenSet = false;
151 bool m_maxResultsHasBeenSet = false;
152 bool m_filterHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace ECR
157} // namespace Aws
AWS_ECR_API Aws::String SerializePayload() const override
void SetNextToken(NextTokenT &&value)
ListImagesRequest & WithMaxResults(int value)
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListImagesRequest & WithRepositoryName(RepositoryNameT &&value)
void SetRegistryId(RegistryIdT &&value)
void SetRepositoryName(RepositoryNameT &&value)
ListImagesRequest & WithNextToken(NextTokenT &&value)
const Aws::String & GetRegistryId() const
ListImagesRequest & WithFilter(FilterT &&value)
const Aws::String & GetRepositoryName() const
const Aws::String & GetNextToken() const
ListImagesRequest & WithRegistryId(RegistryIdT &&value)
virtual const char * GetServiceRequestName() const override
const ListImagesFilter & GetFilter() const
AWS_ECR_API ListImagesRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String