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

Details about the package origin configuration of a package.

See * Also:

AWS * API Reference

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

A PackageOriginRestrictions object that contains information * about the upstream and publish package origin configuration for the package.

*/ inline const PackageOriginRestrictions& GetRestrictions() const{ return m_restrictions; } /** *

A PackageOriginRestrictions object that contains information * about the upstream and publish package origin configuration for the package.

*/ inline bool RestrictionsHasBeenSet() const { return m_restrictionsHasBeenSet; } /** *

A PackageOriginRestrictions object that contains information * about the upstream and publish package origin configuration for the package.

*/ inline void SetRestrictions(const PackageOriginRestrictions& value) { m_restrictionsHasBeenSet = true; m_restrictions = value; } /** *

A PackageOriginRestrictions object that contains information * about the upstream and publish package origin configuration for the package.

*/ inline void SetRestrictions(PackageOriginRestrictions&& value) { m_restrictionsHasBeenSet = true; m_restrictions = std::move(value); } /** *

A PackageOriginRestrictions object that contains information * about the upstream and publish package origin configuration for the package.

*/ inline PackageOriginConfiguration& WithRestrictions(const PackageOriginRestrictions& value) { SetRestrictions(value); return *this;} /** *

A PackageOriginRestrictions object that contains information * about the upstream and publish package origin configuration for the package.

*/ inline PackageOriginConfiguration& WithRestrictions(PackageOriginRestrictions&& value) { SetRestrictions(std::move(value)); return *this;} private: PackageOriginRestrictions m_restrictions; bool m_restrictionsHasBeenSet = false; }; } // namespace Model } // namespace CodeArtifact } // namespace Aws