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

The format of the package with the requested readme file.

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

The format of the package with the requested readme file.

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

The format of the package with the requested readme file.

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

The format of the package with the requested readme file.

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

The format of the package with the requested readme file.

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

The namespace of the package version with the requested readme file. 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 with the requested readme file. 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 with the requested readme file. 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 with the requested readme file. 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 with the requested readme file. 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 GetPackageVersionReadmeResult& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;} /** *

The namespace of the package version with the requested readme file. 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 GetPackageVersionReadmeResult& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;} /** *

The namespace of the package version with the requested readme file. 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 GetPackageVersionReadmeResult& WithNamespace(const char* value) { SetNamespace(value); return *this;} /** *

The name of the package that contains the returned readme file.

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

The name of the package that contains the returned readme file.

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

The name of the package that contains the returned readme file.

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

The name of the package that contains the returned readme file.

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

The name of the package that contains the returned readme file.

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

The name of the package that contains the returned readme file.

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

The name of the package that contains the returned readme file.

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

The version of the package with the requested readme file.

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

The version of the package with the requested readme file.

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

The version of the package with the requested readme file.

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

The version of the package with the requested readme file.

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

The version of the package with the requested readme file.

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

The version of the package with the requested readme file.

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

The version of the package with the requested readme file.

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

The current revision associated with the package version.

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

The current revision associated with the package version.

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

The text of the returned readme file.

*/ inline const Aws::String& GetReadme() const{ return m_readme; } /** *

The text of the returned readme file.

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

The text of the returned readme file.

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

The text of the returned readme file.

*/ inline void SetReadme(const char* value) { m_readme.assign(value); } /** *

The text of the returned readme file.

*/ inline GetPackageVersionReadmeResult& WithReadme(const Aws::String& value) { SetReadme(value); return *this;} /** *

The text of the returned readme file.

*/ inline GetPackageVersionReadmeResult& WithReadme(Aws::String&& value) { SetReadme(std::move(value)); return *this;} /** *

The text of the returned readme file.

*/ inline GetPackageVersionReadmeResult& WithReadme(const char* value) { SetReadme(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 GetPackageVersionReadmeResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetPackageVersionReadmeResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetPackageVersionReadmeResult& 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_readme; Aws::String m_requestId; }; } // namespace Model } // namespace CodeArtifact } // namespace Aws