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

A format that specifies the type of the package that contains the returned * dependencies.

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

A format that specifies the type of the package that contains the returned * dependencies.

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

A format that specifies the type of the package that contains the returned * dependencies.

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

A format that specifies the type of the package that contains the returned * dependencies.

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

A format that specifies the type of the package that contains the returned * dependencies.

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

The namespace of the package version that contains the returned dependencies. * 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 returned dependencies. * 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 returned dependencies. * 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 returned dependencies. * 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 returned dependencies. * 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 ListPackageVersionDependenciesResult& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;} /** *

The namespace of the package version that contains the returned dependencies. * 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 ListPackageVersionDependenciesResult& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;} /** *

The namespace of the package version that contains the returned dependencies. * 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 ListPackageVersionDependenciesResult& WithNamespace(const char* value) { SetNamespace(value); return *this;} /** *

The name of the package that contains the returned package versions * dependencies.

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

The name of the package that contains the returned package versions * dependencies.

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

The name of the package that contains the returned package versions * dependencies.

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

The name of the package that contains the returned package versions * dependencies.

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

The name of the package that contains the returned package versions * dependencies.

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

The name of the package that contains the returned package versions * dependencies.

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

The name of the package that contains the returned package versions * dependencies.

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

The version of the package that is specified in the request.

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

The version of the package that is specified in the request.

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

The version of the package that is specified in the request.

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

The version of the package that is specified in the request.

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

The version of the package that is specified in the request.

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

The version of the package that is specified in the request.

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

The version of the package that is specified in the request.

*/ inline ListPackageVersionDependenciesResult& 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 ListPackageVersionDependenciesResult& WithVersionRevision(const Aws::String& value) { SetVersionRevision(value); return *this;} /** *

The current revision associated with the package version.

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

The current revision associated with the package version.

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

The token for the next set of results. Use the value returned in the * previous response in the next request to retrieve the next set of results.

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

The token for the next set of results. Use the value returned in the * previous response in the next request to retrieve the next set of results.

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

The token for the next set of results. Use the value returned in the * previous response in the next request to retrieve the next set of results.

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

The token for the next set of results. Use the value returned in the * previous response in the next request to retrieve the next set of results.

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

The token for the next set of results. Use the value returned in the * previous response in the next request to retrieve the next set of results.

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

The token for the next set of results. Use the value returned in the * previous response in the next request to retrieve the next set of results.

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

The token for the next set of results. Use the value returned in the * previous response in the next request to retrieve the next set of results.

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

The returned list of PackageDependency * objects.

*/ inline const Aws::Vector& GetDependencies() const{ return m_dependencies; } /** *

The returned list of PackageDependency * objects.

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

The returned list of PackageDependency * objects.

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

The returned list of PackageDependency * objects.

*/ inline ListPackageVersionDependenciesResult& WithDependencies(const Aws::Vector& value) { SetDependencies(value); return *this;} /** *

The returned list of PackageDependency * objects.

*/ inline ListPackageVersionDependenciesResult& WithDependencies(Aws::Vector&& value) { SetDependencies(std::move(value)); return *this;} /** *

The returned list of PackageDependency * objects.

*/ inline ListPackageVersionDependenciesResult& AddDependencies(const PackageDependency& value) { m_dependencies.push_back(value); return *this; } /** *

The returned list of PackageDependency * objects.

*/ inline ListPackageVersionDependenciesResult& AddDependencies(PackageDependency&& value) { m_dependencies.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 ListPackageVersionDependenciesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListPackageVersionDependenciesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListPackageVersionDependenciesResult& 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_dependencies; Aws::String m_requestId; }; } // namespace Model } // namespace CodeArtifact } // namespace Aws