AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CompleteLayerUploadRequest.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 CompleteLayerUploadRequest() = 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 "CompleteLayerUpload"; }
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
58 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
59 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
60 template <typename RepositoryNameT = Aws::String>
61 void SetRepositoryName(RepositoryNameT&& value) {
62 m_repositoryNameHasBeenSet = true;
63 m_repositoryName = std::forward<RepositoryNameT>(value);
64 }
65 template <typename RepositoryNameT = Aws::String>
67 SetRepositoryName(std::forward<RepositoryNameT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetUploadId() const { return m_uploadId; }
78 inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
79 template <typename UploadIdT = Aws::String>
80 void SetUploadId(UploadIdT&& value) {
81 m_uploadIdHasBeenSet = true;
82 m_uploadId = std::forward<UploadIdT>(value);
83 }
84 template <typename UploadIdT = Aws::String>
86 SetUploadId(std::forward<UploadIdT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Vector<Aws::String>& GetLayerDigests() const { return m_layerDigests; }
96 inline bool LayerDigestsHasBeenSet() const { return m_layerDigestsHasBeenSet; }
97 template <typename LayerDigestsT = Aws::Vector<Aws::String>>
98 void SetLayerDigests(LayerDigestsT&& value) {
99 m_layerDigestsHasBeenSet = true;
100 m_layerDigests = std::forward<LayerDigestsT>(value);
101 }
102 template <typename LayerDigestsT = Aws::Vector<Aws::String>>
104 SetLayerDigests(std::forward<LayerDigestsT>(value));
105 return *this;
106 }
107 template <typename LayerDigestsT = Aws::String>
109 m_layerDigestsHasBeenSet = true;
110 m_layerDigests.emplace_back(std::forward<LayerDigestsT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_registryId;
116
117 Aws::String m_repositoryName;
118
119 Aws::String m_uploadId;
120
121 Aws::Vector<Aws::String> m_layerDigests;
122 bool m_registryIdHasBeenSet = false;
123 bool m_repositoryNameHasBeenSet = false;
124 bool m_uploadIdHasBeenSet = false;
125 bool m_layerDigestsHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace ECR
130} // namespace Aws
virtual const char * GetServiceRequestName() const override
CompleteLayerUploadRequest & WithRepositoryName(RepositoryNameT &&value)
AWS_ECR_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetLayerDigests() const
CompleteLayerUploadRequest & WithRegistryId(RegistryIdT &&value)
CompleteLayerUploadRequest & WithLayerDigests(LayerDigestsT &&value)
CompleteLayerUploadRequest & WithUploadId(UploadIdT &&value)
AWS_ECR_API CompleteLayerUploadRequest()=default
CompleteLayerUploadRequest & AddLayerDigests(LayerDigestsT &&value)
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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