/** * 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 GetDownloadUrlForLayerResult { public: AWS_ECR_API GetDownloadUrlForLayerResult(); AWS_ECR_API GetDownloadUrlForLayerResult(const Aws::AmazonWebServiceResult& result); AWS_ECR_API GetDownloadUrlForLayerResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The pre-signed Amazon S3 download URL for the requested layer.

*/ inline const Aws::String& GetDownloadUrl() const{ return m_downloadUrl; } /** *

The pre-signed Amazon S3 download URL for the requested layer.

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

The pre-signed Amazon S3 download URL for the requested layer.

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

The pre-signed Amazon S3 download URL for the requested layer.

*/ inline void SetDownloadUrl(const char* value) { m_downloadUrl.assign(value); } /** *

The pre-signed Amazon S3 download URL for the requested layer.

*/ inline GetDownloadUrlForLayerResult& WithDownloadUrl(const Aws::String& value) { SetDownloadUrl(value); return *this;} /** *

The pre-signed Amazon S3 download URL for the requested layer.

*/ inline GetDownloadUrlForLayerResult& WithDownloadUrl(Aws::String&& value) { SetDownloadUrl(std::move(value)); return *this;} /** *

The pre-signed Amazon S3 download URL for the requested layer.

*/ inline GetDownloadUrlForLayerResult& WithDownloadUrl(const char* value) { SetDownloadUrl(value); return *this;} /** *

The digest of the image layer to download.

*/ inline const Aws::String& GetLayerDigest() const{ return m_layerDigest; } /** *

The digest of the image layer to download.

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

The digest of the image layer to download.

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

The digest of the image layer to download.

*/ inline void SetLayerDigest(const char* value) { m_layerDigest.assign(value); } /** *

The digest of the image layer to download.

*/ inline GetDownloadUrlForLayerResult& WithLayerDigest(const Aws::String& value) { SetLayerDigest(value); return *this;} /** *

The digest of the image layer to download.

*/ inline GetDownloadUrlForLayerResult& WithLayerDigest(Aws::String&& value) { SetLayerDigest(std::move(value)); return *this;} /** *

The digest of the image layer to download.

*/ inline GetDownloadUrlForLayerResult& WithLayerDigest(const char* value) { SetLayerDigest(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 GetDownloadUrlForLayerResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetDownloadUrlForLayerResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetDownloadUrlForLayerResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_downloadUrl; Aws::String m_layerDigest; Aws::String m_requestId; }; } // namespace Model } // namespace ECR } // namespace Aws