Interface GetMalwareScanResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetMalwareScanResponse.Builder,,GetMalwareScanResponse> GuardDutyResponse.Builder,SdkBuilder<GetMalwareScanResponse.Builder,,GetMalwareScanResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetMalwareScanResponse
-
Method Summary
Modifier and TypeMethodDescriptionadminDetectorId(String adminDetectorId) The unique detector ID of the administrator account that the request is associated with.detectorId(String detectorId) The unique ID of the detector that is associated with the request, if it belongs to an account which is a GuardDuty customer.failedResourcesCount(Integer failedResourcesCount) The total number of resources that failed to be scanned.resourceArn(String resourceArn) Amazon Resource Name (ARN) of the resource on which a malware scan was invoked.resourceType(String resourceType) The type of resource that was scanned for malware.resourceType(MalwareProtectionResourceType resourceType) The type of resource that was scanned for malware.scanCategory(String scanCategory) The category of the malware scan, indicating the type of scan performed.scanCategory(ScanCategory scanCategory) The category of the malware scan, indicating the type of scan performed.scanCompletedAt(Instant scanCompletedAt) The timestamp representing when the malware scan was completed.default GetMalwareScanResponse.BuilderscanConfiguration(Consumer<ScanConfiguration.Builder> scanConfiguration) Information about the scan configuration used for the malware scan.scanConfiguration(ScanConfiguration scanConfiguration) Information about the scan configuration used for the malware scan.A unique identifier associated with the malware scan.scannedResources(Collection<ScannedResource> scannedResources) A list of resources along with their metadata that were scanned as part of the malware scan operation.scannedResources(Consumer<ScannedResource.Builder>... scannedResources) A list of resources along with their metadata that were scanned as part of the malware scan operation.scannedResources(ScannedResource... scannedResources) A list of resources along with their metadata that were scanned as part of the malware scan operation.scannedResourcesCount(Integer scannedResourcesCount) The total number of resources that were successfully scanned.default GetMalwareScanResponse.BuilderscanResultDetails(Consumer<GetMalwareScanResultDetails.Builder> scanResultDetails) Detailed information about the results of the malware scan, if the scan completed.scanResultDetails(GetMalwareScanResultDetails scanResultDetails) Detailed information about the results of the malware scan, if the scan completed.scanStartedAt(Instant scanStartedAt) The timestamp representing when the malware scan was started.scanStatus(String scanStatus) A value representing the current status of the malware scan.scanStatus(MalwareProtectionScanStatus scanStatus) A value representing the current status of the malware scan.scanStatusReason(String scanStatusReason) Represents the reason for the current scan status, if applicable.scanStatusReason(ScanStatusReason scanStatusReason) Represents the reason for the current scan status, if applicable.A value representing the initiator of the scan.scanType(MalwareProtectionScanType scanType) A value representing the initiator of the scan.skippedResourcesCount(Integer skippedResourcesCount) The total number of resources that were skipped during the scan.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.guardduty.model.GuardDutyResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
scanId
A unique identifier associated with the malware scan. Each malware scan has a corresponding scan ID. Using this scan ID, you can monitor the status of your malware scan.
- Parameters:
scanId- A unique identifier associated with the malware scan. Each malware scan has a corresponding scan ID. Using this scan ID, you can monitor the status of your malware scan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
detectorId
The unique ID of the detector that is associated with the request, if it belongs to an account which is a GuardDuty customer.
To find the
detectorIdin the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.- Parameters:
detectorId- The unique ID of the detector that is associated with the request, if it belongs to an account which is a GuardDuty customer.To find the
detectorIdin the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
adminDetectorId
The unique detector ID of the administrator account that the request is associated with. If the account is an administrator, the
AdminDetectorIdwill be the same as the one used forDetectorId. If the customer is not a GuardDuty customer, this field will not be present..To find the
detectorIdin the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.- Parameters:
adminDetectorId- The unique detector ID of the administrator account that the request is associated with. If the account is an administrator, theAdminDetectorIdwill be the same as the one used forDetectorId. If the customer is not a GuardDuty customer, this field will not be present..To find the
detectorIdin the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceArn
Amazon Resource Name (ARN) of the resource on which a malware scan was invoked.
- Parameters:
resourceArn- Amazon Resource Name (ARN) of the resource on which a malware scan was invoked.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceType
The type of resource that was scanned for malware.
- Parameters:
resourceType- The type of resource that was scanned for malware.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceType
The type of resource that was scanned for malware.
- Parameters:
resourceType- The type of resource that was scanned for malware.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scannedResourcesCount
The total number of resources that were successfully scanned. This is dependent on the resource type.
- Parameters:
scannedResourcesCount- The total number of resources that were successfully scanned. This is dependent on the resource type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
skippedResourcesCount
The total number of resources that were skipped during the scan.
- Parameters:
skippedResourcesCount- The total number of resources that were skipped during the scan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failedResourcesCount
The total number of resources that failed to be scanned.
- Parameters:
failedResourcesCount- The total number of resources that failed to be scanned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scannedResources
A list of resources along with their metadata that were scanned as part of the malware scan operation.
- Parameters:
scannedResources- A list of resources along with their metadata that were scanned as part of the malware scan operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scannedResources
A list of resources along with their metadata that were scanned as part of the malware scan operation.
- Parameters:
scannedResources- A list of resources along with their metadata that were scanned as part of the malware scan operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scannedResources
GetMalwareScanResponse.Builder scannedResources(Consumer<ScannedResource.Builder>... scannedResources) A list of resources along with their metadata that were scanned as part of the malware scan operation.
This is a convenience method that creates an instance of theScannedResource.Builderavoiding the need to create one manually viaScannedResource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toscannedResources(List<ScannedResource>).- Parameters:
scannedResources- a consumer that will call methods onScannedResource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scanConfiguration
Information about the scan configuration used for the malware scan.
- Parameters:
scanConfiguration- Information about the scan configuration used for the malware scan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scanConfiguration
default GetMalwareScanResponse.Builder scanConfiguration(Consumer<ScanConfiguration.Builder> scanConfiguration) Information about the scan configuration used for the malware scan.
This is a convenience method that creates an instance of theScanConfiguration.Builderavoiding the need to create one manually viaScanConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toscanConfiguration(ScanConfiguration).- Parameters:
scanConfiguration- a consumer that will call methods onScanConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scanCategory
The category of the malware scan, indicating the type of scan performed.
- Parameters:
scanCategory- The category of the malware scan, indicating the type of scan performed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scanCategory
The category of the malware scan, indicating the type of scan performed.
- Parameters:
scanCategory- The category of the malware scan, indicating the type of scan performed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scanStatus
A value representing the current status of the malware scan.
- Parameters:
scanStatus- A value representing the current status of the malware scan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scanStatus
A value representing the current status of the malware scan.
- Parameters:
scanStatus- A value representing the current status of the malware scan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scanStatusReason
Represents the reason for the current scan status, if applicable.
- Parameters:
scanStatusReason- Represents the reason for the current scan status, if applicable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scanStatusReason
Represents the reason for the current scan status, if applicable.
- Parameters:
scanStatusReason- Represents the reason for the current scan status, if applicable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scanType
A value representing the initiator of the scan.
- Parameters:
scanType- A value representing the initiator of the scan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scanType
A value representing the initiator of the scan.
- Parameters:
scanType- A value representing the initiator of the scan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scanStartedAt
The timestamp representing when the malware scan was started.
- Parameters:
scanStartedAt- The timestamp representing when the malware scan was started.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scanCompletedAt
The timestamp representing when the malware scan was completed.
- Parameters:
scanCompletedAt- The timestamp representing when the malware scan was completed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scanResultDetails
Detailed information about the results of the malware scan, if the scan completed.
- Parameters:
scanResultDetails- Detailed information about the results of the malware scan, if the scan completed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scanResultDetails
default GetMalwareScanResponse.Builder scanResultDetails(Consumer<GetMalwareScanResultDetails.Builder> scanResultDetails) Detailed information about the results of the malware scan, if the scan completed.
This is a convenience method that creates an instance of theGetMalwareScanResultDetails.Builderavoiding the need to create one manually viaGetMalwareScanResultDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toscanResultDetails(GetMalwareScanResultDetails).- Parameters:
scanResultDetails- a consumer that will call methods onGetMalwareScanResultDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-