AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeRepositoriesRequest.h
1
6#pragma once
7#include <aws/ecr/ECR_EXPORTS.h>
8#include <aws/ecr/ECRRequest.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 ECR
16{
17namespace 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_ECR_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 inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
47 inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
48 inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
49 inline DescribeRepositoriesRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
50 inline DescribeRepositoriesRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
51 inline DescribeRepositoriesRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
53
55
59 inline const Aws::Vector<Aws::String>& GetRepositoryNames() const{ return m_repositoryNames; }
60 inline bool RepositoryNamesHasBeenSet() const { return m_repositoryNamesHasBeenSet; }
61 inline void SetRepositoryNames(const Aws::Vector<Aws::String>& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames = value; }
62 inline void SetRepositoryNames(Aws::Vector<Aws::String>&& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames = std::move(value); }
65 inline DescribeRepositoriesRequest& AddRepositoryNames(const Aws::String& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames.push_back(value); return *this; }
66 inline DescribeRepositoriesRequest& AddRepositoryNames(Aws::String&& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames.push_back(std::move(value)); return *this; }
67 inline DescribeRepositoriesRequest& AddRepositoryNames(const char* value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames.push_back(value); return *this; }
69
71
82 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
83 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
84 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
85 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
86 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
87 inline DescribeRepositoriesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
88 inline DescribeRepositoriesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
89 inline DescribeRepositoriesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
91
93
105 inline int GetMaxResults() const{ return m_maxResults; }
106 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
107 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
108 inline DescribeRepositoriesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
110 private:
111
112 Aws::String m_registryId;
113 bool m_registryIdHasBeenSet = false;
114
115 Aws::Vector<Aws::String> m_repositoryNames;
116 bool m_repositoryNamesHasBeenSet = false;
117
118 Aws::String m_nextToken;
119 bool m_nextTokenHasBeenSet = false;
120
121 int m_maxResults;
122 bool m_maxResultsHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace ECR
127} // namespace Aws
DescribeRepositoriesRequest & WithRegistryId(const Aws::String &value)
DescribeRepositoriesRequest & AddRepositoryNames(const char *value)
DescribeRepositoriesRequest & WithNextToken(const char *value)
DescribeRepositoriesRequest & WithRegistryId(Aws::String &&value)
void SetRepositoryNames(const Aws::Vector< Aws::String > &value)
AWS_ECR_API Aws::String SerializePayload() const override
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetRepositoryNames(Aws::Vector< Aws::String > &&value)
DescribeRepositoriesRequest & WithRegistryId(const char *value)
DescribeRepositoriesRequest & WithRepositoryNames(const Aws::Vector< Aws::String > &value)
DescribeRepositoriesRequest & AddRepositoryNames(const Aws::String &value)
DescribeRepositoriesRequest & WithMaxResults(int value)
DescribeRepositoriesRequest & WithRepositoryNames(Aws::Vector< Aws::String > &&value)
DescribeRepositoriesRequest & WithNextToken(Aws::String &&value)
DescribeRepositoriesRequest & WithNextToken(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
DescribeRepositoriesRequest & AddRepositoryNames(Aws::String &&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