AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CompleteLayerUploadRequest.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/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace ECR
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_ECR_API CompleteLayerUploadRequest() = 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 "CompleteLayerUpload"; }
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 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 CompleteLayerUploadRequest& 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 CompleteLayerUploadRequest& 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 CompleteLayerUploadRequest& WithUploadId(UploadIdT&& value) { SetUploadId(std::forward<UploadIdT>(value)); return *this;}
76
78
81 inline const Aws::Vector<Aws::String>& GetLayerDigests() const { return m_layerDigests; }
82 inline bool LayerDigestsHasBeenSet() const { return m_layerDigestsHasBeenSet; }
83 template<typename LayerDigestsT = Aws::Vector<Aws::String>>
84 void SetLayerDigests(LayerDigestsT&& value) { m_layerDigestsHasBeenSet = true; m_layerDigests = std::forward<LayerDigestsT>(value); }
85 template<typename LayerDigestsT = Aws::Vector<Aws::String>>
86 CompleteLayerUploadRequest& WithLayerDigests(LayerDigestsT&& value) { SetLayerDigests(std::forward<LayerDigestsT>(value)); return *this;}
87 template<typename LayerDigestsT = Aws::String>
88 CompleteLayerUploadRequest& AddLayerDigests(LayerDigestsT&& value) { m_layerDigestsHasBeenSet = true; m_layerDigests.emplace_back(std::forward<LayerDigestsT>(value)); return *this; }
90 private:
91
92 Aws::String m_registryId;
93 bool m_registryIdHasBeenSet = false;
94
95 Aws::String m_repositoryName;
96 bool m_repositoryNameHasBeenSet = false;
97
98 Aws::String m_uploadId;
99 bool m_uploadIdHasBeenSet = false;
100
101 Aws::Vector<Aws::String> m_layerDigests;
102 bool m_layerDigestsHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace ECR
107} // 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