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, responseMetadata
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, sdkFieldNameToField, sdkFields
Methods 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
,errorCode
and errormessage
.- Parameters:
failedFindings
- A list of errors for individual findings which were not fetched. Each BatchGetFindingsError contains thescanName
,findingId
,errorCode
and 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
,errorCode
and errormessage
.- Parameters:
failedFindings
- A list of errors for individual findings which were not fetched. Each BatchGetFindingsError contains thescanName
,findingId
,errorCode
and 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
,errorCode
and errormessage
.BatchGetFindingsError.Builder
avoiding the need to create one manually viaBatchGetFindingsError.builder()
.When the
Consumer
completes,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.Builder
avoiding the need to create one manually viaFinding.builder()
.When the
Consumer
completes,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:
-