AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UploadLayerPartRequest.h
1
6#pragma once
7#include <aws/ecr-public/ECRPublic_EXPORTS.h>
8#include <aws/ecr-public/ECRPublicRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/Array.h>
11#include <utility>
12
13namespace Aws
14{
15namespace ECRPublic
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_ECRPUBLIC_API UploadLayerPartRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UploadLayerPart"; }
32
33 AWS_ECRPUBLIC_API Aws::String SerializePayload() const override;
34
36
37
39
44 inline const Aws::String& GetRegistryId() const { return m_registryId; }
45 inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
46 template<typename RegistryIdT = Aws::String>
47 void SetRegistryId(RegistryIdT&& value) { m_registryIdHasBeenSet = true; m_registryId = std::forward<RegistryIdT>(value); }
48 template<typename RegistryIdT = Aws::String>
49 UploadLayerPartRequest& WithRegistryId(RegistryIdT&& value) { SetRegistryId(std::forward<RegistryIdT>(value)); return *this;}
51
53
56 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
57 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
58 template<typename RepositoryNameT = Aws::String>
59 void SetRepositoryName(RepositoryNameT&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::forward<RepositoryNameT>(value); }
60 template<typename RepositoryNameT = Aws::String>
61 UploadLayerPartRequest& WithRepositoryName(RepositoryNameT&& value) { SetRepositoryName(std::forward<RepositoryNameT>(value)); return *this;}
63
65
69 inline const Aws::String& GetUploadId() const { return m_uploadId; }
70 inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
71 template<typename UploadIdT = Aws::String>
72 void SetUploadId(UploadIdT&& value) { m_uploadIdHasBeenSet = true; m_uploadId = std::forward<UploadIdT>(value); }
73 template<typename UploadIdT = Aws::String>
74 UploadLayerPartRequest& WithUploadId(UploadIdT&& value) { SetUploadId(std::forward<UploadIdT>(value)); return *this;}
76
78
82 inline long long GetPartFirstByte() const { return m_partFirstByte; }
83 inline bool PartFirstByteHasBeenSet() const { return m_partFirstByteHasBeenSet; }
84 inline void SetPartFirstByte(long long value) { m_partFirstByteHasBeenSet = true; m_partFirstByte = value; }
85 inline UploadLayerPartRequest& WithPartFirstByte(long long value) { SetPartFirstByte(value); return *this;}
87
89
93 inline long long GetPartLastByte() const { return m_partLastByte; }
94 inline bool PartLastByteHasBeenSet() const { return m_partLastByteHasBeenSet; }
95 inline void SetPartLastByte(long long value) { m_partLastByteHasBeenSet = true; m_partLastByte = value; }
96 inline UploadLayerPartRequest& WithPartLastByte(long long value) { SetPartLastByte(value); return *this;}
98
100
103 inline const Aws::Utils::ByteBuffer& GetLayerPartBlob() const { return m_layerPartBlob; }
104 inline bool LayerPartBlobHasBeenSet() const { return m_layerPartBlobHasBeenSet; }
105 template<typename LayerPartBlobT = Aws::Utils::ByteBuffer>
106 void SetLayerPartBlob(LayerPartBlobT&& value) { m_layerPartBlobHasBeenSet = true; m_layerPartBlob = std::forward<LayerPartBlobT>(value); }
107 template<typename LayerPartBlobT = Aws::Utils::ByteBuffer>
108 UploadLayerPartRequest& WithLayerPartBlob(LayerPartBlobT&& value) { SetLayerPartBlob(std::forward<LayerPartBlobT>(value)); return *this;}
110 private:
111
112 Aws::String m_registryId;
113 bool m_registryIdHasBeenSet = false;
114
115 Aws::String m_repositoryName;
116 bool m_repositoryNameHasBeenSet = false;
117
118 Aws::String m_uploadId;
119 bool m_uploadIdHasBeenSet = false;
120
121 long long m_partFirstByte{0};
122 bool m_partFirstByteHasBeenSet = false;
123
124 long long m_partLastByte{0};
125 bool m_partLastByteHasBeenSet = false;
126
127 Aws::Utils::ByteBuffer m_layerPartBlob{};
128 bool m_layerPartBlobHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace ECRPublic
133} // namespace Aws
UploadLayerPartRequest & WithRepositoryName(RepositoryNameT &&value)
UploadLayerPartRequest & WithRegistryId(RegistryIdT &&value)
const Aws::Utils::ByteBuffer & GetLayerPartBlob() const
UploadLayerPartRequest & WithPartFirstByte(long long value)
UploadLayerPartRequest & WithUploadId(UploadIdT &&value)
virtual const char * GetServiceRequestName() const override
AWS_ECRPUBLIC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UploadLayerPartRequest & WithPartLastByte(long long value)
AWS_ECRPUBLIC_API UploadLayerPartRequest()=default
UploadLayerPartRequest & WithLayerPartBlob(LayerPartBlobT &&value)
AWS_ECRPUBLIC_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String