/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace Http { class URI; } //namespace Http namespace CodeArtifact { namespace Model { /** */ class ListPackageVersionsRequest : public CodeArtifactRequest { public: AWS_CODEARTIFACT_API ListPackageVersionsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "ListPackageVersions"; } AWS_CODEARTIFACT_API Aws::String SerializePayload() const override; AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The name of the domain that contains the repository that contains the * requested package versions.

*/ inline const Aws::String& GetDomain() const{ return m_domain; } /** *

The name of the domain that contains the repository that contains the * requested package versions.

*/ inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; } /** *

The name of the domain that contains the repository that contains the * requested package versions.

*/ inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; } /** *

The name of the domain that contains the repository that contains the * requested package versions.

*/ inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); } /** *

The name of the domain that contains the repository that contains the * requested package versions.

*/ inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); } /** *

The name of the domain that contains the repository that contains the * requested package versions.

*/ inline ListPackageVersionsRequest& WithDomain(const Aws::String& value) { SetDomain(value); return *this;} /** *

The name of the domain that contains the repository that contains the * requested package versions.

*/ inline ListPackageVersionsRequest& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;} /** *

The name of the domain that contains the repository that contains the * requested package versions.

*/ inline ListPackageVersionsRequest& WithDomain(const char* value) { SetDomain(value); return *this;} /** *

The 12-digit account number of the Amazon Web Services account that owns the * domain. It does not include dashes or spaces.

*/ inline const Aws::String& GetDomainOwner() const{ return m_domainOwner; } /** *

The 12-digit account number of the Amazon Web Services account that owns the * domain. It does not include dashes or spaces.

*/ inline bool DomainOwnerHasBeenSet() const { return m_domainOwnerHasBeenSet; } /** *

The 12-digit account number of the Amazon Web Services account that owns the * domain. It does not include dashes or spaces.

*/ inline void SetDomainOwner(const Aws::String& value) { m_domainOwnerHasBeenSet = true; m_domainOwner = value; } /** *

The 12-digit account number of the Amazon Web Services account that owns the * domain. It does not include dashes or spaces.

*/ inline void SetDomainOwner(Aws::String&& value) { m_domainOwnerHasBeenSet = true; m_domainOwner = std::move(value); } /** *

The 12-digit account number of the Amazon Web Services account that owns the * domain. It does not include dashes or spaces.

*/ inline void SetDomainOwner(const char* value) { m_domainOwnerHasBeenSet = true; m_domainOwner.assign(value); } /** *

The 12-digit account number of the Amazon Web Services account that owns the * domain. It does not include dashes or spaces.

*/ inline ListPackageVersionsRequest& WithDomainOwner(const Aws::String& value) { SetDomainOwner(value); return *this;} /** *

The 12-digit account number of the Amazon Web Services account that owns the * domain. It does not include dashes or spaces.

*/ inline ListPackageVersionsRequest& WithDomainOwner(Aws::String&& value) { SetDomainOwner(std::move(value)); return *this;} /** *

The 12-digit account number of the Amazon Web Services account that owns the * domain. It does not include dashes or spaces.

*/ inline ListPackageVersionsRequest& WithDomainOwner(const char* value) { SetDomainOwner(value); return *this;} /** *

The name of the repository that contains the requested package versions. *

*/ inline const Aws::String& GetRepository() const{ return m_repository; } /** *

The name of the repository that contains the requested package versions. *

*/ inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; } /** *

The name of the repository that contains the requested package versions. *

*/ inline void SetRepository(const Aws::String& value) { m_repositoryHasBeenSet = true; m_repository = value; } /** *

The name of the repository that contains the requested package versions. *

*/ inline void SetRepository(Aws::String&& value) { m_repositoryHasBeenSet = true; m_repository = std::move(value); } /** *

The name of the repository that contains the requested package versions. *

*/ inline void SetRepository(const char* value) { m_repositoryHasBeenSet = true; m_repository.assign(value); } /** *

The name of the repository that contains the requested package versions. *

*/ inline ListPackageVersionsRequest& WithRepository(const Aws::String& value) { SetRepository(value); return *this;} /** *

The name of the repository that contains the requested package versions. *

*/ inline ListPackageVersionsRequest& WithRepository(Aws::String&& value) { SetRepository(std::move(value)); return *this;} /** *

The name of the repository that contains the requested package versions. *

*/ inline ListPackageVersionsRequest& WithRepository(const char* value) { SetRepository(value); return *this;} /** *

The format of the package versions you want to list.

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

The format of the package versions you want to list.

*/ inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; } /** *

The format of the package versions you want to list.

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

The format of the package versions you want to list.

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

The format of the package versions you want to list.

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

The format of the package versions you want to list.

*/ inline ListPackageVersionsRequest& 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. *

  • The namespace of a generic package is its * 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. *

  • The namespace of a generic package is its * namespace.

*/ inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; } /** *

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. *

  • The namespace of a generic package is its * namespace.

*/ inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; 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. *

  • The namespace of a generic package is its * namespace.

*/ inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; 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. *

  • The namespace of a generic package is its * namespace.

*/ inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; 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. *

  • The namespace of a generic package is its * namespace.

*/ inline ListPackageVersionsRequest& 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. *

  • The namespace of a generic package is its * namespace.

*/ inline ListPackageVersionsRequest& 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. *

  • The namespace of a generic package is its * namespace.

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

The name of the package for which you want to request package versions.

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

The name of the package for which you want to request package versions.

*/ inline bool PackageHasBeenSet() const { return m_packageHasBeenSet; } /** *

The name of the package for which you want to request package versions.

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

The name of the package for which you want to request package versions.

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

The name of the package for which you want to request package versions.

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

The name of the package for which you want to request package versions.

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

The name of the package for which you want to request package versions.

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

The name of the package for which you want to request package versions.

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

A string that filters the requested package versions by status.

*/ inline const PackageVersionStatus& GetStatus() const{ return m_status; } /** *

A string that filters the requested package versions by status.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

A string that filters the requested package versions by status.

*/ inline void SetStatus(const PackageVersionStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

A string that filters the requested package versions by status.

*/ inline void SetStatus(PackageVersionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

A string that filters the requested package versions by status.

*/ inline ListPackageVersionsRequest& WithStatus(const PackageVersionStatus& value) { SetStatus(value); return *this;} /** *

A string that filters the requested package versions by status.

*/ inline ListPackageVersionsRequest& WithStatus(PackageVersionStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

How to sort the requested list of package versions.

*/ inline const PackageVersionSortType& GetSortBy() const{ return m_sortBy; } /** *

How to sort the requested list of package versions.

*/ inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; } /** *

How to sort the requested list of package versions.

*/ inline void SetSortBy(const PackageVersionSortType& value) { m_sortByHasBeenSet = true; m_sortBy = value; } /** *

How to sort the requested list of package versions.

*/ inline void SetSortBy(PackageVersionSortType&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); } /** *

How to sort the requested list of package versions.

*/ inline ListPackageVersionsRequest& WithSortBy(const PackageVersionSortType& value) { SetSortBy(value); return *this;} /** *

How to sort the requested list of package versions.

*/ inline ListPackageVersionsRequest& WithSortBy(PackageVersionSortType&& value) { SetSortBy(std::move(value)); return *this;} /** *

The maximum number of results to return per page.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

The maximum number of results to return per page.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

The maximum number of results to return per page.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

The maximum number of results to return per page.

*/ inline ListPackageVersionsRequest& WithMaxResults(int value) { SetMaxResults(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 bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

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_nextTokenHasBeenSet = true; 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_nextTokenHasBeenSet = true; 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_nextTokenHasBeenSet = true; 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 ListPackageVersionsRequest& 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 ListPackageVersionsRequest& 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 ListPackageVersionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The originType used to filter package versions. Only package * versions with the provided originType will be returned.

*/ inline const PackageVersionOriginType& GetOriginType() const{ return m_originType; } /** *

The originType used to filter package versions. Only package * versions with the provided originType will be returned.

*/ inline bool OriginTypeHasBeenSet() const { return m_originTypeHasBeenSet; } /** *

The originType used to filter package versions. Only package * versions with the provided originType will be returned.

*/ inline void SetOriginType(const PackageVersionOriginType& value) { m_originTypeHasBeenSet = true; m_originType = value; } /** *

The originType used to filter package versions. Only package * versions with the provided originType will be returned.

*/ inline void SetOriginType(PackageVersionOriginType&& value) { m_originTypeHasBeenSet = true; m_originType = std::move(value); } /** *

The originType used to filter package versions. Only package * versions with the provided originType will be returned.

*/ inline ListPackageVersionsRequest& WithOriginType(const PackageVersionOriginType& value) { SetOriginType(value); return *this;} /** *

The originType used to filter package versions. Only package * versions with the provided originType will be returned.

*/ inline ListPackageVersionsRequest& WithOriginType(PackageVersionOriginType&& value) { SetOriginType(std::move(value)); return *this;} private: Aws::String m_domain; bool m_domainHasBeenSet = false; Aws::String m_domainOwner; bool m_domainOwnerHasBeenSet = false; Aws::String m_repository; bool m_repositoryHasBeenSet = false; PackageFormat m_format; bool m_formatHasBeenSet = false; Aws::String m_namespace; bool m_namespaceHasBeenSet = false; Aws::String m_package; bool m_packageHasBeenSet = false; PackageVersionStatus m_status; bool m_statusHasBeenSet = false; PackageVersionSortType m_sortBy; bool m_sortByHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; PackageVersionOriginType m_originType; bool m_originTypeHasBeenSet = false; }; } // namespace Model } // namespace CodeArtifact } // namespace Aws