Interface CodeRepositoryOnDemandScan.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CodeRepositoryOnDemandScan.Builder,
,CodeRepositoryOnDemandScan> SdkBuilder<CodeRepositoryOnDemandScan.Builder,
,CodeRepositoryOnDemandScan> SdkPojo
- Enclosing class:
CodeRepositoryOnDemandScan
@Mutable
@NotThreadSafe
public static interface CodeRepositoryOnDemandScan.Builder
extends SdkPojo, CopyableBuilder<CodeRepositoryOnDemandScan.Builder,CodeRepositoryOnDemandScan>
-
Method Summary
Modifier and TypeMethodDescriptionlastScanAt
(Instant lastScanAt) The timestamp when the last on-demand scan was performed.lastScannedCommitId
(String lastScannedCommitId) The ID of the last commit that was scanned during an on-demand scan.scanStatus
(Consumer<ScanStatus.Builder> scanStatus) Sets the value of the ScanStatus property for this object.scanStatus
(ScanStatus scanStatus) Sets the value of the ScanStatus property for this object.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
-
Method Details
-
lastScanAt
The timestamp when the last on-demand scan was performed.
- Parameters:
lastScanAt
- The timestamp when the last on-demand scan was performed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastScannedCommitId
The ID of the last commit that was scanned during an on-demand scan.
- Parameters:
lastScannedCommitId
- The ID of the last commit that was scanned during an on-demand scan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scanStatus
Sets the value of the ScanStatus property for this object.- Parameters:
scanStatus
- The new value for the ScanStatus property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scanStatus
Sets the value of the ScanStatus property for this object. This is a convenience method that creates an instance of theScanStatus.Builder
avoiding the need to create one manually viaScanStatus.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toscanStatus(ScanStatus)
.- Parameters:
scanStatus
- a consumer that will call methods onScanStatus.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-