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

The format of the package that contains the requested package version * assets.

*/ inline const PackageFormat& GetFormat() const{ return m_format; } /** *

The format of the package that contains the requested package version * assets.

*/ inline void SetFormat(const PackageFormat& value) { m_format = value; } /** *

The format of the package that contains the requested package version * assets.

*/ inline void SetFormat(PackageFormat&& value) { m_format = std::move(value); } /** *

The format of the package that contains the requested package version * assets.

*/ inline ListPackageVersionAssetsResult& WithFormat(const PackageFormat& value) { SetFormat(value); return *this;} /** *

The format of the package that contains the requested package version * assets.

*/ inline ListPackageVersionAssetsResult& WithFormat(PackageFormat&& value) { SetFormat(std::move(value)); return *this;} /** *

The namespace of the package version that contains the requested package * version assets. The package version component that specifies its namespace * depends on its type. For example:

  • The namespace of a Maven * package version is its groupId.

  • The namespace * of an npm package version is its scope.

  • Python * and NuGet package versions do not contain a corresponding component, package * versions of those formats do not have a namespace.

*/ inline const Aws::String& GetNamespace() const{ return m_namespace; } /** *

The namespace of the package version that contains the requested package * version assets. The package version component that specifies its namespace * depends on its type. For example:

  • The namespace of a Maven * package version is its groupId.

  • The namespace * of an npm package version is its scope.

  • Python * and NuGet package versions do not contain a corresponding component, package * versions of those formats do not have a namespace.

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

The namespace of the package version that contains the requested package * version assets. The package version component that specifies its namespace * depends on its type. For example:

  • The namespace of a Maven * package version is its groupId.

  • The namespace * of an npm package version is its scope.

  • Python * and NuGet package versions do not contain a corresponding component, package * versions of those formats do not have a namespace.

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

The namespace of the package version that contains the requested package * version assets. The package version component that specifies its namespace * depends on its type. For example:

  • The namespace of a Maven * package version is its groupId.

  • The namespace * of an npm package version is its scope.

  • Python * and NuGet package versions do not contain a corresponding component, package * versions of those formats do not have a namespace.

*/ inline void SetNamespace(const char* value) { m_namespace.assign(value); } /** *

The namespace of the package version that contains the requested package * version assets. The package version component that specifies its namespace * depends on its type. For example:

  • The namespace of a Maven * package version is its groupId.

  • The namespace * of an npm package version is its scope.

  • Python * and NuGet package versions do not contain a corresponding component, package * versions of those formats do not have a namespace.

*/ inline ListPackageVersionAssetsResult& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;} /** *

The namespace of the package version that contains the requested package * version assets. The package version component that specifies its namespace * depends on its type. For example:

  • The namespace of a Maven * package version is its groupId.

  • The namespace * of an npm package version is its scope.

  • Python * and NuGet package versions do not contain a corresponding component, package * versions of those formats do not have a namespace.

*/ inline ListPackageVersionAssetsResult& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;} /** *

The namespace of the package version that contains the requested package * version assets. The package version component that specifies its namespace * depends on its type. For example:

  • The namespace of a Maven * package version is its groupId.

  • The namespace * of an npm package version is its scope.

  • Python * and NuGet package versions do not contain a corresponding component, package * versions of those formats do not have a namespace.

*/ inline ListPackageVersionAssetsResult& WithNamespace(const char* value) { SetNamespace(value); return *this;} /** *

The name of the package that contains the requested package version assets. *

*/ inline const Aws::String& GetPackage() const{ return m_package; } /** *

The name of the package that contains the requested package version assets. *

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

The name of the package that contains the requested package version assets. *

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

The name of the package that contains the requested package version assets. *

*/ inline void SetPackage(const char* value) { m_package.assign(value); } /** *

The name of the package that contains the requested package version assets. *

*/ inline ListPackageVersionAssetsResult& WithPackage(const Aws::String& value) { SetPackage(value); return *this;} /** *

The name of the package that contains the requested package version assets. *

*/ inline ListPackageVersionAssetsResult& WithPackage(Aws::String&& value) { SetPackage(std::move(value)); return *this;} /** *

The name of the package that contains the requested package version assets. *

*/ inline ListPackageVersionAssetsResult& WithPackage(const char* value) { SetPackage(value); return *this;} /** *

The version of the package associated with the requested assets.

*/ inline const Aws::String& GetVersion() const{ return m_version; } /** *

The version of the package associated with the requested assets.

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

The version of the package associated with the requested assets.

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

The version of the package associated with the requested assets.

*/ inline void SetVersion(const char* value) { m_version.assign(value); } /** *

The version of the package associated with the requested assets.

*/ inline ListPackageVersionAssetsResult& WithVersion(const Aws::String& value) { SetVersion(value); return *this;} /** *

The version of the package associated with the requested assets.

*/ inline ListPackageVersionAssetsResult& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;} /** *

The version of the package associated with the requested assets.

*/ inline ListPackageVersionAssetsResult& WithVersion(const char* value) { SetVersion(value); return *this;} /** *

The current revision associated with the package version.

*/ inline const Aws::String& GetVersionRevision() const{ return m_versionRevision; } /** *

The current revision associated with the package version.

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

The current revision associated with the package version.

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

The current revision associated with the package version.

*/ inline void SetVersionRevision(const char* value) { m_versionRevision.assign(value); } /** *

The current revision associated with the package version.

*/ inline ListPackageVersionAssetsResult& WithVersionRevision(const Aws::String& value) { SetVersionRevision(value); return *this;} /** *

The current revision associated with the package version.

*/ inline ListPackageVersionAssetsResult& WithVersionRevision(Aws::String&& value) { SetVersionRevision(std::move(value)); return *this;} /** *

The current revision associated with the package version.

*/ inline ListPackageVersionAssetsResult& WithVersionRevision(const char* value) { SetVersionRevision(value); return *this;} /** *

If there are additional results, this is the token for the next set of * results.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

If there are additional results, this is the token for the next set of * results.

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

If there are additional results, this is the token for the next set of * results.

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

If there are additional results, this is the token for the next set of * results.

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

If there are additional results, this is the token for the next set of * results.

*/ inline ListPackageVersionAssetsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

If there are additional results, this is the token for the next set of * results.

*/ inline ListPackageVersionAssetsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

If there are additional results, this is the token for the next set of * results.

*/ inline ListPackageVersionAssetsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The returned list of AssetSummary * objects.

*/ inline const Aws::Vector& GetAssets() const{ return m_assets; } /** *

The returned list of AssetSummary * objects.

*/ inline void SetAssets(const Aws::Vector& value) { m_assets = value; } /** *

The returned list of AssetSummary * objects.

*/ inline void SetAssets(Aws::Vector&& value) { m_assets = std::move(value); } /** *

The returned list of AssetSummary * objects.

*/ inline ListPackageVersionAssetsResult& WithAssets(const Aws::Vector& value) { SetAssets(value); return *this;} /** *

The returned list of AssetSummary * objects.

*/ inline ListPackageVersionAssetsResult& WithAssets(Aws::Vector&& value) { SetAssets(std::move(value)); return *this;} /** *

The returned list of AssetSummary * objects.

*/ inline ListPackageVersionAssetsResult& AddAssets(const AssetSummary& value) { m_assets.push_back(value); return *this; } /** *

The returned list of AssetSummary * objects.

*/ inline ListPackageVersionAssetsResult& AddAssets(AssetSummary&& value) { m_assets.push_back(std::move(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 ListPackageVersionAssetsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListPackageVersionAssetsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListPackageVersionAssetsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: PackageFormat m_format; Aws::String m_namespace; Aws::String m_package; Aws::String m_version; Aws::String m_versionRevision; Aws::String m_nextToken; Aws::Vector m_assets; Aws::String m_requestId; }; } // namespace Model } // namespace CodeArtifact } // namespace Aws