Interface Permit.Builder

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

@Mutable @NotThreadSafe public static interface Permit.Builder extends SdkPojo, CopyableBuilder<Permit.Builder,Permit>
  • Method Details

    • actions

      Permit.Builder actions(ActionSet actions)

      The set of actions that the support operator is authorized to perform.

      Parameters:
      actions - The set of actions that the support operator is authorized to perform.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • actions

      default Permit.Builder actions(Consumer<ActionSet.Builder> actions)

      The set of actions that the support operator is authorized to perform.

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

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

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

      Permit.Builder resources(ResourceSet resources)

      The set of resources that the support operator is authorized to act upon.

      Parameters:
      resources - The set of resources that the support operator is authorized to act upon.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resources

      default Permit.Builder resources(Consumer<ResourceSet.Builder> resources)

      The set of resources that the support operator is authorized to act upon.

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

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

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

      Permit.Builder conditions(Collection<Condition> conditions)

      The time-window conditions that constrain when the permit is valid. Maximum of 2 conditions.

      Parameters:
      conditions - The time-window conditions that constrain when the permit is valid. Maximum of 2 conditions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • conditions

      Permit.Builder conditions(Condition... conditions)

      The time-window conditions that constrain when the permit is valid. Maximum of 2 conditions.

      Parameters:
      conditions - The time-window conditions that constrain when the permit is valid. Maximum of 2 conditions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • conditions

      Permit.Builder conditions(Consumer<Condition.Builder>... conditions)

      The time-window conditions that constrain when the permit is valid. Maximum of 2 conditions.

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

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

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