AWS SDK for C++  1.9.66
AWS SDK for C++
BatchCheckLayerAvailabilityRequest.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 "BatchCheckLayerAvailability"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
43  inline const Aws::String& GetRegistryId() const{ return m_registryId; }
44 
50  inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
51 
57  inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
58 
64  inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
65 
71  inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
72 
78  inline BatchCheckLayerAvailabilityRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
79 
85  inline BatchCheckLayerAvailabilityRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
86 
92  inline BatchCheckLayerAvailabilityRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
93 
94 
99  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
100 
105  inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
106 
111  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
112 
117  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
118 
123  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
124 
129  inline BatchCheckLayerAvailabilityRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
130 
135  inline BatchCheckLayerAvailabilityRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
136 
141  inline BatchCheckLayerAvailabilityRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
142 
143 
147  inline const Aws::Vector<Aws::String>& GetLayerDigests() const{ return m_layerDigests; }
148 
152  inline bool LayerDigestsHasBeenSet() const { return m_layerDigestsHasBeenSet; }
153 
157  inline void SetLayerDigests(const Aws::Vector<Aws::String>& value) { m_layerDigestsHasBeenSet = true; m_layerDigests = value; }
158 
162  inline void SetLayerDigests(Aws::Vector<Aws::String>&& value) { m_layerDigestsHasBeenSet = true; m_layerDigests = std::move(value); }
163 
167  inline BatchCheckLayerAvailabilityRequest& WithLayerDigests(const Aws::Vector<Aws::String>& value) { SetLayerDigests(value); return *this;}
168 
172  inline BatchCheckLayerAvailabilityRequest& WithLayerDigests(Aws::Vector<Aws::String>&& value) { SetLayerDigests(std::move(value)); return *this;}
173 
177  inline BatchCheckLayerAvailabilityRequest& AddLayerDigests(const Aws::String& value) { m_layerDigestsHasBeenSet = true; m_layerDigests.push_back(value); return *this; }
178 
182  inline BatchCheckLayerAvailabilityRequest& AddLayerDigests(Aws::String&& value) { m_layerDigestsHasBeenSet = true; m_layerDigests.push_back(std::move(value)); return *this; }
183 
187  inline BatchCheckLayerAvailabilityRequest& AddLayerDigests(const char* value) { m_layerDigestsHasBeenSet = true; m_layerDigests.push_back(value); return *this; }
188 
189  private:
190 
191  Aws::String m_registryId;
192  bool m_registryIdHasBeenSet;
193 
194  Aws::String m_repositoryName;
195  bool m_repositoryNameHasBeenSet;
196 
197  Aws::Vector<Aws::String> m_layerDigests;
198  bool m_layerDigestsHasBeenSet;
199  };
200 
201 } // namespace Model
202 } // namespace ECR
203 } // namespace Aws
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ECR::Model::BatchCheckLayerAvailabilityRequest::WithRegistryId
BatchCheckLayerAvailabilityRequest & WithRegistryId(Aws::String &&value)
Definition: BatchCheckLayerAvailabilityRequest.h:85
Aws::ECR::Model::BatchCheckLayerAvailabilityRequest::AddLayerDigests
BatchCheckLayerAvailabilityRequest & AddLayerDigests(Aws::String &&value)
Definition: BatchCheckLayerAvailabilityRequest.h:182
Aws::ECR::Model::BatchCheckLayerAvailabilityRequest::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: BatchCheckLayerAvailabilityRequest.h:99
Aws::ECR::Model::BatchCheckLayerAvailabilityRequest::GetRegistryId
const Aws::String & GetRegistryId() const
Definition: BatchCheckLayerAvailabilityRequest.h:43
Aws::ECR::Model::BatchCheckLayerAvailabilityRequest::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: BatchCheckLayerAvailabilityRequest.h:105
Aws::ECR::Model::BatchCheckLayerAvailabilityRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECR::Model::BatchCheckLayerAvailabilityRequest::SetRegistryId
void SetRegistryId(const Aws::String &value)
Definition: BatchCheckLayerAvailabilityRequest.h:57
Aws::ECR::Model::BatchCheckLayerAvailabilityRequest::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: BatchCheckLayerAvailabilityRequest.h:117
Aws::ECR::Model::BatchCheckLayerAvailabilityRequest::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: BatchCheckLayerAvailabilityRequest.h:123
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ECR::Model::BatchCheckLayerAvailabilityRequest::BatchCheckLayerAvailabilityRequest
BatchCheckLayerAvailabilityRequest()
Aws::ECR::Model::BatchCheckLayerAvailabilityRequest::SetRegistryId
void SetRegistryId(Aws::String &&value)
Definition: BatchCheckLayerAvailabilityRequest.h:64
AWSVector.h
Aws::ECR::Model::BatchCheckLayerAvailabilityRequest::SetLayerDigests
void SetLayerDigests(const Aws::Vector< Aws::String > &value)
Definition: BatchCheckLayerAvailabilityRequest.h:157
Aws::ECR::Model::BatchCheckLayerAvailabilityRequest::AddLayerDigests
BatchCheckLayerAvailabilityRequest & AddLayerDigests(const char *value)
Definition: BatchCheckLayerAvailabilityRequest.h:187
Aws::imagebuilder::Model::ContainerRepositoryService::NOT_SET
@ NOT_SET
Aws::ECR::Model::BatchCheckLayerAvailabilityRequest::WithRepositoryName
BatchCheckLayerAvailabilityRequest & WithRepositoryName(const char *value)
Definition: BatchCheckLayerAvailabilityRequest.h:141
Aws::ECR::Model::BatchCheckLayerAvailabilityRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: BatchCheckLayerAvailabilityRequest.h:31
Aws::ECR::Model::BatchCheckLayerAvailabilityRequest
Definition: BatchCheckLayerAvailabilityRequest.h:23
ECR_EXPORTS.h
Aws::ECR::Model::BatchCheckLayerAvailabilityRequest::WithRegistryId
BatchCheckLayerAvailabilityRequest & WithRegistryId(const char *value)
Definition: BatchCheckLayerAvailabilityRequest.h:92
Aws::ECR::Model::BatchCheckLayerAvailabilityRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWSString.h
Aws::ECR::Model::BatchCheckLayerAvailabilityRequest::RegistryIdHasBeenSet
bool RegistryIdHasBeenSet() const
Definition: BatchCheckLayerAvailabilityRequest.h:50
Aws::ECR::Model::BatchCheckLayerAvailabilityRequest::WithRegistryId
BatchCheckLayerAvailabilityRequest & WithRegistryId(const Aws::String &value)
Definition: BatchCheckLayerAvailabilityRequest.h:78
AWS_ECR_API
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:28
ECRRequest.h
Aws::ECR::Model::BatchCheckLayerAvailabilityRequest::WithRepositoryName
BatchCheckLayerAvailabilityRequest & WithRepositoryName(const Aws::String &value)
Definition: BatchCheckLayerAvailabilityRequest.h:129
Aws::ECR::Model::BatchCheckLayerAvailabilityRequest::WithRepositoryName
BatchCheckLayerAvailabilityRequest & WithRepositoryName(Aws::String &&value)
Definition: BatchCheckLayerAvailabilityRequest.h:135
Aws::ECR::Model::BatchCheckLayerAvailabilityRequest::AddLayerDigests
BatchCheckLayerAvailabilityRequest & AddLayerDigests(const Aws::String &value)
Definition: BatchCheckLayerAvailabilityRequest.h:177
Aws::ECR::Model::BatchCheckLayerAvailabilityRequest::WithLayerDigests
BatchCheckLayerAvailabilityRequest & WithLayerDigests(Aws::Vector< Aws::String > &&value)
Definition: BatchCheckLayerAvailabilityRequest.h:172
Aws
Definition: AccessManagementClient.h:15
Aws::ECR::Model::BatchCheckLayerAvailabilityRequest::GetLayerDigests
const Aws::Vector< Aws::String > & GetLayerDigests() const
Definition: BatchCheckLayerAvailabilityRequest.h:147
Aws::ECR::Model::BatchCheckLayerAvailabilityRequest::WithLayerDigests
BatchCheckLayerAvailabilityRequest & WithLayerDigests(const Aws::Vector< Aws::String > &value)
Definition: BatchCheckLayerAvailabilityRequest.h:167
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECR::Model::BatchCheckLayerAvailabilityRequest::SetLayerDigests
void SetLayerDigests(Aws::Vector< Aws::String > &&value)
Definition: BatchCheckLayerAvailabilityRequest.h:162
Aws::ECR::Model::BatchCheckLayerAvailabilityRequest::SetRegistryId
void SetRegistryId(const char *value)
Definition: BatchCheckLayerAvailabilityRequest.h:71
Aws::ECR::Model::BatchCheckLayerAvailabilityRequest::LayerDigestsHasBeenSet
bool LayerDigestsHasBeenSet() const
Definition: BatchCheckLayerAvailabilityRequest.h:152
Aws::ECR::Model::BatchCheckLayerAvailabilityRequest::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: BatchCheckLayerAvailabilityRequest.h:111
Aws::ECR::ECRRequest
Definition: ECRRequest.h:17