Interface GetRuleResponse.Builder

  • Method Details

    • action

      The action of the rule.

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

      The action of the rule.

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

      GetRuleResponse.Builder createdAt(Instant createdAt)

      The timestamp at which the rule was created.

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

      GetRuleResponse.Builder createdBy(String createdBy)

      The user who created the rule.

      Parameters:
      createdBy - The user who created the rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      GetRuleResponse.Builder description(String description)

      The description of the rule.

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

      The detail of the rule.

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

      The detail of the rule.

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

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

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

      GetRuleResponse.Builder identifier(String identifier)

      The ID of the rule.

      Parameters:
      identifier - The ID of the rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastUpdatedBy

      GetRuleResponse.Builder lastUpdatedBy(String lastUpdatedBy)

      The timestamp at which the rule was last updated.

      Parameters:
      lastUpdatedBy - The timestamp at which the rule was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      The name of the rule.

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

      GetRuleResponse.Builder revision(String revision)

      The revision of the rule.

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

      GetRuleResponse.Builder ruleType(String ruleType)

      The type of the rule.

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

      GetRuleResponse.Builder ruleType(RuleType ruleType)

      The type of the rule.

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

      The scope of the rule.

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

      The scope of the rule.

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

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

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

      The target of the rule.

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

      The target of the rule.

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

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

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

      GetRuleResponse.Builder targetType(String targetType)

      The target type of the rule.

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

      GetRuleResponse.Builder targetType(RuleTargetType targetType)

      The target type of the rule.

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

      GetRuleResponse.Builder updatedAt(Instant updatedAt)

      The timestamp at which the rule was last updated.

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