Interface Control.Builder

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

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

    • type

      Control.Builder type(String type)

      The type of the control.

      Parameters:
      type - The type of the control.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • type

      The type of the control.

      Parameters:
      type - The type of the control.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • framework

      Control.Builder framework(String framework)

      The name of the compliance framework.

      Parameters:
      framework - The name of the compliance framework.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • controlId

      Control.Builder controlId(String controlId)

      The control identifier. Optional. If omitted, the operation applies to the full framework.

      Parameters:
      controlId - The control identifier. Optional. If omitted, the operation applies to the full framework.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • frameworkVersion

      Control.Builder frameworkVersion(String frameworkVersion)

      The version of the compliance framework.

      Parameters:
      frameworkVersion - The version of the compliance framework.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • groupId

      Control.Builder groupId(String groupId)

      The parent group ID (for example, "A.2" for control "A.2.2").

      Parameters:
      groupId - The parent group ID (for example, "A.2" for control "A.2.2").
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • title

      Control.Builder title(String title)

      The human-readable title of the control.

      Parameters:
      title - The human-readable title of the control.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      Control.Builder description(String description)

      A description of the control.

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

      Control.Builder requirements(Collection<Requirement> requirements)

      The individual checks an assessment scores for this control. Absent when the control has none.

      Parameters:
      requirements - The individual checks an assessment scores for this control. Absent when the control has none.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • requirements

      Control.Builder requirements(Requirement... requirements)

      The individual checks an assessment scores for this control. Absent when the control has none.

      Parameters:
      requirements - The individual checks an assessment scores for this control. Absent when the control has none.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • requirements

      Control.Builder requirements(Consumer<Requirement.Builder>... requirements)

      The individual checks an assessment scores for this control. Absent when the control has none.

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

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

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

      Control.Builder controlIntents(Collection<String> controlIntents)

      The technical control intents classify how an assessment evaluates this leaf control. Leaf controls only.

      Parameters:
      controlIntents - The technical control intents classify how an assessment evaluates this leaf control. Leaf controls only.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • controlIntents

      Control.Builder controlIntents(String... controlIntents)

      The technical control intents classify how an assessment evaluates this leaf control. Leaf controls only.

      Parameters:
      controlIntents - The technical control intents classify how an assessment evaluates this leaf control. Leaf controls only.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • workflowType

      Control.Builder workflowType(String workflowType)

      How AWS Assurance evaluates the control. Applies only to leaf controls. Valid values:

      • automated-scan – Evaluates the configuration of your AWS resources.

      • document – Evaluates the evidence documents that you provide.

      • hybrid – Evaluates both resource configuration and evidence documents.

      Parameters:
      workflowType - How AWS Assurance evaluates the control. Applies only to leaf controls. Valid values:

      • automated-scan – Evaluates the configuration of your AWS resources.

      • document – Evaluates the evidence documents that you provide.

      • hybrid – Evaluates both resource configuration and evidence documents.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • workflowType

      Control.Builder workflowType(WorkflowType workflowType)

      How AWS Assurance evaluates the control. Applies only to leaf controls. Valid values:

      • automated-scan – Evaluates the configuration of your AWS resources.

      • document – Evaluates the evidence documents that you provide.

      • hybrid – Evaluates both resource configuration and evidence documents.

      Parameters:
      workflowType - How AWS Assurance evaluates the control. Applies only to leaf controls. Valid values:

      • automated-scan – Evaluates the configuration of your AWS resources.

      • document – Evaluates the evidence documents that you provide.

      • hybrid – Evaluates both resource configuration and evidence documents.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      Control.Builder status(String status)

      The lifecycle status of the control.

      Parameters:
      status - The lifecycle status of the control.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The lifecycle status of the control.

      Parameters:
      status - The lifecycle status of the control.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • createdAt

      Control.Builder createdAt(Instant createdAt)

      The time when you created the control. The response includes it only for controls in custom frameworks.

      Parameters:
      createdAt - The time when you created the control. The response includes it only for controls in custom frameworks.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedAt

      Control.Builder updatedAt(Instant updatedAt)

      The time when the control was last modified. Returned for controls in custom frameworks only.

      Parameters:
      updatedAt - The time when the control was last modified. Returned for controls in custom frameworks only.
      Returns:
      Returns a reference to this object so that method calls can be chained together.