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

See Also:

AWS * API Reference

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

A format that specifies the type of the package.

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

A format that specifies the type of the package.

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

A format that specifies the type of the package.

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

A format that specifies the type of the package.

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

A format that specifies the type of the package.

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

A format that specifies the type of the package.

*/ inline PackageDescription& 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 PackageDescription& 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 PackageDescription& 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 PackageDescription& WithNamespace(const char* value) { SetNamespace(value); return *this;} /** *

The name of the package.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the package.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the package.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the package.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the package.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the package.

*/ inline PackageDescription& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the package.

*/ inline PackageDescription& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the package.

*/ inline PackageDescription& WithName(const char* value) { SetName(value); return *this;} /** *

The package origin configuration for the package.

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

The package origin configuration for the package.

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

The package origin configuration for the package.

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

The package origin configuration for the package.

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

The package origin configuration for the package.

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

The package origin configuration for the package.

*/ inline PackageDescription& 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_name; bool m_nameHasBeenSet = false; PackageOriginConfiguration m_originConfiguration; bool m_originConfigurationHasBeenSet = false; }; } // namespace Model } // namespace CodeArtifact } // namespace Aws