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

The format of the package version.

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

The format of the package version.

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

The format of the package version.

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

The format of the package version.

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

The format of the package version.

*/ inline PublishPackageVersionResult& WithFormat(PackageFormat&& value) { SetFormat(std::move(value)); return *this;} /** *

The namespace of the package version.

*/ inline const Aws::String& GetNamespace() const{ return m_namespace; } /** *

The namespace of the package version.

*/ inline void SetNamespace(const Aws::String& value) { m_namespace = value; } /** *

The namespace of the package version.

*/ inline void SetNamespace(Aws::String&& value) { m_namespace = std::move(value); } /** *

The namespace of the package version.

*/ inline void SetNamespace(const char* value) { m_namespace.assign(value); } /** *

The namespace of the package version.

*/ inline PublishPackageVersionResult& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;} /** *

The namespace of the package version.

*/ inline PublishPackageVersionResult& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;} /** *

The namespace of the package version.

*/ inline PublishPackageVersionResult& 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 void SetPackage(const Aws::String& value) { m_package = value; } /** *

The name of the package.

*/ inline void SetPackage(Aws::String&& value) { m_package = std::move(value); } /** *

The name of the package.

*/ inline void SetPackage(const char* value) { m_package.assign(value); } /** *

The name of the package.

*/ inline PublishPackageVersionResult& WithPackage(const Aws::String& value) { SetPackage(value); return *this;} /** *

The name of the package.

*/ inline PublishPackageVersionResult& WithPackage(Aws::String&& value) { SetPackage(std::move(value)); return *this;} /** *

The name of the package.

*/ inline PublishPackageVersionResult& WithPackage(const char* value) { SetPackage(value); return *this;} /** *

The version of the package.

*/ inline const Aws::String& GetVersion() const{ return m_version; } /** *

The version of the package.

*/ inline void SetVersion(const Aws::String& value) { m_version = value; } /** *

The version of the package.

*/ inline void SetVersion(Aws::String&& value) { m_version = std::move(value); } /** *

The version of the package.

*/ inline void SetVersion(const char* value) { m_version.assign(value); } /** *

The version of the package.

*/ inline PublishPackageVersionResult& WithVersion(const Aws::String& value) { SetVersion(value); return *this;} /** *

The version of the package.

*/ inline PublishPackageVersionResult& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;} /** *

The version of the package.

*/ inline PublishPackageVersionResult& WithVersion(const char* value) { SetVersion(value); return *this;} /** *

The revision of the package version.

*/ inline const Aws::String& GetVersionRevision() const{ return m_versionRevision; } /** *

The revision of the package version.

*/ inline void SetVersionRevision(const Aws::String& value) { m_versionRevision = value; } /** *

The revision of the package version.

*/ inline void SetVersionRevision(Aws::String&& value) { m_versionRevision = std::move(value); } /** *

The revision of the package version.

*/ inline void SetVersionRevision(const char* value) { m_versionRevision.assign(value); } /** *

The revision of the package version.

*/ inline PublishPackageVersionResult& WithVersionRevision(const Aws::String& value) { SetVersionRevision(value); return *this;} /** *

The revision of the package version.

*/ inline PublishPackageVersionResult& WithVersionRevision(Aws::String&& value) { SetVersionRevision(std::move(value)); return *this;} /** *

The revision of the package version.

*/ inline PublishPackageVersionResult& WithVersionRevision(const char* value) { SetVersionRevision(value); return *this;} /** *

A string that contains the status of the package version. For more * information, see Package * version status in the CodeArtifact User Guide.

*/ inline const PackageVersionStatus& GetStatus() const{ return m_status; } /** *

A string that contains the status of the package version. For more * information, see Package * version status in the CodeArtifact User Guide.

*/ inline void SetStatus(const PackageVersionStatus& value) { m_status = value; } /** *

A string that contains the status of the package version. For more * information, see Package * version status in the CodeArtifact User Guide.

*/ inline void SetStatus(PackageVersionStatus&& value) { m_status = std::move(value); } /** *

A string that contains the status of the package version. For more * information, see Package * version status in the CodeArtifact User Guide.

*/ inline PublishPackageVersionResult& WithStatus(const PackageVersionStatus& value) { SetStatus(value); return *this;} /** *

A string that contains the status of the package version. For more * information, see Package * version status in the CodeArtifact User Guide.

*/ inline PublishPackageVersionResult& WithStatus(PackageVersionStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

An AssetSummary * for the published asset.

*/ inline const AssetSummary& GetAsset() const{ return m_asset; } /** *

An AssetSummary * for the published asset.

*/ inline void SetAsset(const AssetSummary& value) { m_asset = value; } /** *

An AssetSummary * for the published asset.

*/ inline void SetAsset(AssetSummary&& value) { m_asset = std::move(value); } /** *

An AssetSummary * for the published asset.

*/ inline PublishPackageVersionResult& WithAsset(const AssetSummary& value) { SetAsset(value); return *this;} /** *

An AssetSummary * for the published asset.

*/ inline PublishPackageVersionResult& WithAsset(AssetSummary&& value) { SetAsset(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 PublishPackageVersionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline PublishPackageVersionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline PublishPackageVersionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: PackageFormat m_format; Aws::String m_namespace; Aws::String m_package; Aws::String m_version; Aws::String m_versionRevision; PackageVersionStatus m_status; AssetSummary m_asset; Aws::String m_requestId; }; } // namespace Model } // namespace CodeArtifact } // namespace Aws