/** * 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 { namespace Http { class URI; } //namespace Http namespace CodeArtifact { namespace Model { /** */ class PublishPackageVersionRequest : public StreamingCodeArtifactRequest { public: AWS_CODEARTIFACT_API PublishPackageVersionRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "PublishPackageVersion"; } AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; AWS_CODEARTIFACT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the domain that contains the repository that contains the package * version to publish.

*/ inline const Aws::String& GetDomain() const{ return m_domain; } /** *

The name of the domain that contains the repository that contains the package * version to publish.

*/ inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; } /** *

The name of the domain that contains the repository that contains the package * version to publish.

*/ inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; } /** *

The name of the domain that contains the repository that contains the package * version to publish.

*/ inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); } /** *

The name of the domain that contains the repository that contains the package * version to publish.

*/ inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); } /** *

The name of the domain that contains the repository that contains the package * version to publish.

*/ inline PublishPackageVersionRequest& WithDomain(const Aws::String& value) { SetDomain(value); return *this;} /** *

The name of the domain that contains the repository that contains the package * version to publish.

*/ inline PublishPackageVersionRequest& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;} /** *

The name of the domain that contains the repository that contains the package * version to publish.

*/ inline PublishPackageVersionRequest& WithDomain(const char* value) { SetDomain(value); return *this;} /** *

The 12-digit account number of the AWS account that owns the domain. It does * not include dashes or spaces.

*/ inline const Aws::String& GetDomainOwner() const{ return m_domainOwner; } /** *

The 12-digit account number of the AWS account that owns the domain. It does * not include dashes or spaces.

*/ inline bool DomainOwnerHasBeenSet() const { return m_domainOwnerHasBeenSet; } /** *

The 12-digit account number of the AWS account that owns the domain. It does * not include dashes or spaces.

*/ inline void SetDomainOwner(const Aws::String& value) { m_domainOwnerHasBeenSet = true; m_domainOwner = value; } /** *

The 12-digit account number of the AWS account that owns the domain. It does * not include dashes or spaces.

*/ inline void SetDomainOwner(Aws::String&& value) { m_domainOwnerHasBeenSet = true; m_domainOwner = std::move(value); } /** *

The 12-digit account number of the AWS account that owns the domain. It does * not include dashes or spaces.

*/ inline void SetDomainOwner(const char* value) { m_domainOwnerHasBeenSet = true; m_domainOwner.assign(value); } /** *

The 12-digit account number of the AWS account that owns the domain. It does * not include dashes or spaces.

*/ inline PublishPackageVersionRequest& WithDomainOwner(const Aws::String& value) { SetDomainOwner(value); return *this;} /** *

The 12-digit account number of the AWS account that owns the domain. It does * not include dashes or spaces.

*/ inline PublishPackageVersionRequest& WithDomainOwner(Aws::String&& value) { SetDomainOwner(std::move(value)); return *this;} /** *

The 12-digit account number of the AWS account that owns the domain. It does * not include dashes or spaces.

*/ inline PublishPackageVersionRequest& WithDomainOwner(const char* value) { SetDomainOwner(value); return *this;} /** *

The name of the repository that the package version will be published to.

*/ inline const Aws::String& GetRepository() const{ return m_repository; } /** *

The name of the repository that the package version will be published to.

*/ inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; } /** *

The name of the repository that the package version will be published to.

*/ inline void SetRepository(const Aws::String& value) { m_repositoryHasBeenSet = true; m_repository = value; } /** *

The name of the repository that the package version will be published to.

*/ inline void SetRepository(Aws::String&& value) { m_repositoryHasBeenSet = true; m_repository = std::move(value); } /** *

The name of the repository that the package version will be published to.

*/ inline void SetRepository(const char* value) { m_repositoryHasBeenSet = true; m_repository.assign(value); } /** *

The name of the repository that the package version will be published to.

*/ inline PublishPackageVersionRequest& WithRepository(const Aws::String& value) { SetRepository(value); return *this;} /** *

The name of the repository that the package version will be published to.

*/ inline PublishPackageVersionRequest& WithRepository(Aws::String&& value) { SetRepository(std::move(value)); return *this;} /** *

The name of the repository that the package version will be published to.

*/ inline PublishPackageVersionRequest& WithRepository(const char* value) { SetRepository(value); return *this;} /** *

A format that specifies the type of the package version with the requested * asset file.

The only supported value is generic.

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

A format that specifies the type of the package version with the requested * asset file.

The only supported value is generic.

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

A format that specifies the type of the package version with the requested * asset file.

The only supported value is generic.

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

A format that specifies the type of the package version with the requested * asset file.

The only supported value is generic.

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

A format that specifies the type of the package version with the requested * asset file.

The only supported value is generic.

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

A format that specifies the type of the package version with the requested * asset file.

The only supported value is generic.

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

The namespace of the package version to publish.

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

The namespace of the package version to publish.

*/ inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; } /** *

The namespace of the package version to publish.

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

The namespace of the package version to publish.

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

The namespace of the package version to publish.

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

The namespace of the package version to publish.

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

The namespace of the package version to publish.

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

The namespace of the package version to publish.

*/ inline PublishPackageVersionRequest& WithNamespace(const char* value) { SetNamespace(value); return *this;} /** *

The name of the package version to publish.

*/ inline const Aws::String& GetPackage() const{ return m_package; } /** *

The name of the package version to publish.

*/ inline bool PackageHasBeenSet() const { return m_packageHasBeenSet; } /** *

The name of the package version to publish.

*/ inline void SetPackage(const Aws::String& value) { m_packageHasBeenSet = true; m_package = value; } /** *

The name of the package version to publish.

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

The name of the package version to publish.

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

The name of the package version to publish.

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

The name of the package version to publish.

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

The name of the package version to publish.

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

The package version to publish (for example, 3.5.2).

*/ inline const Aws::String& GetPackageVersion() const{ return m_packageVersion; } /** *

The package version to publish (for example, 3.5.2).

*/ inline bool PackageVersionHasBeenSet() const { return m_packageVersionHasBeenSet; } /** *

The package version to publish (for example, 3.5.2).

*/ inline void SetPackageVersion(const Aws::String& value) { m_packageVersionHasBeenSet = true; m_packageVersion = value; } /** *

The package version to publish (for example, 3.5.2).

*/ inline void SetPackageVersion(Aws::String&& value) { m_packageVersionHasBeenSet = true; m_packageVersion = std::move(value); } /** *

The package version to publish (for example, 3.5.2).

*/ inline void SetPackageVersion(const char* value) { m_packageVersionHasBeenSet = true; m_packageVersion.assign(value); } /** *

The package version to publish (for example, 3.5.2).

*/ inline PublishPackageVersionRequest& WithPackageVersion(const Aws::String& value) { SetPackageVersion(value); return *this;} /** *

The package version to publish (for example, 3.5.2).

*/ inline PublishPackageVersionRequest& WithPackageVersion(Aws::String&& value) { SetPackageVersion(std::move(value)); return *this;} /** *

The package version to publish (for example, 3.5.2).

*/ inline PublishPackageVersionRequest& WithPackageVersion(const char* value) { SetPackageVersion(value); return *this;} /** *

The name of the asset to publish. Asset names can include Unicode letters and * numbers, and the following special characters: ~ ! @ ^ & ( ) - ` _ + [ * ] { } ; , . `

*/ inline const Aws::String& GetAssetName() const{ return m_assetName; } /** *

The name of the asset to publish. Asset names can include Unicode letters and * numbers, and the following special characters: ~ ! @ ^ & ( ) - ` _ + [ * ] { } ; , . `

*/ inline bool AssetNameHasBeenSet() const { return m_assetNameHasBeenSet; } /** *

The name of the asset to publish. Asset names can include Unicode letters and * numbers, and the following special characters: ~ ! @ ^ & ( ) - ` _ + [ * ] { } ; , . `

*/ inline void SetAssetName(const Aws::String& value) { m_assetNameHasBeenSet = true; m_assetName = value; } /** *

The name of the asset to publish. Asset names can include Unicode letters and * numbers, and the following special characters: ~ ! @ ^ & ( ) - ` _ + [ * ] { } ; , . `

*/ inline void SetAssetName(Aws::String&& value) { m_assetNameHasBeenSet = true; m_assetName = std::move(value); } /** *

The name of the asset to publish. Asset names can include Unicode letters and * numbers, and the following special characters: ~ ! @ ^ & ( ) - ` _ + [ * ] { } ; , . `

*/ inline void SetAssetName(const char* value) { m_assetNameHasBeenSet = true; m_assetName.assign(value); } /** *

The name of the asset to publish. Asset names can include Unicode letters and * numbers, and the following special characters: ~ ! @ ^ & ( ) - ` _ + [ * ] { } ; , . `

*/ inline PublishPackageVersionRequest& WithAssetName(const Aws::String& value) { SetAssetName(value); return *this;} /** *

The name of the asset to publish. Asset names can include Unicode letters and * numbers, and the following special characters: ~ ! @ ^ & ( ) - ` _ + [ * ] { } ; , . `

*/ inline PublishPackageVersionRequest& WithAssetName(Aws::String&& value) { SetAssetName(std::move(value)); return *this;} /** *

The name of the asset to publish. Asset names can include Unicode letters and * numbers, and the following special characters: ~ ! @ ^ & ( ) - ` _ + [ * ] { } ; , . `

*/ inline PublishPackageVersionRequest& WithAssetName(const char* value) { SetAssetName(value); return *this;} /** *

The SHA256 hash of the assetContent to publish. This value must * be calculated by the caller and provided with the request (see Publishing * a generic package in the CodeArtifact User Guide).

This value * is used as an integrity check to verify that the assetContent has * not changed after it was originally sent.

*/ inline const Aws::String& GetAssetSHA256() const{ return m_assetSHA256; } /** *

The SHA256 hash of the assetContent to publish. This value must * be calculated by the caller and provided with the request (see Publishing * a generic package in the CodeArtifact User Guide).

This value * is used as an integrity check to verify that the assetContent has * not changed after it was originally sent.

*/ inline bool AssetSHA256HasBeenSet() const { return m_assetSHA256HasBeenSet; } /** *

The SHA256 hash of the assetContent to publish. This value must * be calculated by the caller and provided with the request (see Publishing * a generic package in the CodeArtifact User Guide).

This value * is used as an integrity check to verify that the assetContent has * not changed after it was originally sent.

*/ inline void SetAssetSHA256(const Aws::String& value) { m_assetSHA256HasBeenSet = true; m_assetSHA256 = value; } /** *

The SHA256 hash of the assetContent to publish. This value must * be calculated by the caller and provided with the request (see Publishing * a generic package in the CodeArtifact User Guide).

This value * is used as an integrity check to verify that the assetContent has * not changed after it was originally sent.

*/ inline void SetAssetSHA256(Aws::String&& value) { m_assetSHA256HasBeenSet = true; m_assetSHA256 = std::move(value); } /** *

The SHA256 hash of the assetContent to publish. This value must * be calculated by the caller and provided with the request (see Publishing * a generic package in the CodeArtifact User Guide).

This value * is used as an integrity check to verify that the assetContent has * not changed after it was originally sent.

*/ inline void SetAssetSHA256(const char* value) { m_assetSHA256HasBeenSet = true; m_assetSHA256.assign(value); } /** *

The SHA256 hash of the assetContent to publish. This value must * be calculated by the caller and provided with the request (see Publishing * a generic package in the CodeArtifact User Guide).

This value * is used as an integrity check to verify that the assetContent has * not changed after it was originally sent.

*/ inline PublishPackageVersionRequest& WithAssetSHA256(const Aws::String& value) { SetAssetSHA256(value); return *this;} /** *

The SHA256 hash of the assetContent to publish. This value must * be calculated by the caller and provided with the request (see Publishing * a generic package in the CodeArtifact User Guide).

This value * is used as an integrity check to verify that the assetContent has * not changed after it was originally sent.

*/ inline PublishPackageVersionRequest& WithAssetSHA256(Aws::String&& value) { SetAssetSHA256(std::move(value)); return *this;} /** *

The SHA256 hash of the assetContent to publish. This value must * be calculated by the caller and provided with the request (see Publishing * a generic package in the CodeArtifact User Guide).

This value * is used as an integrity check to verify that the assetContent has * not changed after it was originally sent.

*/ inline PublishPackageVersionRequest& WithAssetSHA256(const char* value) { SetAssetSHA256(value); return *this;} /** *

Specifies whether the package version should remain in the * unfinished state. If omitted, the package version status will be * set to Published (see Package * version status in the CodeArtifact User Guide).

Valid values: * unfinished

*/ inline bool GetUnfinished() const{ return m_unfinished; } /** *

Specifies whether the package version should remain in the * unfinished state. If omitted, the package version status will be * set to Published (see Package * version status in the CodeArtifact User Guide).

Valid values: * unfinished

*/ inline bool UnfinishedHasBeenSet() const { return m_unfinishedHasBeenSet; } /** *

Specifies whether the package version should remain in the * unfinished state. If omitted, the package version status will be * set to Published (see Package * version status in the CodeArtifact User Guide).

Valid values: * unfinished

*/ inline void SetUnfinished(bool value) { m_unfinishedHasBeenSet = true; m_unfinished = value; } /** *

Specifies whether the package version should remain in the * unfinished state. If omitted, the package version status will be * set to Published (see Package * version status in the CodeArtifact User Guide).

Valid values: * unfinished

*/ inline PublishPackageVersionRequest& WithUnfinished(bool value) { SetUnfinished(value); return *this;} private: Aws::String m_domain; bool m_domainHasBeenSet = false; Aws::String m_domainOwner; bool m_domainOwnerHasBeenSet = false; Aws::String m_repository; bool m_repositoryHasBeenSet = false; PackageFormat m_format; bool m_formatHasBeenSet = false; Aws::String m_namespace; bool m_namespaceHasBeenSet = false; Aws::String m_package; bool m_packageHasBeenSet = false; Aws::String m_packageVersion; bool m_packageVersionHasBeenSet = false; Aws::String m_assetName; bool m_assetNameHasBeenSet = false; Aws::String m_assetSHA256; bool m_assetSHA256HasBeenSet = false; bool m_unfinished; bool m_unfinishedHasBeenSet = false; }; } // namespace Model } // namespace CodeArtifact } // namespace Aws