AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
BatchCheckLayerAvailabilityRequest.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 BatchCheckLayerAvailabilityRequest() = 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 "BatchCheckLayerAvailability"; }
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 BatchCheckLayerAvailabilityRequest& 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 BatchCheckLayerAvailabilityRequest& WithRepositoryName(RepositoryNameT&& value) { SetRepositoryName(std::forward<RepositoryNameT>(value)); return *this;}
64
66
69 inline const Aws::Vector<Aws::String>& GetLayerDigests() const { return m_layerDigests; }
70 inline bool LayerDigestsHasBeenSet() const { return m_layerDigestsHasBeenSet; }
71 template<typename LayerDigestsT = Aws::Vector<Aws::String>>
72 void SetLayerDigests(LayerDigestsT&& value) { m_layerDigestsHasBeenSet = true; m_layerDigests = std::forward<LayerDigestsT>(value); }
73 template<typename LayerDigestsT = Aws::Vector<Aws::String>>
74 BatchCheckLayerAvailabilityRequest& WithLayerDigests(LayerDigestsT&& value) { SetLayerDigests(std::forward<LayerDigestsT>(value)); return *this;}
75 template<typename LayerDigestsT = Aws::String>
76 BatchCheckLayerAvailabilityRequest& AddLayerDigests(LayerDigestsT&& value) { m_layerDigestsHasBeenSet = true; m_layerDigests.emplace_back(std::forward<LayerDigestsT>(value)); return *this; }
78 private:
79
80 Aws::String m_registryId;
81 bool m_registryIdHasBeenSet = false;
82
83 Aws::String m_repositoryName;
84 bool m_repositoryNameHasBeenSet = false;
85
86 Aws::Vector<Aws::String> m_layerDigests;
87 bool m_layerDigestsHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace ECRPublic
92} // namespace Aws
BatchCheckLayerAvailabilityRequest & AddLayerDigests(LayerDigestsT &&value)
BatchCheckLayerAvailabilityRequest & WithLayerDigests(LayerDigestsT &&value)
AWS_ECRPUBLIC_API BatchCheckLayerAvailabilityRequest()=default
BatchCheckLayerAvailabilityRequest & WithRepositoryName(RepositoryNameT &&value)
AWS_ECRPUBLIC_API Aws::String SerializePayload() const override
AWS_ECRPUBLIC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
BatchCheckLayerAvailabilityRequest & WithRegistryId(RegistryIdT &&value)
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