AWS SDK for C++

AWS SDK for C++ Version 1.11.753

Loading...
Searching...
No Matches
DescribeRepositoriesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ecr/ECRRequest.h>
10#include <aws/ecr/ECR_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace ECR {
16namespace Model {
17
21 public:
22 AWS_ECR_API DescribeRepositoriesRequest() = 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 "DescribeRepositories"; }
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>
49 SetRegistryId(std::forward<RegistryIdT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::Vector<Aws::String>& GetRepositoryNames() const { return m_repositoryNames; }
60 inline bool RepositoryNamesHasBeenSet() const { return m_repositoryNamesHasBeenSet; }
61 template <typename RepositoryNamesT = Aws::Vector<Aws::String>>
62 void SetRepositoryNames(RepositoryNamesT&& value) {
63 m_repositoryNamesHasBeenSet = true;
64 m_repositoryNames = std::forward<RepositoryNamesT>(value);
65 }
66 template <typename RepositoryNamesT = Aws::Vector<Aws::String>>
68 SetRepositoryNames(std::forward<RepositoryNamesT>(value));
69 return *this;
70 }
71 template <typename RepositoryNamesT = Aws::String>
73 m_repositoryNamesHasBeenSet = true;
74 m_repositoryNames.emplace_back(std::forward<RepositoryNamesT>(value));
75 return *this;
76 }
78
80
91 inline const Aws::String& GetNextToken() const { return m_nextToken; }
92 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
93 template <typename NextTokenT = Aws::String>
94 void SetNextToken(NextTokenT&& value) {
95 m_nextTokenHasBeenSet = true;
96 m_nextToken = std::forward<NextTokenT>(value);
97 }
98 template <typename NextTokenT = Aws::String>
100 SetNextToken(std::forward<NextTokenT>(value));
101 return *this;
102 }
104
106
118 inline int GetMaxResults() const { return m_maxResults; }
119 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
120 inline void SetMaxResults(int value) {
121 m_maxResultsHasBeenSet = true;
122 m_maxResults = value;
123 }
125 SetMaxResults(value);
126 return *this;
127 }
129 private:
130 Aws::String m_registryId;
131
132 Aws::Vector<Aws::String> m_repositoryNames;
133
134 Aws::String m_nextToken;
135
136 int m_maxResults{0};
137 bool m_registryIdHasBeenSet = false;
138 bool m_repositoryNamesHasBeenSet = false;
139 bool m_nextTokenHasBeenSet = false;
140 bool m_maxResultsHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace ECR
145} // namespace Aws
AWS_ECR_API Aws::String SerializePayload() const override
DescribeRepositoriesRequest & AddRepositoryNames(RepositoryNamesT &&value)
AWS_ECR_API DescribeRepositoriesRequest()=default
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeRepositoriesRequest & WithNextToken(NextTokenT &&value)
DescribeRepositoriesRequest & WithRepositoryNames(RepositoryNamesT &&value)
DescribeRepositoriesRequest & WithRegistryId(RegistryIdT &&value)
DescribeRepositoriesRequest & WithMaxResults(int value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetRepositoryNames() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector