Interface BatchGetFindingsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CodeGuruSecurityResponse.Builder,CopyableBuilder<BatchGetFindingsResponse.Builder,,BatchGetFindingsResponse> SdkBuilder<BatchGetFindingsResponse.Builder,,BatchGetFindingsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
BatchGetFindingsResponse
-
Method Summary
Modifier and TypeMethodDescriptionfailedFindings(Collection<BatchGetFindingsError> failedFindings) A list of errors for individual findings which were not fetched.failedFindings(Consumer<BatchGetFindingsError.Builder>... failedFindings) A list of errors for individual findings which were not fetched.failedFindings(BatchGetFindingsError... failedFindings) A list of errors for individual findings which were not fetched.findings(Collection<Finding> findings) A list of all findings which were successfully fetched.findings(Consumer<Finding.Builder>... findings) A list of all findings which were successfully fetched.A list of all findings which were successfully fetched.Methods inherited from interface software.amazon.awssdk.services.codegurusecurity.model.CodeGuruSecurityResponse.Builder
build, responseMetadata, responseMetadataMethods 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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
failedFindings
A list of errors for individual findings which were not fetched. Each BatchGetFindingsError contains the
scanName,findingId,errorCodeand errormessage.- Parameters:
failedFindings- A list of errors for individual findings which were not fetched. Each BatchGetFindingsError contains thescanName,findingId,errorCodeand errormessage.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failedFindings
A list of errors for individual findings which were not fetched. Each BatchGetFindingsError contains the
scanName,findingId,errorCodeand errormessage.- Parameters:
failedFindings- A list of errors for individual findings which were not fetched. Each BatchGetFindingsError contains thescanName,findingId,errorCodeand errormessage.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failedFindings
BatchGetFindingsResponse.Builder failedFindings(Consumer<BatchGetFindingsError.Builder>... failedFindings) A list of errors for individual findings which were not fetched. Each BatchGetFindingsError contains the
This is a convenience method that creates an instance of thescanName,findingId,errorCodeand errormessage.BatchGetFindingsError.Builderavoiding the need to create one manually viaBatchGetFindingsError.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofailedFindings(List<BatchGetFindingsError>).- Parameters:
failedFindings- a consumer that will call methods onBatchGetFindingsError.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
findings
A list of all findings which were successfully fetched.
- Parameters:
findings- A list of all findings which were successfully fetched.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
findings
A list of all findings which were successfully fetched.
- Parameters:
findings- A list of all findings which were successfully fetched.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
findings
A list of all findings which were successfully fetched.
This is a convenience method that creates an instance of theFinding.Builderavoiding the need to create one manually viaFinding.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofindings(List<Finding>).- Parameters:
findings- a consumer that will call methods onFinding.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-