/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CodeArtifact { namespace Model { /** *

Details about a package, including its format, namespace, and name. The * ListPackages operation returns a list of * PackageSummary objects.

See Also:

AWS * API Reference

*/ class AWS_CODEARTIFACT_API PackageSummary { public: PackageSummary(); PackageSummary(Aws::Utils::Json::JsonView jsonValue); PackageSummary& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

The format of the package. Valid values are:

  • * npm

  • pypi

  • * maven

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

The format of the package. Valid values are:

  • * npm

  • pypi

  • * maven

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

The format of the package. Valid values are:

  • * npm

  • pypi

  • * maven

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

The format of the package. Valid values are:

  • * npm

  • pypi

  • * maven

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

The format of the package. Valid values are:

  • * npm

  • pypi

  • * maven

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

The format of the package. Valid values are:

  • * npm

  • pypi

  • * maven

*/ inline PackageSummary& 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 PackageSummary& 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 PackageSummary& 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 PackageSummary& 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 bool PackageHasBeenSet() const { return m_packageHasBeenSet; } /** *

The name of the package.

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

The name of the package.

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

The name of the package.

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

The name of the package.

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

The name of the package.

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

The name of the package.

*/ inline PackageSummary& WithPackage(const char* value) { SetPackage(value); return *this;} private: PackageFormat m_format; bool m_formatHasBeenSet; Aws::String m_namespace; bool m_namespaceHasBeenSet; Aws::String m_package; bool m_packageHasBeenSet; }; } // namespace Model } // namespace CodeArtifact } // namespace Aws