AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
BatchCheckLayerAvailabilityRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ecr/ECRRequest.h>
10#include <aws/ecr/ECR_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace ECR {
16namespace Model {
17
21 public:
22 AWS_ECR_API BatchCheckLayerAvailabilityRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "BatchCheckLayerAvailability"; }
29
30 AWS_ECR_API Aws::String SerializePayload() const override;
31
33
35
40 inline const Aws::String& GetRegistryId() const { return m_registryId; }
41 inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
42 template <typename RegistryIdT = Aws::String>
43 void SetRegistryId(RegistryIdT&& value) {
44 m_registryIdHasBeenSet = true;
45 m_registryId = std::forward<RegistryIdT>(value);
46 }
47 template <typename RegistryIdT = Aws::String>
49 SetRegistryId(std::forward<RegistryIdT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
60 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
61 template <typename RepositoryNameT = Aws::String>
62 void SetRepositoryName(RepositoryNameT&& value) {
63 m_repositoryNameHasBeenSet = true;
64 m_repositoryName = std::forward<RepositoryNameT>(value);
65 }
66 template <typename RepositoryNameT = Aws::String>
68 SetRepositoryName(std::forward<RepositoryNameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Vector<Aws::String>& GetLayerDigests() const { return m_layerDigests; }
78 inline bool LayerDigestsHasBeenSet() const { return m_layerDigestsHasBeenSet; }
79 template <typename LayerDigestsT = Aws::Vector<Aws::String>>
80 void SetLayerDigests(LayerDigestsT&& value) {
81 m_layerDigestsHasBeenSet = true;
82 m_layerDigests = std::forward<LayerDigestsT>(value);
83 }
84 template <typename LayerDigestsT = Aws::Vector<Aws::String>>
86 SetLayerDigests(std::forward<LayerDigestsT>(value));
87 return *this;
88 }
89 template <typename LayerDigestsT = Aws::String>
91 m_layerDigestsHasBeenSet = true;
92 m_layerDigests.emplace_back(std::forward<LayerDigestsT>(value));
93 return *this;
94 }
96 private:
97 Aws::String m_registryId;
98
99 Aws::String m_repositoryName;
100
101 Aws::Vector<Aws::String> m_layerDigests;
102 bool m_registryIdHasBeenSet = false;
103 bool m_repositoryNameHasBeenSet = false;
104 bool m_layerDigestsHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace ECR
109} // namespace Aws
BatchCheckLayerAvailabilityRequest & WithRepositoryName(RepositoryNameT &&value)
BatchCheckLayerAvailabilityRequest & WithRegistryId(RegistryIdT &&value)
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_ECR_API Aws::String SerializePayload() const override
BatchCheckLayerAvailabilityRequest & AddLayerDigests(LayerDigestsT &&value)
BatchCheckLayerAvailabilityRequest & WithLayerDigests(LayerDigestsT &&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