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

See Also:

AWS * API Reference

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

The format of the package.

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

The format of the package.

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

The format of the package.

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

The format of the package.

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

The format of the package.

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

The format of the package.

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

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

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

  • 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 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;} /** *

A PackageOriginConfiguration * object that contains a PackageOriginRestrictions * object that contains information about the upstream and publish package origin * restrictions.

*/ inline const PackageOriginConfiguration& GetOriginConfiguration() const{ return m_originConfiguration; } /** *

A PackageOriginConfiguration * object that contains a PackageOriginRestrictions * object that contains information about the upstream and publish package origin * restrictions.

*/ inline bool OriginConfigurationHasBeenSet() const { return m_originConfigurationHasBeenSet; } /** *

A PackageOriginConfiguration * object that contains a PackageOriginRestrictions * object that contains information about the upstream and publish package origin * restrictions.

*/ inline void SetOriginConfiguration(const PackageOriginConfiguration& value) { m_originConfigurationHasBeenSet = true; m_originConfiguration = value; } /** *

A PackageOriginConfiguration * object that contains a PackageOriginRestrictions * object that contains information about the upstream and publish package origin * restrictions.

*/ inline void SetOriginConfiguration(PackageOriginConfiguration&& value) { m_originConfigurationHasBeenSet = true; m_originConfiguration = std::move(value); } /** *

A PackageOriginConfiguration * object that contains a PackageOriginRestrictions * object that contains information about the upstream and publish package origin * restrictions.

*/ inline PackageSummary& WithOriginConfiguration(const PackageOriginConfiguration& value) { SetOriginConfiguration(value); return *this;} /** *

A PackageOriginConfiguration * object that contains a PackageOriginRestrictions * object that contains information about the upstream and publish package origin * restrictions.

*/ inline PackageSummary& WithOriginConfiguration(PackageOriginConfiguration&& value) { SetOriginConfiguration(std::move(value)); return *this;} private: PackageFormat m_format; bool m_formatHasBeenSet = false; Aws::String m_namespace; bool m_namespaceHasBeenSet = false; Aws::String m_package; bool m_packageHasBeenSet = false; PackageOriginConfiguration m_originConfiguration; bool m_originConfigurationHasBeenSet = false; }; } // namespace Model } // namespace CodeArtifact } // namespace Aws