AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DescribeRepositoriesRequest.h
1
6#pragma once
7#include <aws/ecr-public/ECRPublic_EXPORTS.h>
8#include <aws/ecr-public/ECRPublicRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace ECRPublic
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_ECRPUBLIC_API DescribeRepositoriesRequest() = default;
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_ECRPUBLIC_API Aws::String SerializePayload() const override;
34
36
37
39
44 inline const Aws::String& GetRegistryId() const { return m_registryId; }
45 inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
46 template<typename RegistryIdT = Aws::String>
47 void SetRegistryId(RegistryIdT&& value) { m_registryIdHasBeenSet = true; m_registryId = std::forward<RegistryIdT>(value); }
48 template<typename RegistryIdT = Aws::String>
49 DescribeRepositoriesRequest& WithRegistryId(RegistryIdT&& value) { SetRegistryId(std::forward<RegistryIdT>(value)); return *this;}
51
53
57 inline const Aws::Vector<Aws::String>& GetRepositoryNames() const { return m_repositoryNames; }
58 inline bool RepositoryNamesHasBeenSet() const { return m_repositoryNamesHasBeenSet; }
59 template<typename RepositoryNamesT = Aws::Vector<Aws::String>>
60 void SetRepositoryNames(RepositoryNamesT&& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames = std::forward<RepositoryNamesT>(value); }
61 template<typename RepositoryNamesT = Aws::Vector<Aws::String>>
62 DescribeRepositoriesRequest& WithRepositoryNames(RepositoryNamesT&& value) { SetRepositoryNames(std::forward<RepositoryNamesT>(value)); return *this;}
63 template<typename RepositoryNamesT = Aws::String>
64 DescribeRepositoriesRequest& AddRepositoryNames(RepositoryNamesT&& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames.emplace_back(std::forward<RepositoryNamesT>(value)); return *this; }
66
68
79 inline const Aws::String& GetNextToken() const { return m_nextToken; }
80 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
81 template<typename NextTokenT = Aws::String>
82 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
83 template<typename NextTokenT = Aws::String>
84 DescribeRepositoriesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
86
88
100 inline int GetMaxResults() const { return m_maxResults; }
101 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
102 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
103 inline DescribeRepositoriesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
105 private:
106
107 Aws::String m_registryId;
108 bool m_registryIdHasBeenSet = false;
109
110 Aws::Vector<Aws::String> m_repositoryNames;
111 bool m_repositoryNamesHasBeenSet = false;
112
113 Aws::String m_nextToken;
114 bool m_nextTokenHasBeenSet = false;
115
116 int m_maxResults{0};
117 bool m_maxResultsHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace ECRPublic
122} // namespace Aws
DescribeRepositoriesRequest & WithRegistryId(RegistryIdT &&value)
DescribeRepositoriesRequest & AddRepositoryNames(RepositoryNamesT &&value)
virtual const char * GetServiceRequestName() const override
DescribeRepositoriesRequest & WithMaxResults(int value)
AWS_ECRPUBLIC_API Aws::String SerializePayload() const override
AWS_ECRPUBLIC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeRepositoriesRequest & WithRepositoryNames(RepositoryNamesT &&value)
AWS_ECRPUBLIC_API DescribeRepositoriesRequest()=default
DescribeRepositoriesRequest & WithNextToken(NextTokenT &&value)
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