AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 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 CompleteLayerUploadRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
50 inline CompleteLayerUploadRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
51 inline CompleteLayerUploadRequest& 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 CompleteLayerUploadRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
64 inline CompleteLayerUploadRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
65 inline CompleteLayerUploadRequest& 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 CompleteLayerUploadRequest& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;}
79 inline CompleteLayerUploadRequest& WithUploadId(Aws::String&& value) { SetUploadId(std::move(value)); return *this;}
80 inline CompleteLayerUploadRequest& WithUploadId(const char* value) { SetUploadId(value); return *this;}
82
84
87 inline const Aws::Vector<Aws::String>& GetLayerDigests() const{ return m_layerDigests; }
88 inline bool LayerDigestsHasBeenSet() const { return m_layerDigestsHasBeenSet; }
89 inline void SetLayerDigests(const Aws::Vector<Aws::String>& value) { m_layerDigestsHasBeenSet = true; m_layerDigests = value; }
90 inline void SetLayerDigests(Aws::Vector<Aws::String>&& value) { m_layerDigestsHasBeenSet = true; m_layerDigests = std::move(value); }
92 inline CompleteLayerUploadRequest& WithLayerDigests(Aws::Vector<Aws::String>&& value) { SetLayerDigests(std::move(value)); return *this;}
93 inline CompleteLayerUploadRequest& AddLayerDigests(const Aws::String& value) { m_layerDigestsHasBeenSet = true; m_layerDigests.push_back(value); return *this; }
94 inline CompleteLayerUploadRequest& AddLayerDigests(Aws::String&& value) { m_layerDigestsHasBeenSet = true; m_layerDigests.push_back(std::move(value)); return *this; }
95 inline CompleteLayerUploadRequest& AddLayerDigests(const char* value) { m_layerDigestsHasBeenSet = true; m_layerDigests.push_back(value); return *this; }
97 private:
98
99 Aws::String m_registryId;
100 bool m_registryIdHasBeenSet = false;
101
102 Aws::String m_repositoryName;
103 bool m_repositoryNameHasBeenSet = false;
104
105 Aws::String m_uploadId;
106 bool m_uploadIdHasBeenSet = false;
107
108 Aws::Vector<Aws::String> m_layerDigests;
109 bool m_layerDigestsHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace ECR
114} // namespace Aws
CompleteLayerUploadRequest & WithRegistryId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CompleteLayerUploadRequest & WithRepositoryName(const char *value)
CompleteLayerUploadRequest & WithLayerDigests(const Aws::Vector< Aws::String > &value)
CompleteLayerUploadRequest & WithRepositoryName(Aws::String &&value)
CompleteLayerUploadRequest & AddLayerDigests(const Aws::String &value)
CompleteLayerUploadRequest & AddLayerDigests(const char *value)
void SetLayerDigests(Aws::Vector< Aws::String > &&value)
CompleteLayerUploadRequest & WithRepositoryName(const Aws::String &value)
CompleteLayerUploadRequest & WithUploadId(const Aws::String &value)
CompleteLayerUploadRequest & WithRegistryId(Aws::String &&value)
AWS_ECR_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetLayerDigests() const
CompleteLayerUploadRequest & WithUploadId(const char *value)
CompleteLayerUploadRequest & WithLayerDigests(Aws::Vector< Aws::String > &&value)
CompleteLayerUploadRequest & AddLayerDigests(Aws::String &&value)
CompleteLayerUploadRequest & WithUploadId(Aws::String &&value)
CompleteLayerUploadRequest & WithRegistryId(const char *value)
void SetLayerDigests(const Aws::Vector< Aws::String > &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