Interface ControlSet.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ControlSet.Builder,
,ControlSet> SdkBuilder<ControlSet.Builder,
,ControlSet> SdkPojo
- Enclosing class:
ControlSet
public static interface ControlSet.Builder
extends SdkPojo, CopyableBuilder<ControlSet.Builder,ControlSet>
-
Method Summary
Modifier and TypeMethodDescriptioncontrols
(Collection<Control> controls) The list of controls within the control set.controls
(Consumer<Control.Builder>... controls) The list of controls within the control set.The list of controls within the control set.The identifier of the control set in the assessment.The name of the control set.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
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
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
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
The list of controls within the control set.
This is a convenience method that creates an instance of theControl.Builder
avoiding the need to create one manually viaControl.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontrols(List<Control>)
.- Parameters:
controls
- a consumer that will call methods onControl.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-