Interface SupplyChainPolicy.Builder

  • Method Details

    • name

      The display name of the policy.

      Parameters:
      name - The display name of the policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      SupplyChainPolicy.Builder description(String description)

      A description of the policy.

      Parameters:
      description - A description of the policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rules

      The deny rules of the policy, from 1 to 5.

      Parameters:
      rules - The deny rules of the policy, from 1 to 5.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rules

      The deny rules of the policy, from 1 to 5.

      Parameters:
      rules - The deny rules of the policy, from 1 to 5.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rules

      The deny rules of the policy, from 1 to 5.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to rules(List<Rule>).

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