AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeImagesRequest.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 <aws/ecr-public/model/ImageIdentifier.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ECRPublic
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_ECRPUBLIC_API DescribeImagesRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "DescribeImages"; }
33
34 AWS_ECRPUBLIC_API Aws::String SerializePayload() const override;
35
37
38
40
45 inline const Aws::String& GetRegistryId() const{ return m_registryId; }
46 inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
47 inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
48 inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
49 inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
50 inline DescribeImagesRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
51 inline DescribeImagesRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
52 inline DescribeImagesRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
54
56
59 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
60 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
61 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
62 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
63 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
64 inline DescribeImagesRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
65 inline DescribeImagesRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
66 inline DescribeImagesRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
68
70
73 inline const Aws::Vector<ImageIdentifier>& GetImageIds() const{ return m_imageIds; }
74 inline bool ImageIdsHasBeenSet() const { return m_imageIdsHasBeenSet; }
75 inline void SetImageIds(const Aws::Vector<ImageIdentifier>& value) { m_imageIdsHasBeenSet = true; m_imageIds = value; }
76 inline void SetImageIds(Aws::Vector<ImageIdentifier>&& value) { m_imageIdsHasBeenSet = true; m_imageIds = std::move(value); }
77 inline DescribeImagesRequest& WithImageIds(const Aws::Vector<ImageIdentifier>& value) { SetImageIds(value); return *this;}
78 inline DescribeImagesRequest& WithImageIds(Aws::Vector<ImageIdentifier>&& value) { SetImageIds(std::move(value)); return *this;}
79 inline DescribeImagesRequest& AddImageIds(const ImageIdentifier& value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(value); return *this; }
80 inline DescribeImagesRequest& AddImageIds(ImageIdentifier&& value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(std::move(value)); return *this; }
82
84
92 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
93 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
94 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
95 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
96 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
97 inline DescribeImagesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
98 inline DescribeImagesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
99 inline DescribeImagesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
101
103
115 inline int GetMaxResults() const{ return m_maxResults; }
116 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
117 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
118 inline DescribeImagesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
120 private:
121
122 Aws::String m_registryId;
123 bool m_registryIdHasBeenSet = false;
124
125 Aws::String m_repositoryName;
126 bool m_repositoryNameHasBeenSet = false;
127
129 bool m_imageIdsHasBeenSet = false;
130
131 Aws::String m_nextToken;
132 bool m_nextTokenHasBeenSet = false;
133
134 int m_maxResults;
135 bool m_maxResultsHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace ECRPublic
140} // namespace Aws
DescribeImagesRequest & WithImageIds(const Aws::Vector< ImageIdentifier > &value)
DescribeImagesRequest & AddImageIds(ImageIdentifier &&value)
DescribeImagesRequest & WithNextToken(const Aws::String &value)
void SetImageIds(Aws::Vector< ImageIdentifier > &&value)
AWS_ECRPUBLIC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< ImageIdentifier > & GetImageIds() const
DescribeImagesRequest & WithRepositoryName(Aws::String &&value)
DescribeImagesRequest & WithRepositoryName(const Aws::String &value)
DescribeImagesRequest & WithNextToken(const char *value)
DescribeImagesRequest & WithRegistryId(const char *value)
DescribeImagesRequest & WithRepositoryName(const char *value)
DescribeImagesRequest & WithRegistryId(Aws::String &&value)
DescribeImagesRequest & WithMaxResults(int value)
DescribeImagesRequest & WithRegistryId(const Aws::String &value)
AWS_ECRPUBLIC_API Aws::String SerializePayload() const override
void SetImageIds(const Aws::Vector< ImageIdentifier > &value)
virtual const char * GetServiceRequestName() const override
DescribeImagesRequest & WithNextToken(Aws::String &&value)
DescribeImagesRequest & AddImageIds(const ImageIdentifier &value)
DescribeImagesRequest & WithImageIds(Aws::Vector< ImageIdentifier > &&value)
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