Interface PackageSummary.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<PackageSummary.Builder,
,PackageSummary> SdkBuilder<PackageSummary.Builder,
,PackageSummary> SdkPojo
- Enclosing class:
PackageSummary
-
Method Summary
Modifier and TypeMethodDescriptionThe format of the package.format
(PackageFormat format) The format of the package.The namespace of the package.default PackageSummary.Builder
originConfiguration
(Consumer<PackageOriginConfiguration.Builder> originConfiguration) A PackageOriginConfiguration object that contains a PackageOriginRestrictions object that contains information about the upstream and publish package origin restrictions.originConfiguration
(PackageOriginConfiguration originConfiguration) A PackageOriginConfiguration object that contains a PackageOriginRestrictions object that contains information about the upstream and publish package origin restrictions.packageValue
(String packageValue) The name of 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
The format of the package.
- Parameters:
format
- The format of the package.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
format
The format of the package.
- Parameters:
format
- The format 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, Ruby, and Cargo 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, Ruby, and Cargo 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.
-
-
packageValue
The name of the package.
- Parameters:
packageValue
- The name of the package.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
originConfiguration
A PackageOriginConfiguration object that contains a PackageOriginRestrictions object that contains information about the upstream and publish package origin restrictions.
- Parameters:
originConfiguration
- A PackageOriginConfiguration object that contains a PackageOriginRestrictions object that contains information about the upstream and publish package origin restrictions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
originConfiguration
default PackageSummary.Builder originConfiguration(Consumer<PackageOriginConfiguration.Builder> originConfiguration) A PackageOriginConfiguration object that contains a PackageOriginRestrictions object that contains information about the upstream and publish package origin restrictions.
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:
-