Interface CodeRemediationTask.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<CodeRemediationTask.Builder,,CodeRemediationTask> SdkBuilder<CodeRemediationTask.Builder,,CodeRemediationTask> SdkPojo
- Enclosing class:
CodeRemediationTask
@Mutable
@NotThreadSafe
public static interface CodeRemediationTask.Builder
extends SdkPojo, CopyableBuilder<CodeRemediationTask.Builder,CodeRemediationTask>
-
Method Summary
Modifier and TypeMethodDescriptionThe current status of the code remediation task.status(CodeRemediationTaskStatus status) The current status of the code remediation task.statusReason(String statusReason) The reason for the current status of the code remediation task.taskDetails(Collection<CodeRemediationTaskDetails> taskDetails) The list of details for the code remediation task, including repository name, code diff link, and pull request link.taskDetails(Consumer<CodeRemediationTaskDetails.Builder>... taskDetails) The list of details for the code remediation task, including repository name, code diff link, and pull request link.taskDetails(CodeRemediationTaskDetails... taskDetails) The list of details for the code remediation task, including repository name, code diff link, and pull request link.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
-
status
The current status of the code remediation task.
- Parameters:
status- The current status of the code remediation task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The current status of the code remediation task.
- Parameters:
status- The current status of the code remediation task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
statusReason
The reason for the current status of the code remediation task.
- Parameters:
statusReason- The reason for the current status of the code remediation task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taskDetails
The list of details for the code remediation task, including repository name, code diff link, and pull request link.
- Parameters:
taskDetails- The list of details for the code remediation task, including repository name, code diff link, and pull request link.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taskDetails
The list of details for the code remediation task, including repository name, code diff link, and pull request link.
- Parameters:
taskDetails- The list of details for the code remediation task, including repository name, code diff link, and pull request link.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taskDetails
CodeRemediationTask.Builder taskDetails(Consumer<CodeRemediationTaskDetails.Builder>... taskDetails) The list of details for the code remediation task, including repository name, code diff link, and pull request link.
This is a convenience method that creates an instance of theCodeRemediationTaskDetails.Builderavoiding the need to create one manually viaCodeRemediationTaskDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totaskDetails(List<CodeRemediationTaskDetails>).- Parameters:
taskDetails- a consumer that will call methods onCodeRemediationTaskDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-