/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace ECR { namespace Model { class InitiateLayerUploadResult { public: AWS_ECR_API InitiateLayerUploadResult(); AWS_ECR_API InitiateLayerUploadResult(const Aws::AmazonWebServiceResult& result); AWS_ECR_API InitiateLayerUploadResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The upload ID for the layer upload. This parameter is passed to further * UploadLayerPart and CompleteLayerUpload operations.

*/ inline const Aws::String& GetUploadId() const{ return m_uploadId; } /** *

The upload ID for the layer upload. This parameter is passed to further * UploadLayerPart and CompleteLayerUpload operations.

*/ inline void SetUploadId(const Aws::String& value) { m_uploadId = value; } /** *

The upload ID for the layer upload. This parameter is passed to further * UploadLayerPart and CompleteLayerUpload operations.

*/ inline void SetUploadId(Aws::String&& value) { m_uploadId = std::move(value); } /** *

The upload ID for the layer upload. This parameter is passed to further * UploadLayerPart and CompleteLayerUpload operations.

*/ inline void SetUploadId(const char* value) { m_uploadId.assign(value); } /** *

The upload ID for the layer upload. This parameter is passed to further * UploadLayerPart and CompleteLayerUpload operations.

*/ inline InitiateLayerUploadResult& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;} /** *

The upload ID for the layer upload. This parameter is passed to further * UploadLayerPart and CompleteLayerUpload operations.

*/ inline InitiateLayerUploadResult& WithUploadId(Aws::String&& value) { SetUploadId(std::move(value)); return *this;} /** *

The upload ID for the layer upload. This parameter is passed to further * UploadLayerPart and CompleteLayerUpload operations.

*/ inline InitiateLayerUploadResult& WithUploadId(const char* value) { SetUploadId(value); return *this;} /** *

The size, in bytes, that Amazon ECR expects future layer part uploads to * be.

*/ inline long long GetPartSize() const{ return m_partSize; } /** *

The size, in bytes, that Amazon ECR expects future layer part uploads to * be.

*/ inline void SetPartSize(long long value) { m_partSize = value; } /** *

The size, in bytes, that Amazon ECR expects future layer part uploads to * be.

*/ inline InitiateLayerUploadResult& WithPartSize(long long value) { SetPartSize(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline InitiateLayerUploadResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline InitiateLayerUploadResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline InitiateLayerUploadResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_uploadId; long long m_partSize; Aws::String m_requestId; }; } // namespace Model } // namespace ECR } // namespace Aws