Interface PutPackageOriginConfigurationResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CodeartifactResponse.Builder,CopyableBuilder<PutPackageOriginConfigurationResponse.Builder,,PutPackageOriginConfigurationResponse> SdkBuilder<PutPackageOriginConfigurationResponse.Builder,,PutPackageOriginConfigurationResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
PutPackageOriginConfigurationResponse
public static interface PutPackageOriginConfigurationResponse.Builder
extends CodeartifactResponse.Builder, SdkPojo, CopyableBuilder<PutPackageOriginConfigurationResponse.Builder,PutPackageOriginConfigurationResponse>
-
Method Summary
Modifier and TypeMethodDescriptionoriginConfiguration(Consumer<PackageOriginConfiguration.Builder> originConfiguration) A PackageOriginConfiguration object that describes the origin configuration set for the package.originConfiguration(PackageOriginConfiguration originConfiguration) A PackageOriginConfiguration object that describes the origin configuration set for the package.Methods inherited from interface software.amazon.awssdk.services.codeartifact.model.CodeartifactResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
originConfiguration
PutPackageOriginConfigurationResponse.Builder originConfiguration(PackageOriginConfiguration originConfiguration) A PackageOriginConfiguration object that describes the origin configuration set for the package. It contains a PackageOriginRestrictions object that describes how new versions of the package can be introduced to the repository.
- Parameters:
originConfiguration- A PackageOriginConfiguration object that describes the origin configuration set for the package. It contains a PackageOriginRestrictions object that describes how new versions of the package can be introduced to the repository.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
originConfiguration
default PutPackageOriginConfigurationResponse.Builder originConfiguration(Consumer<PackageOriginConfiguration.Builder> originConfiguration) A PackageOriginConfiguration object that describes the origin configuration set for the package. It contains a PackageOriginRestrictions object that describes how new versions of the package can be introduced to the repository.
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:
-