AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchGetImageRequest.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
24 {
25 public:
26 AWS_ECR_API BatchGetImageRequest();
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 "BatchGetImage"; }
33
34 AWS_ECR_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 BatchGetImageRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
51 inline BatchGetImageRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
52 inline BatchGetImageRequest& 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 BatchGetImageRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
65 inline BatchGetImageRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
66 inline BatchGetImageRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
68
70
75 inline const Aws::Vector<ImageIdentifier>& GetImageIds() const{ return m_imageIds; }
76 inline bool ImageIdsHasBeenSet() const { return m_imageIdsHasBeenSet; }
77 inline void SetImageIds(const Aws::Vector<ImageIdentifier>& value) { m_imageIdsHasBeenSet = true; m_imageIds = value; }
78 inline void SetImageIds(Aws::Vector<ImageIdentifier>&& value) { m_imageIdsHasBeenSet = true; m_imageIds = std::move(value); }
79 inline BatchGetImageRequest& WithImageIds(const Aws::Vector<ImageIdentifier>& value) { SetImageIds(value); return *this;}
80 inline BatchGetImageRequest& WithImageIds(Aws::Vector<ImageIdentifier>&& value) { SetImageIds(std::move(value)); return *this;}
81 inline BatchGetImageRequest& AddImageIds(const ImageIdentifier& value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(value); return *this; }
82 inline BatchGetImageRequest& AddImageIds(ImageIdentifier&& value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(std::move(value)); return *this; }
84
86
92 inline const Aws::Vector<Aws::String>& GetAcceptedMediaTypes() const{ return m_acceptedMediaTypes; }
93 inline bool AcceptedMediaTypesHasBeenSet() const { return m_acceptedMediaTypesHasBeenSet; }
94 inline void SetAcceptedMediaTypes(const Aws::Vector<Aws::String>& value) { m_acceptedMediaTypesHasBeenSet = true; m_acceptedMediaTypes = value; }
95 inline void SetAcceptedMediaTypes(Aws::Vector<Aws::String>&& value) { m_acceptedMediaTypesHasBeenSet = true; m_acceptedMediaTypes = std::move(value); }
98 inline BatchGetImageRequest& AddAcceptedMediaTypes(const Aws::String& value) { m_acceptedMediaTypesHasBeenSet = true; m_acceptedMediaTypes.push_back(value); return *this; }
99 inline BatchGetImageRequest& AddAcceptedMediaTypes(Aws::String&& value) { m_acceptedMediaTypesHasBeenSet = true; m_acceptedMediaTypes.push_back(std::move(value)); return *this; }
100 inline BatchGetImageRequest& AddAcceptedMediaTypes(const char* value) { m_acceptedMediaTypesHasBeenSet = true; m_acceptedMediaTypes.push_back(value); return *this; }
102 private:
103
104 Aws::String m_registryId;
105 bool m_registryIdHasBeenSet = false;
106
107 Aws::String m_repositoryName;
108 bool m_repositoryNameHasBeenSet = false;
109
111 bool m_imageIdsHasBeenSet = false;
112
113 Aws::Vector<Aws::String> m_acceptedMediaTypes;
114 bool m_acceptedMediaTypesHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace ECR
119} // namespace Aws
void SetImageIds(Aws::Vector< ImageIdentifier > &&value)
BatchGetImageRequest & WithRepositoryName(const Aws::String &value)
void SetRepositoryName(Aws::String &&value)
BatchGetImageRequest & AddImageIds(const ImageIdentifier &value)
void SetAcceptedMediaTypes(const Aws::Vector< Aws::String > &value)
BatchGetImageRequest & WithRegistryId(const char *value)
void SetRegistryId(const Aws::String &value)
BatchGetImageRequest & WithImageIds(Aws::Vector< ImageIdentifier > &&value)
BatchGetImageRequest & WithRepositoryName(const char *value)
BatchGetImageRequest & WithRegistryId(const Aws::String &value)
BatchGetImageRequest & AddImageIds(ImageIdentifier &&value)
AWS_ECR_API Aws::String SerializePayload() const override
void SetRepositoryName(const Aws::String &value)
BatchGetImageRequest & WithRegistryId(Aws::String &&value)
const Aws::String & GetRepositoryName() const
BatchGetImageRequest & WithAcceptedMediaTypes(Aws::Vector< Aws::String > &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetAcceptedMediaTypes() const
BatchGetImageRequest & WithAcceptedMediaTypes(const Aws::Vector< Aws::String > &value)
BatchGetImageRequest & AddAcceptedMediaTypes(const Aws::String &value)
BatchGetImageRequest & AddAcceptedMediaTypes(Aws::String &&value)
const Aws::Vector< ImageIdentifier > & GetImageIds() const
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetAcceptedMediaTypes(Aws::Vector< Aws::String > &&value)
void SetImageIds(const Aws::Vector< ImageIdentifier > &value)
BatchGetImageRequest & WithImageIds(const Aws::Vector< ImageIdentifier > &value)
BatchGetImageRequest & AddAcceptedMediaTypes(const char *value)
BatchGetImageRequest & WithRepositoryName(Aws::String &&value)
const Aws::String & GetRegistryId() const
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