Interface ApprovalRule.Builder

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

public static interface ApprovalRule.Builder extends SdkPojo, CopyableBuilder<ApprovalRule.Builder,ApprovalRule>
  • Method Details

    • approvalRuleId

      ApprovalRule.Builder approvalRuleId(String approvalRuleId)

      The system-generated ID of the approval rule.

      Parameters:
      approvalRuleId - The system-generated ID of the approval rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • approvalRuleName

      ApprovalRule.Builder approvalRuleName(String approvalRuleName)

      The name of the approval rule.

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

      ApprovalRule.Builder approvalRuleContent(String approvalRuleContent)

      The content of the approval rule.

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

      ApprovalRule.Builder ruleContentSha256(String ruleContentSha256)

      The SHA-256 hash signature for the content of the approval rule.

      Parameters:
      ruleContentSha256 - The SHA-256 hash signature for the content of the approval rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastModifiedDate

      ApprovalRule.Builder lastModifiedDate(Instant lastModifiedDate)

      The date the approval rule was most recently changed, in timestamp format.

      Parameters:
      lastModifiedDate - The date the approval rule was most recently changed, in timestamp format.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • creationDate

      ApprovalRule.Builder creationDate(Instant creationDate)

      The date the approval rule was created, in timestamp format.

      Parameters:
      creationDate - The date the approval rule was created, in timestamp format.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastModifiedUser

      ApprovalRule.Builder lastModifiedUser(String lastModifiedUser)

      The Amazon Resource Name (ARN) of the user who made the most recent changes to the approval rule.

      Parameters:
      lastModifiedUser - The Amazon Resource Name (ARN) of the user who made the most recent changes to the approval rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • originApprovalRuleTemplate

      ApprovalRule.Builder originApprovalRuleTemplate(OriginApprovalRuleTemplate originApprovalRuleTemplate)

      The approval rule template used to create the rule.

      Parameters:
      originApprovalRuleTemplate - The approval rule template used to create the rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • originApprovalRuleTemplate

      default ApprovalRule.Builder originApprovalRuleTemplate(Consumer<OriginApprovalRuleTemplate.Builder> originApprovalRuleTemplate)

      The approval rule template used to create the rule.

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

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

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