AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
53 inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
54 inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
55 inline BatchDeleteImageRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
56 inline BatchDeleteImageRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
57 inline BatchDeleteImageRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
59
61
64 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
65 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
66 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
67 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
68 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
69 inline BatchDeleteImageRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
70 inline BatchDeleteImageRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
71 inline BatchDeleteImageRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
73
75
80 inline const Aws::Vector<ImageIdentifier>& GetImageIds() const{ return m_imageIds; }
81 inline bool ImageIdsHasBeenSet() const { return m_imageIdsHasBeenSet; }
82 inline void SetImageIds(const Aws::Vector<ImageIdentifier>& value) { m_imageIdsHasBeenSet = true; m_imageIds = value; }
83 inline void SetImageIds(Aws::Vector<ImageIdentifier>&& value) { m_imageIdsHasBeenSet = true; m_imageIds = std::move(value); }
85 inline BatchDeleteImageRequest& WithImageIds(Aws::Vector<ImageIdentifier>&& value) { SetImageIds(std::move(value)); return *this;}
86 inline BatchDeleteImageRequest& AddImageIds(const ImageIdentifier& value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(value); return *this; }
87 inline BatchDeleteImageRequest& AddImageIds(ImageIdentifier&& value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(std::move(value)); return *this; }
89 private:
90
91 Aws::String m_registryId;
92 bool m_registryIdHasBeenSet = false;
93
94 Aws::String m_repositoryName;
95 bool m_repositoryNameHasBeenSet = false;
96
98 bool m_imageIdsHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace ECR
103} // namespace Aws
BatchDeleteImageRequest & AddImageIds(ImageIdentifier &&value)
void SetRepositoryName(const Aws::String &value)
BatchDeleteImageRequest & AddImageIds(const ImageIdentifier &value)
BatchDeleteImageRequest & WithRepositoryName(const char *value)
const Aws::Vector< ImageIdentifier > & GetImageIds() const
BatchDeleteImageRequest & WithRegistryId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
BatchDeleteImageRequest & WithRegistryId(Aws::String &&value)
BatchDeleteImageRequest & WithRepositoryName(Aws::String &&value)
AWS_ECR_API Aws::String SerializePayload() const override
BatchDeleteImageRequest & WithImageIds(const Aws::Vector< ImageIdentifier > &value)
BatchDeleteImageRequest & WithImageIds(Aws::Vector< ImageIdentifier > &&value)
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
BatchDeleteImageRequest & WithRepositoryName(const Aws::String &value)
BatchDeleteImageRequest & WithRegistryId(const char *value)
void SetImageIds(const Aws::Vector< ImageIdentifier > &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