Interface PackageSummary.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<PackageSummary.Builder,PackageSummary>,SdkBuilder<PackageSummary.Builder,PackageSummary>,SdkPojo
- Enclosing class:
- PackageSummary
public static interface PackageSummary.Builder extends SdkPojo, CopyableBuilder<PackageSummary.Builder,PackageSummary>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description PackageSummary.Builderformat(String format)The format of the package.PackageSummary.Builderformat(PackageFormat format)The format of the package.PackageSummary.Buildernamespace(String namespace)The namespace of the package.default PackageSummary.BuilderoriginConfiguration(Consumer<PackageOriginConfiguration.Builder> originConfiguration)A PackageOriginConfiguration object that contains a PackageOriginRestrictions object that contains information about the upstream and publish package origin restrictions.PackageSummary.BuilderoriginConfiguration(PackageOriginConfiguration originConfiguration)A PackageOriginConfiguration object that contains a PackageOriginRestrictions object that contains information about the upstream and publish package origin restrictions.PackageSummary.BuilderpackageValue(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 Detail
-
format
PackageSummary.Builder format(String 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:
PackageFormat,PackageFormat
-
format
PackageSummary.Builder format(PackageFormat 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:
PackageFormat,PackageFormat
-
namespace
PackageSummary.Builder namespace(String 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 is its
groupId. -
The namespace of an npm package is its
scope. -
Python and NuGet packages do not contain a corresponding component, packages of those formats do not have a namespace.
-
The namespace of a generic package is its
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 is its
groupId. -
The namespace of an npm package is its
scope. -
Python and NuGet packages do not contain a corresponding component, packages of those formats do not have a namespace.
-
The namespace of a generic package is its
namespace.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
packageValue
PackageSummary.Builder packageValue(String 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
PackageSummary.Builder originConfiguration(PackageOriginConfiguration 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.Builderavoiding the need to create one manually viaPackageOriginConfiguration.builder().When the
Consumercompletes,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:
originConfiguration(PackageOriginConfiguration)
-
-