AWS SDK for C++  0.14.3
AWS SDK for C++
UploadLayerPartResult.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 UploadLayerPartResult& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
66 
70  inline UploadLayerPartResult& WithRegistryId(Aws::String&& value) { SetRegistryId(value); return *this;}
71 
75  inline UploadLayerPartResult& 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 UploadLayerPartResult& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
101 
105  inline UploadLayerPartResult& WithRepositoryName(Aws::String&& value) { SetRepositoryName(value); return *this;}
106 
110  inline UploadLayerPartResult& 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 UploadLayerPartResult& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;}
136 
140  inline UploadLayerPartResult& WithUploadId(Aws::String&& value) { SetUploadId(value); return *this;}
141 
145  inline UploadLayerPartResult& WithUploadId(const char* value) { SetUploadId(value); return *this;}
146 
150  inline long long GetLastByteReceived() const{ return m_lastByteReceived; }
151 
155  inline void SetLastByteReceived(long long value) { m_lastByteReceived = value; }
156 
160  inline UploadLayerPartResult& WithLastByteReceived(long long value) { SetLastByteReceived(value); return *this;}
161 
162  private:
163  Aws::String m_registryId;
164  Aws::String m_repositoryName;
165  Aws::String m_uploadId;
166  long long m_lastByteReceived;
167  };
168 
169 } // namespace Model
170 } // namespace ECR
171 } // namespace Aws
UploadLayerPartResult & WithRepositoryName(const Aws::String &value)
UploadLayerPartResult & WithUploadId(const Aws::String &value)
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:37
const Aws::String & GetRegistryId() const
UploadLayerPartResult & WithUploadId(Aws::String &&value)
UploadLayerPartResult & WithRegistryId(const Aws::String &value)
UploadLayerPartResult & WithRepositoryName(const char *value)
const Aws::String & GetUploadId() const
void SetUploadId(const Aws::String &value)
UploadLayerPartResult & WithRegistryId(Aws::String &&value)
const Aws::String & GetRepositoryName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UploadLayerPartResult & WithRepositoryName(Aws::String &&value)
void SetRegistryId(const Aws::String &value)
UploadLayerPartResult & WithRegistryId(const char *value)
void SetRepositoryName(const Aws::String &value)
UploadLayerPartResult & WithLastByteReceived(long long value)
UploadLayerPartResult & WithUploadId(const char *value)
JSON (JavaScript Object Notation).