Interface PackageGroupOriginRestriction.Builder

All Superinterfaces:
Buildable, CopyableBuilder<PackageGroupOriginRestriction.Builder,PackageGroupOriginRestriction>, SdkBuilder<PackageGroupOriginRestriction.Builder,PackageGroupOriginRestriction>, SdkPojo
Enclosing class:
PackageGroupOriginRestriction

public static interface PackageGroupOriginRestriction.Builder extends SdkPojo, CopyableBuilder<PackageGroupOriginRestriction.Builder,PackageGroupOriginRestriction>
  • Method Details

    • mode

      The package group origin restriction setting. If the value of mode is ALLOW, ALLOW_SPECIFIC_REPOSITORIES, or BLOCK, then the value of effectiveMode is the same. Otherwise, when the value is INHERIT, then the value of effectiveMode is the value of mode of the first parent group which does not have a value of INHERIT.

      Parameters:
      mode - The package group origin restriction setting. If the value of mode is ALLOW, ALLOW_SPECIFIC_REPOSITORIES, or BLOCK, then the value of effectiveMode is the same. Otherwise, when the value is INHERIT, then the value of effectiveMode is the value of mode of the first parent group which does not have a value of INHERIT.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • mode

      The package group origin restriction setting. If the value of mode is ALLOW, ALLOW_SPECIFIC_REPOSITORIES, or BLOCK, then the value of effectiveMode is the same. Otherwise, when the value is INHERIT, then the value of effectiveMode is the value of mode of the first parent group which does not have a value of INHERIT.

      Parameters:
      mode - The package group origin restriction setting. If the value of mode is ALLOW, ALLOW_SPECIFIC_REPOSITORIES, or BLOCK, then the value of effectiveMode is the same. Otherwise, when the value is INHERIT, then the value of effectiveMode is the value of mode of the first parent group which does not have a value of INHERIT.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • effectiveMode

      PackageGroupOriginRestriction.Builder effectiveMode(String effectiveMode)

      The effective package group origin restriction setting. If the value of mode is ALLOW, ALLOW_SPECIFIC_REPOSITORIES, or BLOCK, then the value of effectiveMode is the same. Otherwise, when the value of mode is INHERIT, then the value of effectiveMode is the value of mode of the first parent group which does not have a value of INHERIT.

      Parameters:
      effectiveMode - The effective package group origin restriction setting. If the value of mode is ALLOW, ALLOW_SPECIFIC_REPOSITORIES, or BLOCK, then the value of effectiveMode is the same. Otherwise, when the value of mode is INHERIT, then the value of effectiveMode is the value of mode of the first parent group which does not have a value of INHERIT.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • effectiveMode

      The effective package group origin restriction setting. If the value of mode is ALLOW, ALLOW_SPECIFIC_REPOSITORIES, or BLOCK, then the value of effectiveMode is the same. Otherwise, when the value of mode is INHERIT, then the value of effectiveMode is the value of mode of the first parent group which does not have a value of INHERIT.

      Parameters:
      effectiveMode - The effective package group origin restriction setting. If the value of mode is ALLOW, ALLOW_SPECIFIC_REPOSITORIES, or BLOCK, then the value of effectiveMode is the same. Otherwise, when the value of mode is INHERIT, then the value of effectiveMode is the value of mode of the first parent group which does not have a value of INHERIT.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • inheritedFrom

      The parent package group that the package group origin restrictions are inherited from.

      Parameters:
      inheritedFrom - The parent package group that the package group origin restrictions are inherited from.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • inheritedFrom

      The parent package group that the package group origin restrictions are inherited from.

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

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

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

      PackageGroupOriginRestriction.Builder repositoriesCount(Long repositoriesCount)

      The number of repositories in the allowed repository list.

      Parameters:
      repositoriesCount - The number of repositories in the allowed repository list.
      Returns:
      Returns a reference to this object so that method calls can be chained together.