AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UploadLayerPartRequest.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.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 UploadLayerPartRequest() = 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 "UploadLayerPart"; }
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>
48 UploadLayerPartRequest& WithRegistryId(RegistryIdT&& value) {
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>
66 UploadLayerPartRequest& WithRepositoryName(RepositoryNameT&& value) {
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
96 inline long long GetPartFirstByte() const { return m_partFirstByte; }
97 inline bool PartFirstByteHasBeenSet() const { return m_partFirstByteHasBeenSet; }
98 inline void SetPartFirstByte(long long value) {
99 m_partFirstByteHasBeenSet = true;
100 m_partFirstByte = value;
101 }
102 inline UploadLayerPartRequest& WithPartFirstByte(long long value) {
103 SetPartFirstByte(value);
104 return *this;
105 }
107
109
113 inline long long GetPartLastByte() const { return m_partLastByte; }
114 inline bool PartLastByteHasBeenSet() const { return m_partLastByteHasBeenSet; }
115 inline void SetPartLastByte(long long value) {
116 m_partLastByteHasBeenSet = true;
117 m_partLastByte = value;
118 }
119 inline UploadLayerPartRequest& WithPartLastByte(long long value) {
120 SetPartLastByte(value);
121 return *this;
122 }
124
126
129 inline const Aws::Utils::ByteBuffer& GetLayerPartBlob() const { return m_layerPartBlob; }
130 inline bool LayerPartBlobHasBeenSet() const { return m_layerPartBlobHasBeenSet; }
131 template <typename LayerPartBlobT = Aws::Utils::ByteBuffer>
132 void SetLayerPartBlob(LayerPartBlobT&& value) {
133 m_layerPartBlobHasBeenSet = true;
134 m_layerPartBlob = std::forward<LayerPartBlobT>(value);
135 }
136 template <typename LayerPartBlobT = Aws::Utils::ByteBuffer>
137 UploadLayerPartRequest& WithLayerPartBlob(LayerPartBlobT&& value) {
138 SetLayerPartBlob(std::forward<LayerPartBlobT>(value));
139 return *this;
140 }
142 private:
143 Aws::String m_registryId;
144
145 Aws::String m_repositoryName;
146
147 Aws::String m_uploadId;
148
149 long long m_partFirstByte{0};
150
151 long long m_partLastByte{0};
152
153 Aws::Utils::ByteBuffer m_layerPartBlob{};
154 bool m_registryIdHasBeenSet = false;
155 bool m_repositoryNameHasBeenSet = false;
156 bool m_uploadIdHasBeenSet = false;
157 bool m_partFirstByteHasBeenSet = false;
158 bool m_partLastByteHasBeenSet = false;
159 bool m_layerPartBlobHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace ECR
164} // namespace Aws
UploadLayerPartRequest & WithPartFirstByte(long long value)
const Aws::Utils::ByteBuffer & GetLayerPartBlob() const
void SetRepositoryName(RepositoryNameT &&value)
AWS_ECR_API Aws::String SerializePayload() const override
UploadLayerPartRequest & WithUploadId(UploadIdT &&value)
UploadLayerPartRequest & WithPartLastByte(long long value)
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
AWS_ECR_API UploadLayerPartRequest()=default
UploadLayerPartRequest & WithRegistryId(RegistryIdT &&value)
UploadLayerPartRequest & WithRepositoryName(RepositoryNameT &&value)
UploadLayerPartRequest & WithLayerPartBlob(LayerPartBlobT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String