Interface PutPackageOriginConfigurationRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CodeartifactRequest.Builder,CopyableBuilder<PutPackageOriginConfigurationRequest.Builder,PutPackageOriginConfigurationRequest>,SdkBuilder<PutPackageOriginConfigurationRequest.Builder,PutPackageOriginConfigurationRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- PutPackageOriginConfigurationRequest
public static interface PutPackageOriginConfigurationRequest.Builder extends CodeartifactRequest.Builder, SdkPojo, CopyableBuilder<PutPackageOriginConfigurationRequest.Builder,PutPackageOriginConfigurationRequest>
-
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.services.codeartifact.model.CodeartifactRequest.Builder
build
-
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
-
domain
PutPackageOriginConfigurationRequest.Builder domain(String domain)
The name of the domain that contains the repository that contains the package.
- Parameters:
domain- The name of the domain that contains the repository that contains the package.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
domainOwner
PutPackageOriginConfigurationRequest.Builder domainOwner(String domainOwner)
The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.
- Parameters:
domainOwner- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
repository
PutPackageOriginConfigurationRequest.Builder repository(String repository)
The name of the repository that contains the package.
- Parameters:
repository- The name of the repository that contains the package.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
format
PutPackageOriginConfigurationRequest.Builder format(String format)
A format that specifies the type of the package to be updated.
- Parameters:
format- A format that specifies the type of the package to be updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PackageFormat,PackageFormat
-
format
PutPackageOriginConfigurationRequest.Builder format(PackageFormat format)
A format that specifies the type of the package to be updated.
- Parameters:
format- A format that specifies the type of the package to be updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PackageFormat,PackageFormat
-
namespace
PutPackageOriginConfigurationRequest.Builder namespace(String namespace)
The namespace of the package to be updated. 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 to be updated. 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
PutPackageOriginConfigurationRequest.Builder packageValue(String packageValue)
The name of the package to be updated.
- Parameters:
packageValue- The name of the package to be updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
restrictions
PutPackageOriginConfigurationRequest.Builder restrictions(PackageOriginRestrictions restrictions)
A PackageOriginRestrictions object that contains information about the
upstreamandpublishpackage origin restrictions. Theupstreamrestriction determines if new package versions can be ingested or retained from external connections or upstream repositories. Thepublishrestriction determines if new package versions can be published directly to the repository.You must include both the desired
upstreamandpublishrestrictions.- Parameters:
restrictions- A PackageOriginRestrictions object that contains information about theupstreamandpublishpackage origin restrictions. Theupstreamrestriction determines if new package versions can be ingested or retained from external connections or upstream repositories. Thepublishrestriction determines if new package versions can be published directly to the repository.You must include both the desired
upstreamandpublishrestrictions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
restrictions
default PutPackageOriginConfigurationRequest.Builder restrictions(Consumer<PackageOriginRestrictions.Builder> restrictions)
A PackageOriginRestrictions object that contains information about the
upstreamandpublishpackage origin restrictions. Theupstreamrestriction determines if new package versions can be ingested or retained from external connections or upstream repositories. Thepublishrestriction determines if new package versions can be published directly to the repository.You must include both the desired
This is a convenience method that creates an instance of theupstreamandpublishrestrictions.PackageOriginRestrictions.Builderavoiding the need to create one manually viaPackageOriginRestrictions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torestrictions(PackageOriginRestrictions).- Parameters:
restrictions- a consumer that will call methods onPackageOriginRestrictions.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
restrictions(PackageOriginRestrictions)
-
overrideConfiguration
PutPackageOriginConfigurationRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
PutPackageOriginConfigurationRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-