// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`PublishPackageVersion`](crate::operation::publish_package_version::builders::PublishPackageVersionFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`domain(impl Into<String>)`](crate::operation::publish_package_version::builders::PublishPackageVersionFluentBuilder::domain) / [`set_domain(Option<String>)`](crate::operation::publish_package_version::builders::PublishPackageVersionFluentBuilder::set_domain): <p>The name of the domain that contains the repository that contains the package version to publish.</p>
/// - [`domain_owner(impl Into<String>)`](crate::operation::publish_package_version::builders::PublishPackageVersionFluentBuilder::domain_owner) / [`set_domain_owner(Option<String>)`](crate::operation::publish_package_version::builders::PublishPackageVersionFluentBuilder::set_domain_owner): <p>The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.</p>
/// - [`repository(impl Into<String>)`](crate::operation::publish_package_version::builders::PublishPackageVersionFluentBuilder::repository) / [`set_repository(Option<String>)`](crate::operation::publish_package_version::builders::PublishPackageVersionFluentBuilder::set_repository): <p>The name of the repository that the package version will be published to.</p>
/// - [`format(PackageFormat)`](crate::operation::publish_package_version::builders::PublishPackageVersionFluentBuilder::format) / [`set_format(Option<PackageFormat>)`](crate::operation::publish_package_version::builders::PublishPackageVersionFluentBuilder::set_format): <p>A format that specifies the type of the package version with the requested asset file.</p>
/// - [`namespace(impl Into<String>)`](crate::operation::publish_package_version::builders::PublishPackageVersionFluentBuilder::namespace) / [`set_namespace(Option<String>)`](crate::operation::publish_package_version::builders::PublishPackageVersionFluentBuilder::set_namespace): <p>The namespace of the package version to publish.</p>
/// - [`package(impl Into<String>)`](crate::operation::publish_package_version::builders::PublishPackageVersionFluentBuilder::package) / [`set_package(Option<String>)`](crate::operation::publish_package_version::builders::PublishPackageVersionFluentBuilder::set_package): <p>The name of the package version to publish.</p>
/// - [`package_version(impl Into<String>)`](crate::operation::publish_package_version::builders::PublishPackageVersionFluentBuilder::package_version) / [`set_package_version(Option<String>)`](crate::operation::publish_package_version::builders::PublishPackageVersionFluentBuilder::set_package_version): <p>The package version to publish (for example, <code>3.5.2</code>).</p>
/// - [`asset_content(ByteStream)`](crate::operation::publish_package_version::builders::PublishPackageVersionFluentBuilder::asset_content) / [`set_asset_content(ByteStream)`](crate::operation::publish_package_version::builders::PublishPackageVersionFluentBuilder::set_asset_content): <p>The content of the asset to publish.</p>
/// - [`asset_name(impl Into<String>)`](crate::operation::publish_package_version::builders::PublishPackageVersionFluentBuilder::asset_name) / [`set_asset_name(Option<String>)`](crate::operation::publish_package_version::builders::PublishPackageVersionFluentBuilder::set_asset_name): <p>The name of the asset to publish. Asset names can include Unicode letters and numbers, and the following special characters: <code>~ ! @ ^ & ( ) - ` _ + [ ] { } ; , . `</code> </p>
/// - [`asset_sha256(impl Into<String>)`](crate::operation::publish_package_version::builders::PublishPackageVersionFluentBuilder::asset_sha256) / [`set_asset_sha256(Option<String>)`](crate::operation::publish_package_version::builders::PublishPackageVersionFluentBuilder::set_asset_sha256): <p>The SHA256 hash of the <code>assetContent</code> to publish. This value must be calculated by the caller and provided with the request (see <a href="https://docs.aws.amazon.com/codeartifact/latest/ug/using-generic.html#publishing-generic-packages">Publishing a generic package</a> in the <i>CodeArtifact User Guide</i>).</p> <p>This value is used as an integrity check to verify that the <code>assetContent</code> has not changed after it was originally sent.</p>
/// - [`unfinished(bool)`](crate::operation::publish_package_version::builders::PublishPackageVersionFluentBuilder::unfinished) / [`set_unfinished(Option<bool>)`](crate::operation::publish_package_version::builders::PublishPackageVersionFluentBuilder::set_unfinished): <p>Specifies whether the package version should remain in the <code>unfinished</code> state. If omitted, the package version status will be set to <code>Published</code> (see <a href="https://docs.aws.amazon.com/codeartifact/latest/ug/packages-overview.html#package-version-status">Package version status</a> in the <i>CodeArtifact User Guide</i>).</p> <p>Valid values: <code>unfinished</code> </p>
/// - On success, responds with [`PublishPackageVersionOutput`](crate::operation::publish_package_version::PublishPackageVersionOutput) with field(s):
/// - [`format(Option<PackageFormat>)`](crate::operation::publish_package_version::PublishPackageVersionOutput::format): <p>The format of the package version.</p>
/// - [`namespace(Option<String>)`](crate::operation::publish_package_version::PublishPackageVersionOutput::namespace): <p>The namespace of the package version.</p>
/// - [`package(Option<String>)`](crate::operation::publish_package_version::PublishPackageVersionOutput::package): <p>The name of the package.</p>
/// - [`version(Option<String>)`](crate::operation::publish_package_version::PublishPackageVersionOutput::version): <p>The version of the package.</p>
/// - [`version_revision(Option<String>)`](crate::operation::publish_package_version::PublishPackageVersionOutput::version_revision): <p>The revision of the package version.</p>
/// - [`status(Option<PackageVersionStatus>)`](crate::operation::publish_package_version::PublishPackageVersionOutput::status): <p>A string that contains the status of the package version. For more information, see <a href="https://docs.aws.amazon.com/codeartifact/latest/ug/packages-overview.html#package-version-status.html#package-version-status">Package version status</a> in the <i>CodeArtifact User Guide</i>.</p>
/// - [`asset(Option<AssetSummary>)`](crate::operation::publish_package_version::PublishPackageVersionOutput::asset): <p>An <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_AssetSummary.html">AssetSummary</a> for the published asset.</p>
/// - On failure, responds with [`SdkError<PublishPackageVersionError>`](crate::operation::publish_package_version::PublishPackageVersionError)
pub fn publish_package_version(
&self,
) -> crate::operation::publish_package_version::builders::PublishPackageVersionFluentBuilder
{
crate::operation::publish_package_version::builders::PublishPackageVersionFluentBuilder::new(
self.handle.clone(),
)
}
}