Interface PackageDescription.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<PackageDescription.Builder,
,PackageDescription> SdkBuilder<PackageDescription.Builder,
,PackageDescription> SdkPojo
- Enclosing class:
PackageDescription
-
Method Summary
Modifier and TypeMethodDescriptionA format that specifies the type of the package.format
(PackageFormat format) A format that specifies the type of the package.The name of the package.The namespace of the package.default PackageDescription.Builder
originConfiguration
(Consumer<PackageOriginConfiguration.Builder> originConfiguration) The package origin configuration for the package.originConfiguration
(PackageOriginConfiguration originConfiguration) The package origin configuration for the package.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 Details
-
format
A format that specifies the type of the package.
- Parameters:
format
- A format that specifies the type of the package.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
format
A format that specifies the type of the package.
- Parameters:
format
- A format that specifies the type of the package.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
namespace
The namespace of the package. The package component that specifies its namespace depends on its type. For example:
-
The namespace of a Maven package version is its
groupId
. -
The namespace of an npm or Swift package version is its
scope
. -
The namespace of a generic package is its
namespace
. -
Python, NuGet, and Ruby package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
- Parameters:
namespace
- The namespace of the package. The package component that specifies its namespace depends on its type. For example:-
The namespace of a Maven package version is its
groupId
. -
The namespace of an npm or Swift package version is its
scope
. -
The namespace of a generic package is its
namespace
. -
Python, NuGet, and Ruby package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
name
The name of the package.
- Parameters:
name
- The name of the package.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
originConfiguration
The package origin configuration for the package.
- Parameters:
originConfiguration
- The package origin configuration for the package.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
originConfiguration
default PackageDescription.Builder originConfiguration(Consumer<PackageOriginConfiguration.Builder> originConfiguration) The package origin configuration for the package.
This is a convenience method that creates an instance of thePackageOriginConfiguration.Builder
avoiding the need to create one manually viaPackageOriginConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tooriginConfiguration(PackageOriginConfiguration)
.- Parameters:
originConfiguration
- a consumer that will call methods onPackageOriginConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-