Interface BatchGetFindingsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CodeGuruSecurityResponse.Builder,CopyableBuilder<BatchGetFindingsResponse.Builder,BatchGetFindingsResponse>,SdkBuilder<BatchGetFindingsResponse.Builder,BatchGetFindingsResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- BatchGetFindingsResponse
public static interface BatchGetFindingsResponse.Builder extends CodeGuruSecurityResponse.Builder, SdkPojo, CopyableBuilder<BatchGetFindingsResponse.Builder,BatchGetFindingsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BatchGetFindingsResponse.BuilderfailedFindings(Collection<BatchGetFindingsError> failedFindings)A list of errors for individual findings which were not fetched.BatchGetFindingsResponse.BuilderfailedFindings(Consumer<BatchGetFindingsError.Builder>... failedFindings)A list of errors for individual findings which were not fetched.BatchGetFindingsResponse.BuilderfailedFindings(BatchGetFindingsError... failedFindings)A list of errors for individual findings which were not fetched.BatchGetFindingsResponse.Builderfindings(Collection<Finding> findings)A list of all requested findings.BatchGetFindingsResponse.Builderfindings(Consumer<Finding.Builder>... findings)A list of all requested findings.BatchGetFindingsResponse.Builderfindings(Finding... findings)A list of all requested findings.-
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, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
failedFindings
BatchGetFindingsResponse.Builder failedFindings(Collection<BatchGetFindingsError> 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(BatchGetFindingsError... 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 to#failedFindings(List.) - 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:
#failedFindings(java.util.Collection)
-
findings
BatchGetFindingsResponse.Builder findings(Collection<Finding> findings)
A list of all requested findings.
- Parameters:
findings- A list of all requested findings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
findings
BatchGetFindingsResponse.Builder findings(Finding... findings)
A list of all requested findings.
- Parameters:
findings- A list of all requested findings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
findings
BatchGetFindingsResponse.Builder findings(Consumer<Finding.Builder>... findings)
A list of all requested findings.
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 to#findings(List.) - 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:
#findings(java.util.Collection)
-
-