Interface DescribePackageResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CodeartifactResponse.Builder
,CopyableBuilder<DescribePackageResponse.Builder,
,DescribePackageResponse> SdkBuilder<DescribePackageResponse.Builder,
,DescribePackageResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
DescribePackageResponse
public static interface DescribePackageResponse.Builder
extends CodeartifactResponse.Builder, SdkPojo, CopyableBuilder<DescribePackageResponse.Builder,DescribePackageResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault DescribePackageResponse.Builder
packageValue
(Consumer<PackageDescription.Builder> packageValue) A PackageDescription object that contains information about the requested package.packageValue
(PackageDescription packageValue) A PackageDescription object that contains information about the requested package.Methods inherited from interface software.amazon.awssdk.services.codeartifact.model.CodeartifactResponse.Builder
build, responseMetadata, responseMetadata
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
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
packageValue
A PackageDescription object that contains information about the requested package.
- Parameters:
packageValue
- A PackageDescription object that contains information about the requested package.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
packageValue
default DescribePackageResponse.Builder packageValue(Consumer<PackageDescription.Builder> packageValue) A PackageDescription object that contains information about the requested package.
This is a convenience method that creates an instance of thePackageDescription.Builder
avoiding the need to create one manually viaPackageDescription.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topackageValue(PackageDescription)
.- Parameters:
packageValue
- a consumer that will call methods onPackageDescription.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-