Interface PackageDescription.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<PackageDescription.Builder,PackageDescription>,SdkBuilder<PackageDescription.Builder,PackageDescription>,SdkPojo
- Enclosing class:
- PackageDescription
public static interface PackageDescription.Builder extends SdkPojo, CopyableBuilder<PackageDescription.Builder,PackageDescription>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description PackageDescription.Builderformat(String format)A format that specifies the type of the package.PackageDescription.Builderformat(PackageFormat format)A format that specifies the type of the package.PackageDescription.Buildername(String name)The name of the package.PackageDescription.Buildernamespace(String namespace)The namespace of the package.default PackageDescription.BuilderoriginConfiguration(Consumer<PackageOriginConfiguration.Builder> originConfiguration)The package origin configuration for the package.PackageDescription.BuilderoriginConfiguration(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 Detail
-
format
PackageDescription.Builder format(String 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:
PackageFormat,PackageFormat
-
format
PackageDescription.Builder format(PackageFormat 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:
PackageFormat,PackageFormat
-
namespace
PackageDescription.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.
-
-
name
PackageDescription.Builder name(String 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
PackageDescription.Builder originConfiguration(PackageOriginConfiguration 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.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)
-
-