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-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/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace ECRPublic
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_ECRPUBLIC_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_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 CompleteLayerUploadRequest& WithRegistryId(RegistryIdT&& value) { SetRegistryId(std::forward<RegistryIdT>(value)); return *this;}
51
53
57 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
58 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
59 template<typename RepositoryNameT = Aws::String>
60 void SetRepositoryName(RepositoryNameT&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::forward<RepositoryNameT>(value); }
61 template<typename RepositoryNameT = Aws::String>
62 CompleteLayerUploadRequest& WithRepositoryName(RepositoryNameT&& value) { SetRepositoryName(std::forward<RepositoryNameT>(value)); return *this;}
64
66
70 inline const Aws::String& GetUploadId() const { return m_uploadId; }
71 inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
72 template<typename UploadIdT = Aws::String>
73 void SetUploadId(UploadIdT&& value) { m_uploadIdHasBeenSet = true; m_uploadId = std::forward<UploadIdT>(value); }
74 template<typename UploadIdT = Aws::String>
75 CompleteLayerUploadRequest& WithUploadId(UploadIdT&& value) { SetUploadId(std::forward<UploadIdT>(value)); return *this;}
77
79
82 inline const Aws::Vector<Aws::String>& GetLayerDigests() const { return m_layerDigests; }
83 inline bool LayerDigestsHasBeenSet() const { return m_layerDigestsHasBeenSet; }
84 template<typename LayerDigestsT = Aws::Vector<Aws::String>>
85 void SetLayerDigests(LayerDigestsT&& value) { m_layerDigestsHasBeenSet = true; m_layerDigests = std::forward<LayerDigestsT>(value); }
86 template<typename LayerDigestsT = Aws::Vector<Aws::String>>
87 CompleteLayerUploadRequest& WithLayerDigests(LayerDigestsT&& value) { SetLayerDigests(std::forward<LayerDigestsT>(value)); return *this;}
88 template<typename LayerDigestsT = Aws::String>
89 CompleteLayerUploadRequest& AddLayerDigests(LayerDigestsT&& value) { m_layerDigestsHasBeenSet = true; m_layerDigests.emplace_back(std::forward<LayerDigestsT>(value)); return *this; }
91 private:
92
93 Aws::String m_registryId;
94 bool m_registryIdHasBeenSet = false;
95
96 Aws::String m_repositoryName;
97 bool m_repositoryNameHasBeenSet = false;
98
99 Aws::String m_uploadId;
100 bool m_uploadIdHasBeenSet = false;
101
102 Aws::Vector<Aws::String> m_layerDigests;
103 bool m_layerDigestsHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace ECRPublic
108} // namespace Aws
CompleteLayerUploadRequest & WithRepositoryName(RepositoryNameT &&value)
AWS_ECRPUBLIC_API CompleteLayerUploadRequest()=default
AWS_ECRPUBLIC_API Aws::String SerializePayload() const override
CompleteLayerUploadRequest & WithLayerDigests(LayerDigestsT &&value)
CompleteLayerUploadRequest & WithRegistryId(RegistryIdT &&value)
CompleteLayerUploadRequest & WithUploadId(UploadIdT &&value)
const Aws::Vector< Aws::String > & GetLayerDigests() const
AWS_ECRPUBLIC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CompleteLayerUploadRequest & AddLayerDigests(LayerDigestsT &&value)
virtual const char * GetServiceRequestName() 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