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

The default package version to display. This depends on the package format: *

  • For Maven and PyPI packages, it's the most recently published * package version.

  • For npm packages, it's the version * referenced by the latest tag. If the latest tag is not * set, it's the most recently published package version.

*/ inline const Aws::String& GetDefaultDisplayVersion() const{ return m_defaultDisplayVersion; } /** *

The default package version to display. This depends on the package format: *

  • For Maven and PyPI packages, it's the most recently published * package version.

  • For npm packages, it's the version * referenced by the latest tag. If the latest tag is not * set, it's the most recently published package version.

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

The default package version to display. This depends on the package format: *

  • For Maven and PyPI packages, it's the most recently published * package version.

  • For npm packages, it's the version * referenced by the latest tag. If the latest tag is not * set, it's the most recently published package version.

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

The default package version to display. This depends on the package format: *

  • For Maven and PyPI packages, it's the most recently published * package version.

  • For npm packages, it's the version * referenced by the latest tag. If the latest tag is not * set, it's the most recently published package version.

*/ inline void SetDefaultDisplayVersion(const char* value) { m_defaultDisplayVersion.assign(value); } /** *

The default package version to display. This depends on the package format: *

  • For Maven and PyPI packages, it's the most recently published * package version.

  • For npm packages, it's the version * referenced by the latest tag. If the latest tag is not * set, it's the most recently published package version.

*/ inline ListPackageVersionsResult& WithDefaultDisplayVersion(const Aws::String& value) { SetDefaultDisplayVersion(value); return *this;} /** *

The default package version to display. This depends on the package format: *

  • For Maven and PyPI packages, it's the most recently published * package version.

  • For npm packages, it's the version * referenced by the latest tag. If the latest tag is not * set, it's the most recently published package version.

*/ inline ListPackageVersionsResult& WithDefaultDisplayVersion(Aws::String&& value) { SetDefaultDisplayVersion(std::move(value)); return *this;} /** *

The default package version to display. This depends on the package format: *

  • For Maven and PyPI packages, it's the most recently published * package version.

  • For npm packages, it's the version * referenced by the latest tag. If the latest tag is not * set, it's the most recently published package version.

*/ inline ListPackageVersionsResult& WithDefaultDisplayVersion(const char* value) { SetDefaultDisplayVersion(value); return *this;} /** *

A format of the package.

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

A format of the package.

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

A format of the package.

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

A format of the package.

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

A format of the package.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

The name of the package.

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

The name of the package.

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

The name of the package.

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

The name of the package.

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

The name of the package.

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

The name of the package.

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

The name of the package.

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

The returned list of PackageVersionSummary * objects.

*/ inline const Aws::Vector& GetVersions() const{ return m_versions; } /** *

The returned list of PackageVersionSummary * objects.

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

The returned list of PackageVersionSummary * objects.

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

The returned list of PackageVersionSummary * objects.

*/ inline ListPackageVersionsResult& WithVersions(const Aws::Vector& value) { SetVersions(value); return *this;} /** *

The returned list of PackageVersionSummary * objects.

*/ inline ListPackageVersionsResult& WithVersions(Aws::Vector&& value) { SetVersions(std::move(value)); return *this;} /** *

The returned list of PackageVersionSummary * objects.

*/ inline ListPackageVersionsResult& AddVersions(const PackageVersionSummary& value) { m_versions.push_back(value); return *this; } /** *

The returned list of PackageVersionSummary * objects.

*/ inline ListPackageVersionsResult& AddVersions(PackageVersionSummary&& value) { m_versions.push_back(std::move(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 ListPackageVersionsResult& 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 ListPackageVersionsResult& 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 ListPackageVersionsResult& WithNextToken(const char* value) { SetNextToken(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 ListPackageVersionsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListPackageVersionsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListPackageVersionsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_defaultDisplayVersion; PackageFormat m_format; Aws::String m_namespace; Aws::String m_package; Aws::Vector m_versions; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace CodeArtifact } // namespace Aws