AWS SDK for C++  0.12.9
AWS SDK for C++
CompleteLayerUploadResult.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/ecr/ECR_EXPORTS.h>
18 
19 namespace Aws
20 {
21 template<typename RESULT_TYPE>
22 class AmazonWebServiceResult;
23 
24 namespace Utils
25 {
26 namespace Json
27 {
28  class JsonValue;
29 } // namespace Json
30 } // namespace Utils
31 namespace ECR
32 {
33 namespace Model
34 {
36  {
37  public:
41 
45  inline const Aws::String& GetRegistryId() const{ return m_registryId; }
46 
50  inline void SetRegistryId(const Aws::String& value) { m_registryId = value; }
51 
55  inline void SetRegistryId(Aws::String&& value) { m_registryId = value; }
56 
60  inline void SetRegistryId(const char* value) { m_registryId.assign(value); }
61 
65  inline CompleteLayerUploadResult& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
66 
70  inline CompleteLayerUploadResult& WithRegistryId(Aws::String&& value) { SetRegistryId(value); return *this;}
71 
75  inline CompleteLayerUploadResult& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
76 
80  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
81 
85  inline void SetRepositoryName(const Aws::String& value) { m_repositoryName = value; }
86 
90  inline void SetRepositoryName(Aws::String&& value) { m_repositoryName = value; }
91 
95  inline void SetRepositoryName(const char* value) { m_repositoryName.assign(value); }
96 
100  inline CompleteLayerUploadResult& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
101 
105  inline CompleteLayerUploadResult& WithRepositoryName(Aws::String&& value) { SetRepositoryName(value); return *this;}
106 
110  inline CompleteLayerUploadResult& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
111 
115  inline const Aws::String& GetUploadId() const{ return m_uploadId; }
116 
120  inline void SetUploadId(const Aws::String& value) { m_uploadId = value; }
121 
125  inline void SetUploadId(Aws::String&& value) { m_uploadId = value; }
126 
130  inline void SetUploadId(const char* value) { m_uploadId.assign(value); }
131 
135  inline CompleteLayerUploadResult& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;}
136 
140  inline CompleteLayerUploadResult& WithUploadId(Aws::String&& value) { SetUploadId(value); return *this;}
141 
145  inline CompleteLayerUploadResult& WithUploadId(const char* value) { SetUploadId(value); return *this;}
146 
150  inline const Aws::String& GetLayerDigest() const{ return m_layerDigest; }
151 
155  inline void SetLayerDigest(const Aws::String& value) { m_layerDigest = value; }
156 
160  inline void SetLayerDigest(Aws::String&& value) { m_layerDigest = value; }
161 
165  inline void SetLayerDigest(const char* value) { m_layerDigest.assign(value); }
166 
170  inline CompleteLayerUploadResult& WithLayerDigest(const Aws::String& value) { SetLayerDigest(value); return *this;}
171 
175  inline CompleteLayerUploadResult& WithLayerDigest(Aws::String&& value) { SetLayerDigest(value); return *this;}
176 
180  inline CompleteLayerUploadResult& WithLayerDigest(const char* value) { SetLayerDigest(value); return *this;}
181 
182  private:
183  Aws::String m_registryId;
184  Aws::String m_repositoryName;
185  Aws::String m_uploadId;
186  Aws::String m_layerDigest;
187  };
188 
189 } // namespace Model
190 } // namespace ECR
191 } // namespace Aws
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:34
CompleteLayerUploadResult & WithUploadId(const Aws::String &value)
CompleteLayerUploadResult & WithUploadId(const char *value)
CompleteLayerUploadResult & WithUploadId(Aws::String &&value)
CompleteLayerUploadResult & WithLayerDigest(const Aws::String &value)
CompleteLayerUploadResult & WithLayerDigest(const char *value)
CompleteLayerUploadResult & WithRegistryId(Aws::String &&value)
CompleteLayerUploadResult & WithRegistryId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CompleteLayerUploadResult & WithLayerDigest(Aws::String &&value)
CompleteLayerUploadResult & WithRegistryId(const Aws::String &value)
CompleteLayerUploadResult & WithRepositoryName(Aws::String &&value)
JSON (JavaScript Object Notation).
CompleteLayerUploadResult & WithRepositoryName(const Aws::String &value)
CompleteLayerUploadResult & WithRepositoryName(const char *value)