AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
BatchDeleteImageRequest.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/ImageIdentifier.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ECR
17{
18namespace Model
19{
20
29 {
30 public:
31 AWS_ECR_API BatchDeleteImageRequest() = default;
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_ECR_API Aws::String SerializePayload() const override;
40
42
43
45
50 inline const Aws::String& GetRegistryId() const { return m_registryId; }
51 inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
52 template<typename RegistryIdT = Aws::String>
53 void SetRegistryId(RegistryIdT&& value) { m_registryIdHasBeenSet = true; m_registryId = std::forward<RegistryIdT>(value); }
54 template<typename RegistryIdT = Aws::String>
55 BatchDeleteImageRequest& WithRegistryId(RegistryIdT&& value) { SetRegistryId(std::forward<RegistryIdT>(value)); return *this;}
57
59
62 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
63 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
64 template<typename RepositoryNameT = Aws::String>
65 void SetRepositoryName(RepositoryNameT&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::forward<RepositoryNameT>(value); }
66 template<typename RepositoryNameT = Aws::String>
67 BatchDeleteImageRequest& WithRepositoryName(RepositoryNameT&& value) { SetRepositoryName(std::forward<RepositoryNameT>(value)); return *this;}
69
71
76 inline const Aws::Vector<ImageIdentifier>& GetImageIds() const { return m_imageIds; }
77 inline bool ImageIdsHasBeenSet() const { return m_imageIdsHasBeenSet; }
78 template<typename ImageIdsT = Aws::Vector<ImageIdentifier>>
79 void SetImageIds(ImageIdsT&& value) { m_imageIdsHasBeenSet = true; m_imageIds = std::forward<ImageIdsT>(value); }
80 template<typename ImageIdsT = Aws::Vector<ImageIdentifier>>
81 BatchDeleteImageRequest& WithImageIds(ImageIdsT&& value) { SetImageIds(std::forward<ImageIdsT>(value)); return *this;}
82 template<typename ImageIdsT = ImageIdentifier>
83 BatchDeleteImageRequest& AddImageIds(ImageIdsT&& value) { m_imageIdsHasBeenSet = true; m_imageIds.emplace_back(std::forward<ImageIdsT>(value)); return *this; }
85 private:
86
87 Aws::String m_registryId;
88 bool m_registryIdHasBeenSet = false;
89
90 Aws::String m_repositoryName;
91 bool m_repositoryNameHasBeenSet = false;
92
94 bool m_imageIdsHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace ECR
99} // namespace Aws
const Aws::Vector< ImageIdentifier > & GetImageIds() const
virtual const char * GetServiceRequestName() const override
void SetRepositoryName(RepositoryNameT &&value)
AWS_ECR_API BatchDeleteImageRequest()=default
BatchDeleteImageRequest & WithRepositoryName(RepositoryNameT &&value)
AWS_ECR_API Aws::String SerializePayload() const override
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
BatchDeleteImageRequest & WithRegistryId(RegistryIdT &&value)
BatchDeleteImageRequest & AddImageIds(ImageIdsT &&value)
BatchDeleteImageRequest & WithImageIds(ImageIdsT &&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