AWS SDK for C++  1.9.66
AWS SDK for C++
CompleteLayerUploadRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecr/ECR_EXPORTS.h>
8 #include <aws/ecr/ECRRequest.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace ECR
16 {
17 namespace 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 "CompleteLayerUpload"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
42  inline const Aws::String& GetRegistryId() const{ return m_registryId; }
43 
48  inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
49 
54  inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
55 
60  inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
61 
66  inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
67 
72  inline CompleteLayerUploadRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
73 
78  inline CompleteLayerUploadRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
79 
84  inline CompleteLayerUploadRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
85 
86 
90  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
91 
95  inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
96 
100  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
101 
105  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
106 
110  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
111 
115  inline CompleteLayerUploadRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
116 
120  inline CompleteLayerUploadRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
121 
125  inline CompleteLayerUploadRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
126 
127 
132  inline const Aws::String& GetUploadId() const{ return m_uploadId; }
133 
138  inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
139 
144  inline void SetUploadId(const Aws::String& value) { m_uploadIdHasBeenSet = true; m_uploadId = value; }
145 
150  inline void SetUploadId(Aws::String&& value) { m_uploadIdHasBeenSet = true; m_uploadId = std::move(value); }
151 
156  inline void SetUploadId(const char* value) { m_uploadIdHasBeenSet = true; m_uploadId.assign(value); }
157 
162  inline CompleteLayerUploadRequest& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;}
163 
168  inline CompleteLayerUploadRequest& WithUploadId(Aws::String&& value) { SetUploadId(std::move(value)); return *this;}
169 
174  inline CompleteLayerUploadRequest& WithUploadId(const char* value) { SetUploadId(value); return *this;}
175 
176 
180  inline const Aws::Vector<Aws::String>& GetLayerDigests() const{ return m_layerDigests; }
181 
185  inline bool LayerDigestsHasBeenSet() const { return m_layerDigestsHasBeenSet; }
186 
190  inline void SetLayerDigests(const Aws::Vector<Aws::String>& value) { m_layerDigestsHasBeenSet = true; m_layerDigests = value; }
191 
195  inline void SetLayerDigests(Aws::Vector<Aws::String>&& value) { m_layerDigestsHasBeenSet = true; m_layerDigests = std::move(value); }
196 
200  inline CompleteLayerUploadRequest& WithLayerDigests(const Aws::Vector<Aws::String>& value) { SetLayerDigests(value); return *this;}
201 
205  inline CompleteLayerUploadRequest& WithLayerDigests(Aws::Vector<Aws::String>&& value) { SetLayerDigests(std::move(value)); return *this;}
206 
210  inline CompleteLayerUploadRequest& AddLayerDigests(const Aws::String& value) { m_layerDigestsHasBeenSet = true; m_layerDigests.push_back(value); return *this; }
211 
215  inline CompleteLayerUploadRequest& AddLayerDigests(Aws::String&& value) { m_layerDigestsHasBeenSet = true; m_layerDigests.push_back(std::move(value)); return *this; }
216 
220  inline CompleteLayerUploadRequest& AddLayerDigests(const char* value) { m_layerDigestsHasBeenSet = true; m_layerDigests.push_back(value); return *this; }
221 
222  private:
223 
224  Aws::String m_registryId;
225  bool m_registryIdHasBeenSet;
226 
227  Aws::String m_repositoryName;
228  bool m_repositoryNameHasBeenSet;
229 
230  Aws::String m_uploadId;
231  bool m_uploadIdHasBeenSet;
232 
233  Aws::Vector<Aws::String> m_layerDigests;
234  bool m_layerDigestsHasBeenSet;
235  };
236 
237 } // namespace Model
238 } // namespace ECR
239 } // namespace Aws
Aws::ECR::Model::CompleteLayerUploadRequest::SetUploadId
void SetUploadId(const char *value)
Definition: CompleteLayerUploadRequest.h:156
Aws::ECR::Model::CompleteLayerUploadRequest::GetRegistryId
const Aws::String & GetRegistryId() const
Definition: CompleteLayerUploadRequest.h:42
Aws::ECR::Model::CompleteLayerUploadRequest::WithRegistryId
CompleteLayerUploadRequest & WithRegistryId(const char *value)
Definition: CompleteLayerUploadRequest.h:84
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ECR::Model::CompleteLayerUploadRequest::RegistryIdHasBeenSet
bool RegistryIdHasBeenSet() const
Definition: CompleteLayerUploadRequest.h:48
Aws::ECR::Model::CompleteLayerUploadRequest::SetRegistryId
void SetRegistryId(const char *value)
Definition: CompleteLayerUploadRequest.h:66
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ECR::Model::CompleteLayerUploadRequest::GetUploadId
const Aws::String & GetUploadId() const
Definition: CompleteLayerUploadRequest.h:132
Aws::ECR::Model::CompleteLayerUploadRequest::AddLayerDigests
CompleteLayerUploadRequest & AddLayerDigests(const char *value)
Definition: CompleteLayerUploadRequest.h:220
AWSVector.h
Aws::ECR::Model::CompleteLayerUploadRequest::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: CompleteLayerUploadRequest.h:90
Aws::ECR::Model::CompleteLayerUploadRequest::SetRegistryId
void SetRegistryId(Aws::String &&value)
Definition: CompleteLayerUploadRequest.h:60
Aws::ECR::Model::CompleteLayerUploadRequest::GetLayerDigests
const Aws::Vector< Aws::String > & GetLayerDigests() const
Definition: CompleteLayerUploadRequest.h:180
Aws::imagebuilder::Model::ContainerRepositoryService::NOT_SET
@ NOT_SET
Aws::ECR::Model::CompleteLayerUploadRequest::WithRepositoryName
CompleteLayerUploadRequest & WithRepositoryName(const Aws::String &value)
Definition: CompleteLayerUploadRequest.h:115
Aws::ECR::Model::CompleteLayerUploadRequest::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: CompleteLayerUploadRequest.h:110
Aws::ECR::Model::CompleteLayerUploadRequest::WithRegistryId
CompleteLayerUploadRequest & WithRegistryId(const Aws::String &value)
Definition: CompleteLayerUploadRequest.h:72
Aws::ECR::Model::CompleteLayerUploadRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECR::Model::CompleteLayerUploadRequest::SetUploadId
void SetUploadId(Aws::String &&value)
Definition: CompleteLayerUploadRequest.h:150
Aws::ECR::Model::CompleteLayerUploadRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CompleteLayerUploadRequest.h:31
Aws::ECR::Model::CompleteLayerUploadRequest::AddLayerDigests
CompleteLayerUploadRequest & AddLayerDigests(const Aws::String &value)
Definition: CompleteLayerUploadRequest.h:210
ECR_EXPORTS.h
Aws::ECR::Model::CompleteLayerUploadRequest::WithLayerDigests
CompleteLayerUploadRequest & WithLayerDigests(const Aws::Vector< Aws::String > &value)
Definition: CompleteLayerUploadRequest.h:200
Aws::ECR::Model::CompleteLayerUploadRequest::WithUploadId
CompleteLayerUploadRequest & WithUploadId(const Aws::String &value)
Definition: CompleteLayerUploadRequest.h:162
Aws::ECR::Model::CompleteLayerUploadRequest::SetUploadId
void SetUploadId(const Aws::String &value)
Definition: CompleteLayerUploadRequest.h:144
Aws::ECR::Model::CompleteLayerUploadRequest::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: CompleteLayerUploadRequest.h:100
AWSString.h
Aws::ECR::Model::CompleteLayerUploadRequest::LayerDigestsHasBeenSet
bool LayerDigestsHasBeenSet() const
Definition: CompleteLayerUploadRequest.h:185
AWS_ECR_API
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:28
Aws::ECR::Model::CompleteLayerUploadRequest::WithUploadId
CompleteLayerUploadRequest & WithUploadId(Aws::String &&value)
Definition: CompleteLayerUploadRequest.h:168
ECRRequest.h
Aws::ECR::Model::CompleteLayerUploadRequest::WithUploadId
CompleteLayerUploadRequest & WithUploadId(const char *value)
Definition: CompleteLayerUploadRequest.h:174
Aws::ECR::Model::CompleteLayerUploadRequest::UploadIdHasBeenSet
bool UploadIdHasBeenSet() const
Definition: CompleteLayerUploadRequest.h:138
Aws::ECR::Model::CompleteLayerUploadRequest::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: CompleteLayerUploadRequest.h:105
Aws
Definition: AccessManagementClient.h:15
Aws::ECR::Model::CompleteLayerUploadRequest
Definition: CompleteLayerUploadRequest.h:23
Aws::ECR::Model::CompleteLayerUploadRequest::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: CompleteLayerUploadRequest.h:95
Aws::ECR::Model::CompleteLayerUploadRequest::WithRepositoryName
CompleteLayerUploadRequest & WithRepositoryName(const char *value)
Definition: CompleteLayerUploadRequest.h:125
Aws::ECR::Model::CompleteLayerUploadRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ECR::Model::CompleteLayerUploadRequest::SetLayerDigests
void SetLayerDigests(const Aws::Vector< Aws::String > &value)
Definition: CompleteLayerUploadRequest.h:190
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECR::Model::CompleteLayerUploadRequest::WithLayerDigests
CompleteLayerUploadRequest & WithLayerDigests(Aws::Vector< Aws::String > &&value)
Definition: CompleteLayerUploadRequest.h:205
Aws::ECR::Model::CompleteLayerUploadRequest::WithRegistryId
CompleteLayerUploadRequest & WithRegistryId(Aws::String &&value)
Definition: CompleteLayerUploadRequest.h:78
Aws::ECR::Model::CompleteLayerUploadRequest::AddLayerDigests
CompleteLayerUploadRequest & AddLayerDigests(Aws::String &&value)
Definition: CompleteLayerUploadRequest.h:215
Aws::ECR::Model::CompleteLayerUploadRequest::SetRegistryId
void SetRegistryId(const Aws::String &value)
Definition: CompleteLayerUploadRequest.h:54
Aws::ECR::Model::CompleteLayerUploadRequest::SetLayerDigests
void SetLayerDigests(Aws::Vector< Aws::String > &&value)
Definition: CompleteLayerUploadRequest.h:195
Aws::ECR::Model::CompleteLayerUploadRequest::CompleteLayerUploadRequest
CompleteLayerUploadRequest()
Aws::ECR::ECRRequest
Definition: ECRRequest.h:17
Aws::ECR::Model::CompleteLayerUploadRequest::WithRepositoryName
CompleteLayerUploadRequest & WithRepositoryName(Aws::String &&value)
Definition: CompleteLayerUploadRequest.h:120