Struct aws_sdk_codeartifact::operation::publish_package_version::builders::PublishPackageVersionInputBuilder
source · #[non_exhaustive]pub struct PublishPackageVersionInputBuilder { /* private fields */ }
Expand description
A builder for PublishPackageVersionInput
.
Implementations§
source§impl PublishPackageVersionInputBuilder
impl PublishPackageVersionInputBuilder
sourcepub fn domain(self, input: impl Into<String>) -> Self
pub fn domain(self, input: impl Into<String>) -> Self
The name of the domain that contains the repository that contains the package version to publish.
sourcepub fn set_domain(self, input: Option<String>) -> Self
pub fn set_domain(self, input: Option<String>) -> Self
The name of the domain that contains the repository that contains the package version to publish.
sourcepub fn domain_owner(self, input: impl Into<String>) -> Self
pub fn domain_owner(self, input: impl Into<String>) -> Self
The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
sourcepub fn set_domain_owner(self, input: Option<String>) -> Self
pub fn set_domain_owner(self, input: Option<String>) -> Self
The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
sourcepub fn repository(self, input: impl Into<String>) -> Self
pub fn repository(self, input: impl Into<String>) -> Self
The name of the repository that the package version will be published to.
sourcepub fn set_repository(self, input: Option<String>) -> Self
pub fn set_repository(self, input: Option<String>) -> Self
The name of the repository that the package version will be published to.
sourcepub fn format(self, input: PackageFormat) -> Self
pub fn format(self, input: PackageFormat) -> Self
A format that specifies the type of the package version with the requested asset file.
sourcepub fn set_format(self, input: Option<PackageFormat>) -> Self
pub fn set_format(self, input: Option<PackageFormat>) -> Self
A format that specifies the type of the package version with the requested asset file.
sourcepub fn namespace(self, input: impl Into<String>) -> Self
pub fn namespace(self, input: impl Into<String>) -> Self
The namespace of the package version to publish.
sourcepub fn set_namespace(self, input: Option<String>) -> Self
pub fn set_namespace(self, input: Option<String>) -> Self
The namespace of the package version to publish.
sourcepub fn package(self, input: impl Into<String>) -> Self
pub fn package(self, input: impl Into<String>) -> Self
The name of the package version to publish.
sourcepub fn set_package(self, input: Option<String>) -> Self
pub fn set_package(self, input: Option<String>) -> Self
The name of the package version to publish.
sourcepub fn package_version(self, input: impl Into<String>) -> Self
pub fn package_version(self, input: impl Into<String>) -> Self
The package version to publish (for example, 3.5.2
).
sourcepub fn set_package_version(self, input: Option<String>) -> Self
pub fn set_package_version(self, input: Option<String>) -> Self
The package version to publish (for example, 3.5.2
).
sourcepub fn asset_content(self, input: ByteStream) -> Self
pub fn asset_content(self, input: ByteStream) -> Self
The content of the asset to publish.
sourcepub fn set_asset_content(self, input: Option<ByteStream>) -> Self
pub fn set_asset_content(self, input: Option<ByteStream>) -> Self
The content of the asset to publish.
sourcepub fn asset_name(self, input: impl Into<String>) -> Self
pub fn asset_name(self, input: impl Into<String>) -> Self
The name of the asset to publish. Asset names can include Unicode letters and numbers, and the following special characters: ~ ! @ ^ & ( ) - ` _ + [ ] { } ; , . `
sourcepub fn set_asset_name(self, input: Option<String>) -> Self
pub fn set_asset_name(self, input: Option<String>) -> Self
The name of the asset to publish. Asset names can include Unicode letters and numbers, and the following special characters: ~ ! @ ^ & ( ) - ` _ + [ ] { } ; , . `
sourcepub fn asset_sha256(self, input: impl Into<String>) -> Self
pub fn asset_sha256(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_asset_sha256(self, input: Option<String>) -> Self
pub fn set_asset_sha256(self, input: Option<String>) -> Self
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.
sourcepub fn unfinished(self, input: bool) -> Self
pub fn unfinished(self, input: bool) -> Self
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
sourcepub fn set_unfinished(self, input: Option<bool>) -> Self
pub fn set_unfinished(self, input: Option<bool>) -> Self
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
sourcepub fn build(self) -> Result<PublishPackageVersionInput, BuildError>
pub fn build(self) -> Result<PublishPackageVersionInput, BuildError>
Consumes the builder and constructs a PublishPackageVersionInput
.