Interface CoveredResource.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CoveredResource.Builder,
,CoveredResource> SdkBuilder<CoveredResource.Builder,
,CoveredResource> SdkPojo
- Enclosing class:
CoveredResource
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Web Services account ID of the covered resource.lastScannedAt
(Instant lastScannedAt) The date and time the resource was last checked for vulnerabilities.resourceId
(String resourceId) The ID of the covered resource.default CoveredResource.Builder
resourceMetadata
(Consumer<ResourceScanMetadata.Builder> resourceMetadata) An object that contains details about the metadata.resourceMetadata
(ResourceScanMetadata resourceMetadata) An object that contains details about the metadata.resourceType
(String resourceType) The type of the covered resource.resourceType
(CoverageResourceType resourceType) The type of the covered resource.The scan method that is applied to the instance.The scan method that is applied to the instance.default CoveredResource.Builder
scanStatus
(Consumer<ScanStatus.Builder> scanStatus) The status of the scan covering the resource.scanStatus
(ScanStatus scanStatus) The status of the scan covering the resource.The Amazon Inspector scan type covering the resource.The Amazon Inspector scan type covering the resource.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
-
Method Details
-
accountId
The Amazon Web Services account ID of the covered resource.
- Parameters:
accountId
- The Amazon Web Services account ID of the covered resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastScannedAt
The date and time the resource was last checked for vulnerabilities.
- Parameters:
lastScannedAt
- The date and time the resource was last checked for vulnerabilities.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceId
The ID of the covered resource.
- Parameters:
resourceId
- The ID of the covered resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceMetadata
An object that contains details about the metadata.
- Parameters:
resourceMetadata
- An object that contains details about the metadata.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceMetadata
default CoveredResource.Builder resourceMetadata(Consumer<ResourceScanMetadata.Builder> resourceMetadata) An object that contains details about the metadata.
This is a convenience method that creates an instance of theResourceScanMetadata.Builder
avoiding the need to create one manually viaResourceScanMetadata.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresourceMetadata(ResourceScanMetadata)
.- Parameters:
resourceMetadata
- a consumer that will call methods onResourceScanMetadata.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceType
The type of the covered resource.
- Parameters:
resourceType
- The type of the covered resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceType
The type of the covered resource.
- Parameters:
resourceType
- The type of the covered resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scanMode
The scan method that is applied to the instance.
- Parameters:
scanMode
- The scan method that is applied to the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scanMode
The scan method that is applied to the instance.
- Parameters:
scanMode
- The scan method that is applied to the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scanStatus
The status of the scan covering the resource.
- Parameters:
scanStatus
- The status of the scan covering the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scanStatus
The status of the scan covering the resource.
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:
-
scanType
The Amazon Inspector scan type covering the resource.
- Parameters:
scanType
- The Amazon Inspector scan type covering the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scanType
The Amazon Inspector scan type covering the resource.
- Parameters:
scanType
- The Amazon Inspector scan type covering the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-