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 Summary
Modifier and TypeMethodDescriptionapprovalRuleContent
(String approvalRuleContent) The content of the approval rule.approvalRuleId
(String approvalRuleId) The system-generated ID of the approval rule.approvalRuleName
(String approvalRuleName) The name of the approval rule.creationDate
(Instant creationDate) The date the approval rule was created, in timestamp format.lastModifiedDate
(Instant lastModifiedDate) The date the approval rule was most recently changed, in timestamp format.lastModifiedUser
(String lastModifiedUser) The Amazon Resource Name (ARN) of the user who made the most recent changes to the approval rule.default ApprovalRule.Builder
originApprovalRuleTemplate
(Consumer<OriginApprovalRuleTemplate.Builder> originApprovalRuleTemplate) The approval rule template used to create the rule.originApprovalRuleTemplate
(OriginApprovalRuleTemplate originApprovalRuleTemplate) The approval rule template used to create the rule.ruleContentSha256
(String ruleContentSha256) The SHA-256 hash signature for the content of the approval rule.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
-
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
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
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
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
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
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
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 theOriginApprovalRuleTemplate.Builder
avoiding the need to create one manually viaOriginApprovalRuleTemplate.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tooriginApprovalRuleTemplate(OriginApprovalRuleTemplate)
.- Parameters:
originApprovalRuleTemplate
- a consumer that will call methods onOriginApprovalRuleTemplate.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-