AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UploadLayerPartRequest.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/Array.h>
11#include <utility>
12
13namespace Aws
14{
15namespace ECR
16{
17namespace Model
18{
19
23 {
24 public:
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_ECR_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 inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
47 inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
48 inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
49 inline UploadLayerPartRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
50 inline UploadLayerPartRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
51 inline UploadLayerPartRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
53
55
58 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
59 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
60 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
61 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
62 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
63 inline UploadLayerPartRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
64 inline UploadLayerPartRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
65 inline UploadLayerPartRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
67
69
73 inline const Aws::String& GetUploadId() const{ return m_uploadId; }
74 inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
75 inline void SetUploadId(const Aws::String& value) { m_uploadIdHasBeenSet = true; m_uploadId = value; }
76 inline void SetUploadId(Aws::String&& value) { m_uploadIdHasBeenSet = true; m_uploadId = std::move(value); }
77 inline void SetUploadId(const char* value) { m_uploadIdHasBeenSet = true; m_uploadId.assign(value); }
78 inline UploadLayerPartRequest& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;}
79 inline UploadLayerPartRequest& WithUploadId(Aws::String&& value) { SetUploadId(std::move(value)); return *this;}
80 inline UploadLayerPartRequest& WithUploadId(const char* value) { SetUploadId(value); return *this;}
82
84
88 inline long long GetPartFirstByte() const{ return m_partFirstByte; }
89 inline bool PartFirstByteHasBeenSet() const { return m_partFirstByteHasBeenSet; }
90 inline void SetPartFirstByte(long long value) { m_partFirstByteHasBeenSet = true; m_partFirstByte = value; }
91 inline UploadLayerPartRequest& WithPartFirstByte(long long value) { SetPartFirstByte(value); return *this;}
93
95
99 inline long long GetPartLastByte() const{ return m_partLastByte; }
100 inline bool PartLastByteHasBeenSet() const { return m_partLastByteHasBeenSet; }
101 inline void SetPartLastByte(long long value) { m_partLastByteHasBeenSet = true; m_partLastByte = value; }
102 inline UploadLayerPartRequest& WithPartLastByte(long long value) { SetPartLastByte(value); return *this;}
104
106
109 inline const Aws::Utils::ByteBuffer& GetLayerPartBlob() const{ return m_layerPartBlob; }
110 inline bool LayerPartBlobHasBeenSet() const { return m_layerPartBlobHasBeenSet; }
111 inline void SetLayerPartBlob(const Aws::Utils::ByteBuffer& value) { m_layerPartBlobHasBeenSet = true; m_layerPartBlob = value; }
112 inline void SetLayerPartBlob(Aws::Utils::ByteBuffer&& value) { m_layerPartBlobHasBeenSet = true; m_layerPartBlob = std::move(value); }
114 inline UploadLayerPartRequest& WithLayerPartBlob(Aws::Utils::ByteBuffer&& value) { SetLayerPartBlob(std::move(value)); return *this;}
116 private:
117
118 Aws::String m_registryId;
119 bool m_registryIdHasBeenSet = false;
120
121 Aws::String m_repositoryName;
122 bool m_repositoryNameHasBeenSet = false;
123
124 Aws::String m_uploadId;
125 bool m_uploadIdHasBeenSet = false;
126
127 long long m_partFirstByte;
128 bool m_partFirstByteHasBeenSet = false;
129
130 long long m_partLastByte;
131 bool m_partLastByteHasBeenSet = false;
132
133 Aws::Utils::ByteBuffer m_layerPartBlob;
134 bool m_layerPartBlobHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace ECR
139} // namespace Aws
UploadLayerPartRequest & WithPartFirstByte(long long value)
const Aws::Utils::ByteBuffer & GetLayerPartBlob() const
UploadLayerPartRequest & WithRegistryId(const Aws::String &value)
void SetUploadId(const Aws::String &value)
AWS_ECR_API Aws::String SerializePayload() const override
UploadLayerPartRequest & WithRepositoryName(const char *value)
UploadLayerPartRequest & WithLayerPartBlob(const Aws::Utils::ByteBuffer &value)
UploadLayerPartRequest & WithRepositoryName(const Aws::String &value)
UploadLayerPartRequest & WithRegistryId(Aws::String &&value)
UploadLayerPartRequest & WithPartLastByte(long long value)
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetLayerPartBlob(const Aws::Utils::ByteBuffer &value)
virtual const char * GetServiceRequestName() const override
UploadLayerPartRequest & WithRegistryId(const char *value)
UploadLayerPartRequest & WithUploadId(const char *value)
void SetLayerPartBlob(Aws::Utils::ByteBuffer &&value)
void SetRepositoryName(const Aws::String &value)
UploadLayerPartRequest & WithLayerPartBlob(Aws::Utils::ByteBuffer &&value)
UploadLayerPartRequest & WithUploadId(const Aws::String &value)
UploadLayerPartRequest & WithRepositoryName(Aws::String &&value)
void SetRegistryId(const Aws::String &value)
UploadLayerPartRequest & WithUploadId(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String