/** * 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 { namespace Http { class URI; } //namespace Http namespace CodeArtifact { namespace Model { /** */ class AWS_CODEARTIFACT_API GetPackageVersionReadmeRequest : public CodeArtifactRequest { public: GetPackageVersionReadmeRequest(); // 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 "GetPackageVersionReadme"; } Aws::String SerializePayload() const override; void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The name of the domain that contains the repository that contains the * package version with the requested readme file.

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

The name of the domain that contains the repository that contains the * package version with the requested readme file.

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

The name of the domain that contains the repository that contains the * package version with the requested readme file.

*/ 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 * package version with the requested readme file.

*/ 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 * package version with the requested readme file.

*/ 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 * package version with the requested readme file.

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

The name of the domain that contains the repository that contains the * package version with the requested readme file.

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

The name of the domain that contains the repository that contains the * package version with the requested readme file.

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

The 12-digit account number of the AWS 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 AWS 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 AWS 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 AWS 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 AWS 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 AWS account that owns the domain. It does * not include dashes or spaces.

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

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

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

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

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

The repository that contains the package with the requested readme file. *

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

The repository that contains the package with the requested readme file. *

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

The repository that contains the package with the requested readme file. *

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

The repository that contains the package with the requested readme file. *

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

The repository that contains the package with the requested readme file. *

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

The repository that contains the package with the requested readme file. *

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

The repository that contains the package with the requested readme file. *

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

The repository that contains the package with the requested readme file. *

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

A format that specifies the type of the package version with the requested * readme file. The valid values are:

  • npm

    *
  • pypi

  • maven

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

A format that specifies the type of the package version with the requested * readme file. The valid values are:

  • npm

    *
  • pypi

  • maven

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

A format that specifies the type of the package version with the requested * readme file. The valid values are:

  • npm

    *
  • pypi

  • maven

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

A format that specifies the type of the package version with the requested * readme file. The valid values are:

  • npm

    *
  • pypi

  • maven

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

A format that specifies the type of the package version with the requested * readme file. The valid values are:

  • npm

    *
  • pypi

  • maven

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

A format that specifies the type of the package version with the requested * readme file. The valid values are:

  • npm

    *
  • pypi

  • maven

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

The namespace of the package. 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.

  • A Python * package does not contain a corresponding component, so Python packages do not * have a namespace.

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

The namespace of the package. 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.

  • A Python * package does not contain a corresponding component, so Python packages do not * have a namespace.

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

The namespace of the package. 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.

  • A Python * package does not contain a corresponding component, so Python packages do not * have a namespace.

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

The namespace of the package. 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.

  • A Python * package does not contain a corresponding component, so Python packages do not * have a namespace.

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

The namespace of the package. 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.

  • A Python * package does not contain a corresponding component, so Python packages do not * have a namespace.

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

The namespace of the package. 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.

  • A Python * package does not contain a corresponding component, so Python packages do not * have a namespace.

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

The namespace of the package. 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.

  • A Python * package does not contain a corresponding component, so Python packages do not * have a namespace.

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

The namespace of the package. 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.

  • A Python * package does not contain a corresponding component, so Python packages do not * have a namespace.

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

The name of the package version that contains the requested readme file. *

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

The name of the package version that contains the requested readme file. *

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

The name of the package version that contains the requested readme file. *

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

The name of the package version that contains the requested readme file. *

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

The name of the package version that contains the requested readme file. *

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

The name of the package version that contains the requested readme file. *

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

The name of the package version that contains the requested readme file. *

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

The name of the package version that contains the requested readme file. *

*/ inline GetPackageVersionReadmeRequest& WithPackage(const char* value) { SetPackage(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 bool PackageVersionHasBeenSet() const { return m_packageVersionHasBeenSet; } /** *

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

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

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

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

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

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

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

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

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

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

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

*/ inline GetPackageVersionReadmeRequest& WithPackageVersion(const char* value) { SetPackageVersion(value); return *this;} private: Aws::String m_domain; bool m_domainHasBeenSet; Aws::String m_domainOwner; bool m_domainOwnerHasBeenSet; Aws::String m_repository; bool m_repositoryHasBeenSet; PackageFormat m_format; bool m_formatHasBeenSet; Aws::String m_namespace; bool m_namespaceHasBeenSet; Aws::String m_package; bool m_packageHasBeenSet; Aws::String m_packageVersion; bool m_packageVersionHasBeenSet; }; } // namespace Model } // namespace CodeArtifact } // namespace Aws