Interface GetCodeSecurityScanResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetCodeSecurityScanResponse.Builder,
,GetCodeSecurityScanResponse> Inspector2Response.Builder
,SdkBuilder<GetCodeSecurityScanResponse.Builder,
,GetCodeSecurityScanResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetCodeSecurityScanResponse
@Mutable
@NotThreadSafe
public static interface GetCodeSecurityScanResponse.Builder
extends Inspector2Response.Builder, SdkPojo, CopyableBuilder<GetCodeSecurityScanResponse.Builder,GetCodeSecurityScanResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Web Services account ID associated with the scan.The timestamp when the scan was created.lastCommitId
(String lastCommitId) The identifier of the last commit that was scanned.resource
(Consumer<CodeSecurityResource.Builder> resource) The resource identifier for the code repository that was scanned.resource
(CodeSecurityResource resource) The resource identifier for the code repository that was scanned.The unique identifier of the scan.The current status of the scan.status
(CodeScanStatus status) The current status of the scan.statusReason
(String statusReason) The reason for the current status of the scan.The timestamp when the scan was last updated.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.inspector2.model.Inspector2Response.Builder
build, responseMetadata, responseMetadata
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
-
accountId
The Amazon Web Services account ID associated with the scan.
- Parameters:
accountId
- The Amazon Web Services account ID associated with the scan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
The timestamp when the scan was created.
- Parameters:
createdAt
- The timestamp when the scan was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastCommitId
The identifier of the last commit that was scanned. This is only returned if the scan was successful or skipped.
- Parameters:
lastCommitId
- The identifier of the last commit that was scanned. This is only returned if the scan was successful or skipped.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resource
The resource identifier for the code repository that was scanned.
- Parameters:
resource
- The resource identifier for the code repository that was scanned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resource
default GetCodeSecurityScanResponse.Builder resource(Consumer<CodeSecurityResource.Builder> resource) The resource identifier for the code repository that was scanned.
This is a convenience method that creates an instance of theCodeSecurityResource.Builder
avoiding the need to create one manually viaCodeSecurityResource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresource(CodeSecurityResource)
.- Parameters:
resource
- a consumer that will call methods onCodeSecurityResource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scanId
The unique identifier of the scan.
- Parameters:
scanId
- The unique identifier of the scan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The current status of the scan.
- Parameters:
status
- The current status of the scan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The current status of the scan.
- Parameters:
status
- The current status of the scan.- 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 scan.
- Parameters:
statusReason
- The reason for the current status of the scan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
The timestamp when the scan was last updated.
- Parameters:
updatedAt
- The timestamp when the scan was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-