Interface ControlSet.Builder

    • Method Detail

      • id

        ControlSet.Builder id​(String id)

        The identifier of the control set in the assessment. This is the control set name in a plain string format.

        Parameters:
        id - The identifier of the control set in the assessment. This is the control set name in a plain string format.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • name

        ControlSet.Builder name​(String name)

        The name of the control set.

        Parameters:
        name - The name of the control set.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • controls

        ControlSet.Builder controls​(Collection<Control> controls)

        The list of controls within the control set.

        Parameters:
        controls - The list of controls within the control set.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • controls

        ControlSet.Builder controls​(Control... controls)

        The list of controls within the control set.

        Parameters:
        controls - The list of controls within the control set.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • controls

        ControlSet.Builder controls​(Consumer<Control.Builder>... controls)

        The list of controls within the control set.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #controls(List).

        Parameters:
        controls - a consumer that will call methods on Control.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #controls(java.util.Collection)