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/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 <aws/ecr/model/DescribeImagesFilter.h>
12#include <aws/ecr/model/ImageIdentifier.h>
13#include <utility>
14
15namespace Aws
16{
17namespace ECR
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_ECR_API DescribeImagesRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "DescribeImages"; }
34
35 AWS_ECR_API Aws::String SerializePayload() const override;
36
38
39
41
46 inline const Aws::String& GetRegistryId() const{ return m_registryId; }
47 inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
48 inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
49 inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
50 inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
51 inline DescribeImagesRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
52 inline DescribeImagesRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
53 inline DescribeImagesRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
55
57
60 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
61 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
62 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
63 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
64 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
65 inline DescribeImagesRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
66 inline DescribeImagesRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
67 inline DescribeImagesRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
69
71
74 inline const Aws::Vector<ImageIdentifier>& GetImageIds() const{ return m_imageIds; }
75 inline bool ImageIdsHasBeenSet() const { return m_imageIdsHasBeenSet; }
76 inline void SetImageIds(const Aws::Vector<ImageIdentifier>& value) { m_imageIdsHasBeenSet = true; m_imageIds = value; }
77 inline void SetImageIds(Aws::Vector<ImageIdentifier>&& value) { m_imageIdsHasBeenSet = true; m_imageIds = std::move(value); }
78 inline DescribeImagesRequest& WithImageIds(const Aws::Vector<ImageIdentifier>& value) { SetImageIds(value); return *this;}
79 inline DescribeImagesRequest& WithImageIds(Aws::Vector<ImageIdentifier>&& value) { SetImageIds(std::move(value)); return *this;}
80 inline DescribeImagesRequest& AddImageIds(const ImageIdentifier& value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(value); return *this; }
81 inline DescribeImagesRequest& AddImageIds(ImageIdentifier&& value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(std::move(value)); return *this; }
83
85
93 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
94 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
95 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
96 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
97 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
98 inline DescribeImagesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
99 inline DescribeImagesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
100 inline DescribeImagesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
102
104
116 inline int GetMaxResults() const{ return m_maxResults; }
117 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
118 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
119 inline DescribeImagesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
121
123
127 inline const DescribeImagesFilter& GetFilter() const{ return m_filter; }
128 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
129 inline void SetFilter(const DescribeImagesFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
130 inline void SetFilter(DescribeImagesFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
131 inline DescribeImagesRequest& WithFilter(const DescribeImagesFilter& value) { SetFilter(value); return *this;}
132 inline DescribeImagesRequest& WithFilter(DescribeImagesFilter&& value) { SetFilter(std::move(value)); return *this;}
134 private:
135
136 Aws::String m_registryId;
137 bool m_registryIdHasBeenSet = false;
138
139 Aws::String m_repositoryName;
140 bool m_repositoryNameHasBeenSet = false;
141
143 bool m_imageIdsHasBeenSet = false;
144
145 Aws::String m_nextToken;
146 bool m_nextTokenHasBeenSet = false;
147
148 int m_maxResults;
149 bool m_maxResultsHasBeenSet = false;
150
151 DescribeImagesFilter m_filter;
152 bool m_filterHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace ECR
157} // namespace Aws
const Aws::String & GetRepositoryName() const
AWS_ECR_API Aws::String SerializePayload() const override
DescribeImagesRequest & WithRepositoryName(const char *value)
DescribeImagesRequest & AddImageIds(const ImageIdentifier &value)
virtual const char * GetServiceRequestName() const override
DescribeImagesRequest & WithRegistryId(Aws::String &&value)
DescribeImagesRequest & WithImageIds(Aws::Vector< ImageIdentifier > &&value)
DescribeImagesRequest & AddImageIds(ImageIdentifier &&value)
DescribeImagesRequest & WithNextToken(Aws::String &&value)
void SetFilter(DescribeImagesFilter &&value)
DescribeImagesRequest & WithFilter(const DescribeImagesFilter &value)
void SetImageIds(const Aws::Vector< ImageIdentifier > &value)
DescribeImagesRequest & WithRepositoryName(Aws::String &&value)
DescribeImagesRequest & WithImageIds(const Aws::Vector< ImageIdentifier > &value)
DescribeImagesRequest & WithMaxResults(int value)
DescribeImagesRequest & WithNextToken(const char *value)
void SetFilter(const DescribeImagesFilter &value)
const DescribeImagesFilter & GetFilter() const
void SetRepositoryName(const Aws::String &value)
void SetNextToken(const Aws::String &value)
DescribeImagesRequest & WithRegistryId(const char *value)
DescribeImagesRequest & WithFilter(DescribeImagesFilter &&value)
DescribeImagesRequest & WithNextToken(const Aws::String &value)
const Aws::Vector< ImageIdentifier > & GetImageIds() const
void SetRegistryId(const Aws::String &value)
DescribeImagesRequest & WithRepositoryName(const Aws::String &value)
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeImagesRequest & WithRegistryId(const Aws::String &value)
void SetImageIds(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