Interface ScannedResource.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ScannedResource.Builder,,ScannedResource> SdkBuilder<ScannedResource.Builder,,ScannedResource> SdkPojo
- Enclosing class:
ScannedResource
@Mutable
@NotThreadSafe
public static interface ScannedResource.Builder
extends SdkPojo, CopyableBuilder<ScannedResource.Builder,ScannedResource>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ScannedResource.BuilderresourceDetails(Consumer<ScannedResourceDetails.Builder> resourceDetails) Information about the scanned resource.resourceDetails(ScannedResourceDetails resourceDetails) Information about the scanned resource.scannedResourceArn(String scannedResourceArn) Amazon Resource Name (ARN) of the scanned resource.scannedResourceStatus(String scannedResourceStatus) The status of the scanned resource.scannedResourceStatus(MalwareProtectionScanStatus scannedResourceStatus) The status of the scanned resource.scannedResourceType(String scannedResourceType) The resource type of the scanned resource.scannedResourceType(MalwareProtectionResourceType scannedResourceType) The resource type of the scanned resource.scanStatusReason(String scanStatusReason) The reason for the scan status of this particular resource, if applicable.scanStatusReason(ScanStatusReason scanStatusReason) The reason for the scan status of this particular resource, if applicable.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
scannedResourceArn
Amazon Resource Name (ARN) of the scanned resource.
- Parameters:
scannedResourceArn- Amazon Resource Name (ARN) of the scanned resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scannedResourceType
The resource type of the scanned resource.
- Parameters:
scannedResourceType- The resource type of the scanned resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scannedResourceType
The resource type of the scanned resource.
- Parameters:
scannedResourceType- The resource type of the scanned resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scannedResourceStatus
The status of the scanned resource.
- Parameters:
scannedResourceStatus- The status of the scanned resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scannedResourceStatus
The status of the scanned resource.
- Parameters:
scannedResourceStatus- The status of the scanned resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scanStatusReason
The reason for the scan status of this particular resource, if applicable.
- Parameters:
scanStatusReason- The reason for the scan status of this particular resource, if applicable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scanStatusReason
The reason for the scan status of this particular resource, if applicable.
- Parameters:
scanStatusReason- The reason for the scan status of this particular resource, if applicable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceDetails
Information about the scanned resource.
- Parameters:
resourceDetails- Information about the scanned resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceDetails
default ScannedResource.Builder resourceDetails(Consumer<ScannedResourceDetails.Builder> resourceDetails) Information about the scanned resource.
This is a convenience method that creates an instance of theScannedResourceDetails.Builderavoiding the need to create one manually viaScannedResourceDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresourceDetails(ScannedResourceDetails).- Parameters:
resourceDetails- a consumer that will call methods onScannedResourceDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-