AWS SDK for C++  1.9.161
AWS SDK for C++
DescribeRepositoriesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecr/ECR_EXPORTS.h>
8 #include <aws/ecr/ECRRequest.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace ECR
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "DescribeRepositories"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
43  inline const Aws::String& GetRegistryId() const{ return m_registryId; }
44 
50  inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
51 
57  inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
58 
64  inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
65 
71  inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
72 
78  inline DescribeRepositoriesRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
79 
85  inline DescribeRepositoriesRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
86 
92  inline DescribeRepositoriesRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
93 
94 
99  inline const Aws::Vector<Aws::String>& GetRepositoryNames() const{ return m_repositoryNames; }
100 
105  inline bool RepositoryNamesHasBeenSet() const { return m_repositoryNamesHasBeenSet; }
106 
111  inline void SetRepositoryNames(const Aws::Vector<Aws::String>& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames = value; }
112 
117  inline void SetRepositoryNames(Aws::Vector<Aws::String>&& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames = std::move(value); }
118 
123  inline DescribeRepositoriesRequest& WithRepositoryNames(const Aws::Vector<Aws::String>& value) { SetRepositoryNames(value); return *this;}
124 
129  inline DescribeRepositoriesRequest& WithRepositoryNames(Aws::Vector<Aws::String>&& value) { SetRepositoryNames(std::move(value)); return *this;}
130 
135  inline DescribeRepositoriesRequest& AddRepositoryNames(const Aws::String& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames.push_back(value); return *this; }
136 
141  inline DescribeRepositoriesRequest& AddRepositoryNames(Aws::String&& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames.push_back(std::move(value)); return *this; }
142 
147  inline DescribeRepositoriesRequest& AddRepositoryNames(const char* value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames.push_back(value); return *this; }
148 
149 
161  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
162 
174  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
175 
187  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
188 
200  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
201 
213  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
214 
226  inline DescribeRepositoriesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
227 
239  inline DescribeRepositoriesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
240 
252  inline DescribeRepositoriesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
253 
254 
267  inline int GetMaxResults() const{ return m_maxResults; }
268 
281  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
282 
295  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
296 
309  inline DescribeRepositoriesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
310 
311  private:
312 
313  Aws::String m_registryId;
314  bool m_registryIdHasBeenSet;
315 
316  Aws::Vector<Aws::String> m_repositoryNames;
317  bool m_repositoryNamesHasBeenSet;
318 
319  Aws::String m_nextToken;
320  bool m_nextTokenHasBeenSet;
321 
322  int m_maxResults;
323  bool m_maxResultsHasBeenSet;
324  };
325 
326 } // namespace Model
327 } // namespace ECR
328 } // namespace Aws
Aws::ECR::Model::DescribeRepositoriesRequest::WithMaxResults
DescribeRepositoriesRequest & WithMaxResults(int value)
Definition: DescribeRepositoriesRequest.h:309
Aws::ECR::Model::DescribeRepositoriesRequest::SetRegistryId
void SetRegistryId(const Aws::String &value)
Definition: DescribeRepositoriesRequest.h:57
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ECR::Model::DescribeRepositoriesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECR::Model::DescribeRepositoriesRequest::AddRepositoryNames
DescribeRepositoriesRequest & AddRepositoryNames(Aws::String &&value)
Definition: DescribeRepositoriesRequest.h:141
Aws::ECR::Model::DescribeRepositoriesRequest
Definition: DescribeRepositoriesRequest.h:23
Aws::ECR::Model::DescribeRepositoriesRequest::RegistryIdHasBeenSet
bool RegistryIdHasBeenSet() const
Definition: DescribeRepositoriesRequest.h:50
Aws::ECR::Model::DescribeRepositoriesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeRepositoriesRequest.h:31
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ECR::Model::DescribeRepositoriesRequest::DescribeRepositoriesRequest
DescribeRepositoriesRequest()
Aws::ECR::Model::DescribeRepositoriesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeRepositoriesRequest.h:281
Aws::ECR::Model::DescribeRepositoriesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeRepositoriesRequest.h:187
AWSVector.h
Aws::ECR::Model::DescribeRepositoriesRequest::WithNextToken
DescribeRepositoriesRequest & WithNextToken(Aws::String &&value)
Definition: DescribeRepositoriesRequest.h:239
Aws::ECR::Model::DescribeRepositoriesRequest::SetRegistryId
void SetRegistryId(const char *value)
Definition: DescribeRepositoriesRequest.h:71
Aws::imagebuilder::Model::ContainerRepositoryService::NOT_SET
@ NOT_SET
Aws::ECR::Model::DescribeRepositoriesRequest::SetRepositoryNames
void SetRepositoryNames(const Aws::Vector< Aws::String > &value)
Definition: DescribeRepositoriesRequest.h:111
Aws::ECR::Model::DescribeRepositoriesRequest::AddRepositoryNames
DescribeRepositoriesRequest & AddRepositoryNames(const Aws::String &value)
Definition: DescribeRepositoriesRequest.h:135
Aws::ECR::Model::DescribeRepositoriesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ECR::Model::DescribeRepositoriesRequest::AddRepositoryNames
DescribeRepositoriesRequest & AddRepositoryNames(const char *value)
Definition: DescribeRepositoriesRequest.h:147
Aws::ECR::Model::DescribeRepositoriesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeRepositoriesRequest.h:174
ECR_EXPORTS.h
Aws::ECR::Model::DescribeRepositoriesRequest::SetRepositoryNames
void SetRepositoryNames(Aws::Vector< Aws::String > &&value)
Definition: DescribeRepositoriesRequest.h:117
AWSString.h
Aws::ECR::Model::DescribeRepositoriesRequest::WithRegistryId
DescribeRepositoriesRequest & WithRegistryId(const char *value)
Definition: DescribeRepositoriesRequest.h:92
AWS_ECR_API
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:28
ECRRequest.h
Aws::ECR::Model::DescribeRepositoriesRequest::WithRepositoryNames
DescribeRepositoriesRequest & WithRepositoryNames(const Aws::Vector< Aws::String > &value)
Definition: DescribeRepositoriesRequest.h:123
Aws::ECR::Model::DescribeRepositoriesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeRepositoriesRequest.h:295
Aws::ECR::Model::DescribeRepositoriesRequest::WithNextToken
DescribeRepositoriesRequest & WithNextToken(const Aws::String &value)
Definition: DescribeRepositoriesRequest.h:226
Aws::ECR::Model::DescribeRepositoriesRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeRepositoriesRequest.h:267
Aws::ECR::Model::DescribeRepositoriesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeRepositoriesRequest.h:161
Aws
Definition: AccessManagementClient.h:15
Aws::ECR::Model::DescribeRepositoriesRequest::GetRegistryId
const Aws::String & GetRegistryId() const
Definition: DescribeRepositoriesRequest.h:43
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECR::Model::DescribeRepositoriesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeRepositoriesRequest.h:200
Aws::ECR::Model::DescribeRepositoriesRequest::RepositoryNamesHasBeenSet
bool RepositoryNamesHasBeenSet() const
Definition: DescribeRepositoriesRequest.h:105
Aws::ECR::Model::DescribeRepositoriesRequest::GetRepositoryNames
const Aws::Vector< Aws::String > & GetRepositoryNames() const
Definition: DescribeRepositoriesRequest.h:99
Aws::ECR::Model::DescribeRepositoriesRequest::SetRegistryId
void SetRegistryId(Aws::String &&value)
Definition: DescribeRepositoriesRequest.h:64
Aws::ECR::Model::DescribeRepositoriesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeRepositoriesRequest.h:213
Aws::ECR::Model::DescribeRepositoriesRequest::WithRegistryId
DescribeRepositoriesRequest & WithRegistryId(const Aws::String &value)
Definition: DescribeRepositoriesRequest.h:78
Aws::ECR::ECRRequest
Definition: ECRRequest.h:17
Aws::ECR::Model::DescribeRepositoriesRequest::WithNextToken
DescribeRepositoriesRequest & WithNextToken(const char *value)
Definition: DescribeRepositoriesRequest.h:252
Aws::ECR::Model::DescribeRepositoriesRequest::WithRepositoryNames
DescribeRepositoriesRequest & WithRepositoryNames(Aws::Vector< Aws::String > &&value)
Definition: DescribeRepositoriesRequest.h:129
Aws::ECR::Model::DescribeRepositoriesRequest::WithRegistryId
DescribeRepositoriesRequest & WithRegistryId(Aws::String &&value)
Definition: DescribeRepositoriesRequest.h:85