Interface RuleDetail.Builder

  • Method Details

    • ruleId

      RuleDetail.Builder ruleId(String ruleId)

      The unique identifier for the rule.

      Parameters:
      ruleId - The unique identifier for the rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • arn

      The Amazon Resource Name (ARN) of the rule.

      Parameters:
      arn - The Amazon Resource Name (ARN) of the rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      The display name of the rule.

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

      RuleDetail.Builder description(String description)

      A description of what the rule detects.

      Parameters:
      description - A description of what the rule detects.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • severity

      RuleDetail.Builder severity(String severity)

      The severity level assigned to findings generated by this rule.

      Parameters:
      severity - The severity level assigned to findings generated by this rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • severity

      The severity level assigned to findings generated by this rule.

      Parameters:
      severity - The severity level assigned to findings generated by this rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • dataSource

      RuleDetail.Builder dataSource(String dataSource)

      The data source that the rule analyzes.

      Parameters:
      dataSource - The data source that the rule analyzes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • dataSource

      The data source that the rule analyzes.

      Parameters:
      dataSource - The data source that the rule analyzes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • tactic

      RuleDetail.Builder tactic(String tactic)

      The MITRE ATT&CK tactic associated with the rule.

      Parameters:
      tactic - The MITRE ATT&CK tactic associated with the rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • technique

      RuleDetail.Builder technique(String technique)

      The MITRE ATT&CK technique associated with the rule.

      Parameters:
      technique - The MITRE ATT&CK technique associated with the rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • service

      RuleDetail.Builder service(String service)

      The Amazon Web Services service associated with the rule.

      Parameters:
      service - The Amazon Web Services service associated with the rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • definition

      RuleDetail.Builder definition(RuleDefinition definition)

      The detection logic definition for the rule.

      Parameters:
      definition - The detection logic definition for the rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • definition

      default RuleDetail.Builder definition(Consumer<RuleDefinition.Builder> definition)

      The detection logic definition for the rule.

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

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

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

      RuleDetail.Builder language(String language)

      The language used for the detection logic expression.

      Parameters:
      language - The language used for the detection logic expression.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • language

      RuleDetail.Builder language(RuleLanguage language)

      The language used for the detection logic expression.

      Parameters:
      language - The language used for the detection logic expression.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • schema

      RuleDetail.Builder schema(String schema)

      The schema version used by the rule definition.

      Parameters:
      schema - The schema version used by the rule definition.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • schema

      The schema version used by the rule definition.

      Parameters:
      schema - The schema version used by the rule definition.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • createdAt

      RuleDetail.Builder createdAt(Instant createdAt)

      The timestamp when the rule was created.

      Parameters:
      createdAt - The timestamp when the rule was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedAt

      RuleDetail.Builder updatedAt(Instant updatedAt)

      The timestamp when the rule was last updated.

      Parameters:
      updatedAt - The timestamp when the rule was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.