Interface GitHubResourceCapabilities.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<GitHubResourceCapabilities.Builder,,GitHubResourceCapabilities> SdkBuilder<GitHubResourceCapabilities.Builder,,GitHubResourceCapabilities> SdkPojo
- Enclosing class:
GitHubResourceCapabilities
-
Method Summary
Modifier and TypeMethodDescriptionleaveComments(Boolean leaveComments) Indicates whether the integration can leave comments on pull requests.remediateCode(Boolean remediateCode) Indicates whether the integration can create code remediation pull requests.triggerFilterGroups(Collection<TriggerFilterGroup> triggerFilterGroups) The filter groups that control which pull request events start an automatic code review whenleaveCommentsis enabled.triggerFilterGroups(Consumer<TriggerFilterGroup.Builder>... triggerFilterGroups) The filter groups that control which pull request events start an automatic code review whenleaveCommentsis enabled.triggerFilterGroups(TriggerFilterGroup... triggerFilterGroups) The filter groups that control which pull request events start an automatic code review whenleaveCommentsis enabled.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
triggerFilterGroups
GitHubResourceCapabilities.Builder triggerFilterGroups(Collection<TriggerFilterGroup> triggerFilterGroups) The filter groups that control which pull request events start an automatic code review when
leaveCommentsis enabled. A review starts when any group matches. If you omit this, a review starts onPULL_REQUEST_READY_FOR_REVIEWevents.- Parameters:
triggerFilterGroups- The filter groups that control which pull request events start an automatic code review whenleaveCommentsis enabled. A review starts when any group matches. If you omit this, a review starts onPULL_REQUEST_READY_FOR_REVIEWevents.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
triggerFilterGroups
The filter groups that control which pull request events start an automatic code review when
leaveCommentsis enabled. A review starts when any group matches. If you omit this, a review starts onPULL_REQUEST_READY_FOR_REVIEWevents.- Parameters:
triggerFilterGroups- The filter groups that control which pull request events start an automatic code review whenleaveCommentsis enabled. A review starts when any group matches. If you omit this, a review starts onPULL_REQUEST_READY_FOR_REVIEWevents.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
triggerFilterGroups
GitHubResourceCapabilities.Builder triggerFilterGroups(Consumer<TriggerFilterGroup.Builder>... triggerFilterGroups) The filter groups that control which pull request events start an automatic code review when
This is a convenience method that creates an instance of theleaveCommentsis enabled. A review starts when any group matches. If you omit this, a review starts onPULL_REQUEST_READY_FOR_REVIEWevents.TriggerFilterGroup.Builderavoiding the need to create one manually viaTriggerFilterGroup.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totriggerFilterGroups(List<TriggerFilterGroup>).- Parameters:
triggerFilterGroups- a consumer that will call methods onTriggerFilterGroup.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
leaveComments
Indicates whether the integration can leave comments on pull requests.
- Parameters:
leaveComments- Indicates whether the integration can leave comments on pull requests.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
remediateCode
Indicates whether the integration can create code remediation pull requests.
- Parameters:
remediateCode- Indicates whether the integration can create code remediation pull requests.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-