Interface CoveredResource.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<CoveredResource.Builder,,- CoveredResource> - SdkBuilder<CoveredResource.Builder,,- CoveredResource> - SdkPojo
- Enclosing class:
- CoveredResource
- 
Method SummaryModifier 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.BuilderresourceMetadata(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.BuilderscanStatus(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.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
resourceTypeThe 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:
 
- 
resourceTypeThe 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:
 
- 
resourceIdThe 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.
 
- 
accountIdThe 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.
 
- 
scanTypeThe 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:
 
- 
scanTypeThe 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:
 
- 
scanStatusThe 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.
 
- 
scanStatusThe status of the scan covering the resource. This is a convenience method that creates an instance of theScanStatus.Builderavoiding the need to create one manually viaScanStatus.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toscanStatus(ScanStatus).- Parameters:
- scanStatus- a consumer that will call methods on- ScanStatus.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
resourceMetadataAn 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.
 
- 
resourceMetadatadefault 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.Builderavoiding the need to create one manually viaResourceScanMetadata.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresourceMetadata(ResourceScanMetadata).- Parameters:
- resourceMetadata- a consumer that will call methods on- ResourceScanMetadata.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
lastScannedAtThe 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.
 
- 
scanModeThe 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:
 
- 
scanModeThe 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:
 
 
-