/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace CodeArtifact { namespace Model { class GetPackageVersionAssetResult { public: AWS_CODEARTIFACT_API GetPackageVersionAssetResult(); //We have to define these because Microsoft doesn't auto generate them AWS_CODEARTIFACT_API GetPackageVersionAssetResult(GetPackageVersionAssetResult&&); AWS_CODEARTIFACT_API GetPackageVersionAssetResult& operator=(GetPackageVersionAssetResult&&); //we delete these because Microsoft doesn't handle move generation correctly //and we therefore don't trust them to get it right here either. GetPackageVersionAssetResult(const GetPackageVersionAssetResult&) = delete; GetPackageVersionAssetResult& operator=(const GetPackageVersionAssetResult&) = delete; AWS_CODEARTIFACT_API GetPackageVersionAssetResult(Aws::AmazonWebServiceResult&& result); AWS_CODEARTIFACT_API GetPackageVersionAssetResult& operator=(Aws::AmazonWebServiceResult&& result); /** *

The binary file, or asset, that is downloaded.

*/ inline Aws::IOStream& GetAsset() const { return m_asset.GetUnderlyingStream(); } /** *

The binary file, or asset, that is downloaded.

*/ inline void ReplaceBody(Aws::IOStream* body) { m_asset = Aws::Utils::Stream::ResponseStream(body); } /** *

The name of the asset that is downloaded.

*/ inline const Aws::String& GetAssetName() const{ return m_assetName; } /** *

The name of the asset that is downloaded.

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

The name of the asset that is downloaded.

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

The name of the asset that is downloaded.

*/ inline void SetAssetName(const char* value) { m_assetName.assign(value); } /** *

The name of the asset that is downloaded.

*/ inline GetPackageVersionAssetResult& WithAssetName(const Aws::String& value) { SetAssetName(value); return *this;} /** *

The name of the asset that is downloaded.

*/ inline GetPackageVersionAssetResult& WithAssetName(Aws::String&& value) { SetAssetName(std::move(value)); return *this;} /** *

The name of the asset that is downloaded.

*/ inline GetPackageVersionAssetResult& WithAssetName(const char* value) { SetAssetName(value); return *this;} /** *

A string that contains the package version (for example, * 3.5.2).

*/ inline const Aws::String& GetPackageVersion() const{ return m_packageVersion; } /** *

A string that contains the package version (for example, * 3.5.2).

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

A string that contains the package version (for example, * 3.5.2).

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

A string that contains the package version (for example, * 3.5.2).

*/ inline void SetPackageVersion(const char* value) { m_packageVersion.assign(value); } /** *

A string that contains the package version (for example, * 3.5.2).

*/ inline GetPackageVersionAssetResult& WithPackageVersion(const Aws::String& value) { SetPackageVersion(value); return *this;} /** *

A string that contains the package version (for example, * 3.5.2).

*/ inline GetPackageVersionAssetResult& WithPackageVersion(Aws::String&& value) { SetPackageVersion(std::move(value)); return *this;} /** *

A string that contains the package version (for example, * 3.5.2).

*/ inline GetPackageVersionAssetResult& WithPackageVersion(const char* value) { SetPackageVersion(value); return *this;} /** *

The name of the package version revision that contains the downloaded asset. *

*/ inline const Aws::String& GetPackageVersionRevision() const{ return m_packageVersionRevision; } /** *

The name of the package version revision that contains the downloaded asset. *

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

The name of the package version revision that contains the downloaded asset. *

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

The name of the package version revision that contains the downloaded asset. *

*/ inline void SetPackageVersionRevision(const char* value) { m_packageVersionRevision.assign(value); } /** *

The name of the package version revision that contains the downloaded asset. *

*/ inline GetPackageVersionAssetResult& WithPackageVersionRevision(const Aws::String& value) { SetPackageVersionRevision(value); return *this;} /** *

The name of the package version revision that contains the downloaded asset. *

*/ inline GetPackageVersionAssetResult& WithPackageVersionRevision(Aws::String&& value) { SetPackageVersionRevision(std::move(value)); return *this;} /** *

The name of the package version revision that contains the downloaded asset. *

*/ inline GetPackageVersionAssetResult& WithPackageVersionRevision(const char* value) { SetPackageVersionRevision(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 GetPackageVersionAssetResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetPackageVersionAssetResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetPackageVersionAssetResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Utils::Stream::ResponseStream m_asset; Aws::String m_assetName; Aws::String m_packageVersion; Aws::String m_packageVersionRevision; Aws::String m_requestId; }; } // namespace Model } // namespace CodeArtifact } // namespace Aws