Interface PutPackageOriginConfigurationRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, CodeartifactRequest.Builder, CopyableBuilder<PutPackageOriginConfigurationRequest.Builder,PutPackageOriginConfigurationRequest>, SdkBuilder<PutPackageOriginConfigurationRequest.Builder,PutPackageOriginConfigurationRequest>, SdkPojo, SdkRequest.Builder
Enclosing class:
PutPackageOriginConfigurationRequest

  • Method Details

    • 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

      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

      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

      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:
    • 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:
    • 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 version is its groupId.

      • The namespace of an npm or Swift package version is its scope.

      • The namespace of a generic package is its namespace.

      • Python, NuGet, and Ruby package versions do not contain a corresponding component, package versions of those formats do not have a 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 version is its groupId.

      • The namespace of an npm or Swift package version is its scope.

      • The namespace of a generic package is its namespace.

      • Python, NuGet, and Ruby package versions do not contain a corresponding component, package versions of those formats do not have a namespace.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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

      A PackageOriginRestrictions object that contains information about the upstream and publish package origin restrictions. The upstream restriction determines if new package versions can be ingested or retained from external connections or upstream repositories. The publish restriction determines if new package versions can be published directly to the repository.

      You must include both the desired upstream and publish restrictions.

      Parameters:
      restrictions - A PackageOriginRestrictions object that contains information about the upstream and publish package origin restrictions. The upstream restriction determines if new package versions can be ingested or retained from external connections or upstream repositories. The publish restriction determines if new package versions can be published directly to the repository.

      You must include both the desired upstream and publish restrictions.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • restrictions

      A PackageOriginRestrictions object that contains information about the upstream and publish package origin restrictions. The upstream restriction determines if new package versions can be ingested or retained from external connections or upstream repositories. The publish restriction determines if new package versions can be published directly to the repository.

      You must include both the desired upstream and publish restrictions.

      This is a convenience method that creates an instance of the PackageOriginRestrictions.Builder avoiding the need to create one manually via PackageOriginRestrictions.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to restrictions(PackageOriginRestrictions).

      Parameters:
      restrictions - a consumer that will call methods on PackageOriginRestrictions.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.