/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Details about a package, including its format, namespace, and name.
* See Also:
AWS
* API Reference
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
.
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
.
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
.
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
.
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
.
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
.
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
.
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
.
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