Interface PublishPackageVersionRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CodeartifactRequest.Builder,CopyableBuilder<PublishPackageVersionRequest.Builder,PublishPackageVersionRequest>,SdkBuilder<PublishPackageVersionRequest.Builder,PublishPackageVersionRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- PublishPackageVersionRequest
public static interface PublishPackageVersionRequest.Builder extends CodeartifactRequest.Builder, SdkPojo, CopyableBuilder<PublishPackageVersionRequest.Builder,PublishPackageVersionRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PublishPackageVersionRequest.BuilderassetName(String assetName)The name of the asset to publish.PublishPackageVersionRequest.BuilderassetSHA256(String assetSHA256)The SHA256 hash of theassetContentto publish.PublishPackageVersionRequest.Builderdomain(String domain)The name of the domain that contains the repository that contains the package version to publish.PublishPackageVersionRequest.BuilderdomainOwner(String domainOwner)The 12-digit account number of the AWS account that owns the domain.PublishPackageVersionRequest.Builderformat(String format)A format that specifies the type of the package version with the requested asset file.PublishPackageVersionRequest.Builderformat(PackageFormat format)A format that specifies the type of the package version with the requested asset file.PublishPackageVersionRequest.Buildernamespace(String namespace)The namespace of the package version to publish.PublishPackageVersionRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)PublishPackageVersionRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)PublishPackageVersionRequest.BuilderpackageValue(String packageValue)The name of the package version to publish.PublishPackageVersionRequest.BuilderpackageVersion(String packageVersion)The package version to publish (for example,3.5.2).PublishPackageVersionRequest.Builderrepository(String repository)The name of the repository that the package version will be published to.PublishPackageVersionRequest.Builderunfinished(Boolean unfinished)Specifies whether the package version should remain in theunfinishedstate.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.services.codeartifact.model.CodeartifactRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
domain
PublishPackageVersionRequest.Builder domain(String domain)
The name of the domain that contains the repository that contains the package version to publish.
- Parameters:
domain- The name of the domain that contains the repository that contains the package version to publish.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
domainOwner
PublishPackageVersionRequest.Builder domainOwner(String domainOwner)
The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
- Parameters:
domainOwner- The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
repository
PublishPackageVersionRequest.Builder repository(String repository)
The name of the repository that the package version will be published to.
- Parameters:
repository- The name of the repository that the package version will be published to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
format
PublishPackageVersionRequest.Builder format(String format)
A format that specifies the type of the package version with the requested asset file.
The only supported value is
generic.- Parameters:
format- A format that specifies the type of the package version with the requested asset file.The only supported value is
generic.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PackageFormat,PackageFormat
-
format
PublishPackageVersionRequest.Builder format(PackageFormat format)
A format that specifies the type of the package version with the requested asset file.
The only supported value is
generic.- Parameters:
format- A format that specifies the type of the package version with the requested asset file.The only supported value is
generic.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PackageFormat,PackageFormat
-
namespace
PublishPackageVersionRequest.Builder namespace(String namespace)
The namespace of the package version to publish.
- Parameters:
namespace- The namespace of the package version to publish.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
packageValue
PublishPackageVersionRequest.Builder packageValue(String packageValue)
The name of the package version to publish.
- Parameters:
packageValue- The name of the package version to publish.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
packageVersion
PublishPackageVersionRequest.Builder packageVersion(String packageVersion)
The package version to publish (for example,
3.5.2).- Parameters:
packageVersion- The package version to publish (for example,3.5.2).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assetName
PublishPackageVersionRequest.Builder assetName(String assetName)
The name of the asset to publish. Asset names can include Unicode letters and numbers, and the following special characters:
~ ! @ ^ & ( ) - ` _ + [ ] { } ; , . `- Parameters:
assetName- The name of the asset to publish. Asset names can include Unicode letters and numbers, and the following special characters:~ ! @ ^ & ( ) - ` _ + [ ] { } ; , . `- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assetSHA256
PublishPackageVersionRequest.Builder assetSHA256(String assetSHA256)
The SHA256 hash of the
assetContentto 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
assetContenthas not changed after it was originally sent.- Parameters:
assetSHA256- The SHA256 hash of theassetContentto 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
assetContenthas not changed after it was originally sent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
unfinished
PublishPackageVersionRequest.Builder unfinished(Boolean unfinished)
Specifies whether the package version should remain in the
unfinishedstate. If omitted, the package version status will be set toPublished(see Package version status in the CodeArtifact User Guide).Valid values:
unfinished- Parameters:
unfinished- Specifies whether the package version should remain in theunfinishedstate. If omitted, the package version status will be set toPublished(see Package version status in the CodeArtifact User Guide).Valid values:
unfinished- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
PublishPackageVersionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
PublishPackageVersionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-