AWS SDK for C++  1.9.66
AWS SDK for C++
BatchDeleteImageRequest.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>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ECR
17 {
18 namespace Model
19 {
20 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "BatchDeleteImage"; }
38 
39  Aws::String SerializePayload() const override;
40 
42 
43 
48  inline const Aws::String& GetRegistryId() const{ return m_registryId; }
49 
54  inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
55 
60  inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
61 
66  inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
67 
72  inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
73 
78  inline BatchDeleteImageRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
79 
84  inline BatchDeleteImageRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
85 
90  inline BatchDeleteImageRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
91 
92 
96  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
97 
101  inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
102 
106  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
107 
111  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
112 
116  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
117 
121  inline BatchDeleteImageRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
122 
126  inline BatchDeleteImageRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
127 
131  inline BatchDeleteImageRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
132 
133 
139  inline const Aws::Vector<ImageIdentifier>& GetImageIds() const{ return m_imageIds; }
140 
146  inline bool ImageIdsHasBeenSet() const { return m_imageIdsHasBeenSet; }
147 
153  inline void SetImageIds(const Aws::Vector<ImageIdentifier>& value) { m_imageIdsHasBeenSet = true; m_imageIds = value; }
154 
160  inline void SetImageIds(Aws::Vector<ImageIdentifier>&& value) { m_imageIdsHasBeenSet = true; m_imageIds = std::move(value); }
161 
167  inline BatchDeleteImageRequest& WithImageIds(const Aws::Vector<ImageIdentifier>& value) { SetImageIds(value); return *this;}
168 
174  inline BatchDeleteImageRequest& WithImageIds(Aws::Vector<ImageIdentifier>&& value) { SetImageIds(std::move(value)); return *this;}
175 
181  inline BatchDeleteImageRequest& AddImageIds(const ImageIdentifier& value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(value); return *this; }
182 
188  inline BatchDeleteImageRequest& AddImageIds(ImageIdentifier&& value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(std::move(value)); return *this; }
189 
190  private:
191 
192  Aws::String m_registryId;
193  bool m_registryIdHasBeenSet;
194 
195  Aws::String m_repositoryName;
196  bool m_repositoryNameHasBeenSet;
197 
198  Aws::Vector<ImageIdentifier> m_imageIds;
199  bool m_imageIdsHasBeenSet;
200  };
201 
202 } // namespace Model
203 } // namespace ECR
204 } // namespace Aws
Aws::ECR::Model::BatchDeleteImageRequest::BatchDeleteImageRequest
BatchDeleteImageRequest()
Aws::ECR::Model::BatchDeleteImageRequest::WithRepositoryName
BatchDeleteImageRequest & WithRepositoryName(Aws::String &&value)
Definition: BatchDeleteImageRequest.h:126
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ECR::Model::BatchDeleteImageRequest::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: BatchDeleteImageRequest.h:96
Aws::ECR::Model::BatchDeleteImageRequest::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: BatchDeleteImageRequest.h:111
ImageIdentifier.h
Aws::ECR::Model::BatchDeleteImageRequest::GetImageIds
const Aws::Vector< ImageIdentifier > & GetImageIds() const
Definition: BatchDeleteImageRequest.h:139
Aws::ECR::Model::BatchDeleteImageRequest::WithRegistryId
BatchDeleteImageRequest & WithRegistryId(const char *value)
Definition: BatchDeleteImageRequest.h:90
Aws::ECR::Model::BatchDeleteImageRequest::SetRegistryId
void SetRegistryId(Aws::String &&value)
Definition: BatchDeleteImageRequest.h:66
Aws::ECR::Model::BatchDeleteImageRequest::SetRegistryId
void SetRegistryId(const char *value)
Definition: BatchDeleteImageRequest.h:72
Aws::ECR::Model::BatchDeleteImageRequest::SetRegistryId
void SetRegistryId(const Aws::String &value)
Definition: BatchDeleteImageRequest.h:60
Aws::ECR::Model::BatchDeleteImageRequest::SetImageIds
void SetImageIds(const Aws::Vector< ImageIdentifier > &value)
Definition: BatchDeleteImageRequest.h:153
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ECR::Model::BatchDeleteImageRequest
Definition: BatchDeleteImageRequest.h:29
Aws::ECR::Model::BatchDeleteImageRequest::WithRegistryId
BatchDeleteImageRequest & WithRegistryId(Aws::String &&value)
Definition: BatchDeleteImageRequest.h:84
Aws::ECR::Model::BatchDeleteImageRequest::AddImageIds
BatchDeleteImageRequest & AddImageIds(ImageIdentifier &&value)
Definition: BatchDeleteImageRequest.h:188
Aws::ECR::Model::BatchDeleteImageRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWSVector.h
Aws::ECR::Model::BatchDeleteImageRequest::AddImageIds
BatchDeleteImageRequest & AddImageIds(const ImageIdentifier &value)
Definition: BatchDeleteImageRequest.h:181
Aws::ECR::Model::BatchDeleteImageRequest::GetRegistryId
const Aws::String & GetRegistryId() const
Definition: BatchDeleteImageRequest.h:48
Aws::imagebuilder::Model::ContainerRepositoryService::NOT_SET
@ NOT_SET
Aws::ECR::Model::BatchDeleteImageRequest::WithImageIds
BatchDeleteImageRequest & WithImageIds(Aws::Vector< ImageIdentifier > &&value)
Definition: BatchDeleteImageRequest.h:174
Aws::ECR::Model::BatchDeleteImageRequest::WithImageIds
BatchDeleteImageRequest & WithImageIds(const Aws::Vector< ImageIdentifier > &value)
Definition: BatchDeleteImageRequest.h:167
Aws::ECR::Model::BatchDeleteImageRequest::WithRegistryId
BatchDeleteImageRequest & WithRegistryId(const Aws::String &value)
Definition: BatchDeleteImageRequest.h:78
Aws::ECR::Model::BatchDeleteImageRequest::WithRepositoryName
BatchDeleteImageRequest & WithRepositoryName(const Aws::String &value)
Definition: BatchDeleteImageRequest.h:121
ECR_EXPORTS.h
AWSString.h
Aws::ECR::Model::BatchDeleteImageRequest::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: BatchDeleteImageRequest.h:106
AWS_ECR_API
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:28
ECRRequest.h
Aws::ECR::Model::BatchDeleteImageRequest::ImageIdsHasBeenSet
bool ImageIdsHasBeenSet() const
Definition: BatchDeleteImageRequest.h:146
Aws::ECR::Model::ImageIdentifier
Definition: ImageIdentifier.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::ECR::Model::BatchDeleteImageRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: BatchDeleteImageRequest.h:37
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECR::Model::BatchDeleteImageRequest::RegistryIdHasBeenSet
bool RegistryIdHasBeenSet() const
Definition: BatchDeleteImageRequest.h:54
Aws::ECR::Model::BatchDeleteImageRequest::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: BatchDeleteImageRequest.h:116
Aws::ECR::Model::BatchDeleteImageRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECR::Model::BatchDeleteImageRequest::SetImageIds
void SetImageIds(Aws::Vector< ImageIdentifier > &&value)
Definition: BatchDeleteImageRequest.h:160
Aws::ECR::Model::BatchDeleteImageRequest::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: BatchDeleteImageRequest.h:101
Aws::ECR::Model::BatchDeleteImageRequest::WithRepositoryName
BatchDeleteImageRequest & WithRepositoryName(const char *value)
Definition: BatchDeleteImageRequest.h:131
Aws::ECR::ECRRequest
Definition: ECRRequest.h:17