/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CodeArtifact { namespace Model { class PutPackageOriginConfigurationResult { public: AWS_CODEARTIFACT_API PutPackageOriginConfigurationResult(); AWS_CODEARTIFACT_API PutPackageOriginConfigurationResult(const Aws::AmazonWebServiceResult& result); AWS_CODEARTIFACT_API PutPackageOriginConfigurationResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A PackageOriginConfiguration * object that describes the origin configuration set for the package. It contains * a PackageOriginRestrictions * object that describes how new versions of the package can be introduced to the * repository.

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

A PackageOriginConfiguration * object that describes the origin configuration set for the package. It contains * a PackageOriginRestrictions * object that describes how new versions of the package can be introduced to the * repository.

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

A PackageOriginConfiguration * object that describes the origin configuration set for the package. It contains * a PackageOriginRestrictions * object that describes how new versions of the package can be introduced to the * repository.

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

A PackageOriginConfiguration * object that describes the origin configuration set for the package. It contains * a PackageOriginRestrictions * object that describes how new versions of the package can be introduced to the * repository.

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

A PackageOriginConfiguration * object that describes the origin configuration set for the package. It contains * a PackageOriginRestrictions * object that describes how new versions of the package can be introduced to the * repository.

*/ inline PutPackageOriginConfigurationResult& WithOriginConfiguration(PackageOriginConfiguration&& value) { SetOriginConfiguration(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline PutPackageOriginConfigurationResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline PutPackageOriginConfigurationResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline PutPackageOriginConfigurationResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: PackageOriginConfiguration m_originConfiguration; Aws::String m_requestId; }; } // namespace Model } // namespace CodeArtifact } // namespace Aws