Interface GetMalwareScanResponse.Builder

  • 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

      GetMalwareScanResponse.Builder 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.

      To find the detectorId in 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 detectorId in 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

      GetMalwareScanResponse.Builder adminDetectorId(String adminDetectorId)

      The unique detector ID of the administrator account that the request is associated with. If the account is an administrator, the AdminDetectorId will be the same as the one used for DetectorId. If the customer is not a GuardDuty customer, this field will not be present..

      To find the detectorId in 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, the AdminDetectorId will be the same as the one used for DetectorId. If the customer is not a GuardDuty customer, this field will not be present. .

      To find the detectorId in 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

      GetMalwareScanResponse.Builder resourceArn(String 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

      GetMalwareScanResponse.Builder resourceType(String 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

      GetMalwareScanResponse.Builder scannedResourcesCount(Integer 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

      GetMalwareScanResponse.Builder skippedResourcesCount(Integer 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

      GetMalwareScanResponse.Builder failedResourcesCount(Integer 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

      GetMalwareScanResponse.Builder scannedResources(Collection<ScannedResource> 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(ScannedResource... 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 the ScannedResource.Builder avoiding the need to create one manually via ScannedResource.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to scannedResources(List<ScannedResource>).

      Parameters:
      scannedResources - a consumer that will call methods on ScannedResource.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • scanConfiguration

      GetMalwareScanResponse.Builder scanConfiguration(ScanConfiguration 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 the ScanConfiguration.Builder avoiding the need to create one manually via ScanConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to scanConfiguration(ScanConfiguration).

      Parameters:
      scanConfiguration - a consumer that will call methods on ScanConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • scanCategory

      GetMalwareScanResponse.Builder scanCategory(String 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

      GetMalwareScanResponse.Builder scanCategory(ScanCategory 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

      GetMalwareScanResponse.Builder scanStatus(String 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

      GetMalwareScanResponse.Builder scanStatusReason(String 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

      GetMalwareScanResponse.Builder scanStatusReason(ScanStatusReason 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

      GetMalwareScanResponse.Builder scanStartedAt(Instant 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

      GetMalwareScanResponse.Builder scanCompletedAt(Instant 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

      GetMalwareScanResponse.Builder scanResultDetails(GetMalwareScanResultDetails 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 the GetMalwareScanResultDetails.Builder avoiding the need to create one manually via GetMalwareScanResultDetails.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to scanResultDetails(GetMalwareScanResultDetails).

      Parameters:
      scanResultDetails - a consumer that will call methods on GetMalwareScanResultDetails.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: