Interface PackageIdentity.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PackageIdentity.Builder,,PackageIdentity> SdkBuilder<PackageIdentity.Builder,,PackageIdentity> SdkPojo
- Enclosing class:
PackageIdentity
@Mutable
@NotThreadSafe
public static interface PackageIdentity.Builder
extends SdkPojo, CopyableBuilder<PackageIdentity.Builder,PackageIdentity>
-
Method Summary
Modifier and TypeMethodDescriptionThe package ecosystem, such asnpmorpypi.The package name, as used in its ecosystem.Exact version.versionRange(String versionRange) A version range as one or more comparisons separated by commas, such as>=1.0, <2.0.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
ecosystem
The package ecosystem, such as
npmorpypi.- Parameters:
ecosystem- The package ecosystem, such asnpmorpypi.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The package name, as used in its ecosystem.
- Parameters:
name- The package name, as used in its ecosystem.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
version
Exact version. Mutually exclusive with versionRange, validated server-side.
- Parameters:
version- Exact version. Mutually exclusive with versionRange, validated server-side.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
versionRange
A version range as one or more comparisons separated by commas, such as
>=1.0, <2.0. Each comparison is=,>,>=,<, or<=followed by a version in the ecosystem's own format. Ecosystem shorthands such as^1.0or~=1.2aren't accepted. Mutually exclusive with version.- Parameters:
versionRange- A version range as one or more comparisons separated by commas, such as>=1.0, <2.0. Each comparison is=,>,>=,<, or<=followed by a version in the ecosystem's own format. Ecosystem shorthands such as^1.0or~=1.2aren't accepted. Mutually exclusive with version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-