Interface ScanJob.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ScanJob.Builder,,ScanJob> SdkBuilder<ScanJob.Builder,,ScanJob> SdkPojo
- Enclosing class:
ScanJob
-
Method Summary
Modifier and TypeMethodDescriptionThe account ID that owns the scan job.backupVaultArn(String backupVaultArn) An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example,arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault.backupVaultName(String backupVaultName) The name of a logical container where backups are stored.completionDate(Instant completionDate) The date and time that a scan job is completed, in Unix format and Coordinated Universal Time (UTC).default ScanJob.BuildercreatedBy(Consumer<ScanJobCreator.Builder> createdBy) Contains identifying information about the creation of a scan job.createdBy(ScanJobCreator createdBy) Contains identifying information about the creation of a scan job.creationDate(Instant creationDate) The date and time that a scan job is created, in Unix format and Coordinated Universal Time (UTC).iamRoleArn(String iamRoleArn) Specifies the IAM role ARN used to create the scan job; for example,arn:aws:iam::123456789012:role/S3Access.malwareScanner(String malwareScanner) The scanning engine used for the scan job.malwareScanner(MalwareScanner malwareScanner) The scanning engine used for the scan job.recoveryPointArn(String recoveryPointArn) An ARN that uniquely identifies the recovery point being scanned; for example,arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.resourceArn(String resourceArn) An ARN that uniquely identifies the source resource of the recovery point being scanned.resourceName(String resourceName) The non-unique name of the resource that belongs to the specified backup.resourceType(String resourceType) The type of Amazon Web Services resource being scanned; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.resourceType(ScanResourceType resourceType) The type of Amazon Web Services resource being scanned; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.scanBaseRecoveryPointArn(String scanBaseRecoveryPointArn) An ARN that uniquely identifies the base recovery point for scanning.The scan ID generated by the malware scanner for the corresponding scan job.The unique identifier that identifies the scan job request to Backup.Specifies the scan type use for the scan job.Specifies the scan type use for the scan job.scannerRoleArn(String scannerRoleArn) Specifies the scanner IAM role ARN used for the scan job.default ScanJob.BuilderscanResult(Consumer<ScanResultInfo.Builder> scanResult) Contains the scan results information, including the status of threats found during scanning.scanResult(ScanResultInfo scanResult) Contains the scan results information, including the status of threats found during scanning.The current state of the scan job.The current state of the scan job.statusMessage(String statusMessage) A detailed message explaining the status of the scan job.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
-
accountId
The account ID that owns the scan job.
- Parameters:
accountId- The account ID that owns the scan job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
backupVaultArn
An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example,
arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault.- Parameters:
backupVaultArn- An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example,arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
backupVaultName
The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created.
- Parameters:
backupVaultName- The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
completionDate
The date and time that a scan job is completed, in Unix format and Coordinated Universal Time (UTC). The value of
CompletionDateis accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.- Parameters:
completionDate- The date and time that a scan job is completed, in Unix format and Coordinated Universal Time (UTC). The value ofCompletionDateis accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdBy
Contains identifying information about the creation of a scan job.
- Parameters:
createdBy- Contains identifying information about the creation of a scan job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdBy
Contains identifying information about the creation of a scan job.
This is a convenience method that creates an instance of theScanJobCreator.Builderavoiding the need to create one manually viaScanJobCreator.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocreatedBy(ScanJobCreator).- Parameters:
createdBy- a consumer that will call methods onScanJobCreator.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
creationDate
The date and time that a scan job is created, in Unix format and Coordinated Universal Time (UTC). The value of
CreationDateis accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.- Parameters:
creationDate- The date and time that a scan job is created, in Unix format and Coordinated Universal Time (UTC). The value ofCreationDateis accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
iamRoleArn
Specifies the IAM role ARN used to create the scan job; for example,
arn:aws:iam::123456789012:role/S3Access.- Parameters:
iamRoleArn- Specifies the IAM role ARN used to create the scan job; for example,arn:aws:iam::123456789012:role/S3Access.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
malwareScanner
The scanning engine used for the scan job. Currently only
GUARDDUTYis supported.- Parameters:
malwareScanner- The scanning engine used for the scan job. Currently onlyGUARDDUTYis supported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
malwareScanner
The scanning engine used for the scan job. Currently only
GUARDDUTYis supported.- Parameters:
malwareScanner- The scanning engine used for the scan job. Currently onlyGUARDDUTYis supported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
recoveryPointArn
An ARN that uniquely identifies the recovery point being scanned; for example,
arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.- Parameters:
recoveryPointArn- An ARN that uniquely identifies the recovery point being scanned; for example,arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceArn
An ARN that uniquely identifies the source resource of the recovery point being scanned.
- Parameters:
resourceArn- An ARN that uniquely identifies the source resource of the recovery point being scanned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceName
The non-unique name of the resource that belongs to the specified backup.
- Parameters:
resourceName- The non-unique name of the resource that belongs to the specified backup.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceType
The type of Amazon Web Services resource being scanned; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.
- Parameters:
resourceType- The type of Amazon Web Services resource being scanned; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceType
The type of Amazon Web Services resource being scanned; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.
- Parameters:
resourceType- The type of Amazon Web Services resource being scanned; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scanBaseRecoveryPointArn
An ARN that uniquely identifies the base recovery point for scanning. This field is populated when an incremental scan job has taken place.
- Parameters:
scanBaseRecoveryPointArn- An ARN that uniquely identifies the base recovery point for scanning. This field is populated when an incremental scan job has taken place.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scanId
The scan ID generated by the malware scanner for the corresponding scan job.
- Parameters:
scanId- The scan ID generated by the malware scanner for the corresponding scan job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scanJobId
The unique identifier that identifies the scan job request to Backup.
- Parameters:
scanJobId- The unique identifier that identifies the scan job request to Backup.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scanMode
Specifies the scan type use for the scan job.
Includes:
FULL_SCANwill scan the entire data lineage within the backup.INCREMENTAL_SCANwill scan the data difference between the target recovery point and base recovery point ARN.- Parameters:
scanMode- Specifies the scan type use for the scan job.Includes:
FULL_SCANwill scan the entire data lineage within the backup.INCREMENTAL_SCANwill scan the data difference between the target recovery point and base recovery point ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scanMode
Specifies the scan type use for the scan job.
Includes:
FULL_SCANwill scan the entire data lineage within the backup.INCREMENTAL_SCANwill scan the data difference between the target recovery point and base recovery point ARN.- Parameters:
scanMode- Specifies the scan type use for the scan job.Includes:
FULL_SCANwill scan the entire data lineage within the backup.INCREMENTAL_SCANwill scan the data difference between the target recovery point and base recovery point ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scanResult
Contains the scan results information, including the status of threats found during scanning.
- Parameters:
scanResult- Contains the scan results information, including the status of threats found during scanning.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scanResult
Contains the scan results information, including the status of threats found during scanning.
This is a convenience method that creates an instance of theScanResultInfo.Builderavoiding the need to create one manually viaScanResultInfo.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toscanResult(ScanResultInfo).- Parameters:
scanResult- a consumer that will call methods onScanResultInfo.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scannerRoleArn
Specifies the scanner IAM role ARN used for the scan job.
- Parameters:
scannerRoleArn- Specifies the scanner IAM role ARN used for the scan job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
The current state of the scan job.
Valid values:
CREATED|RUNNING|COMPLETED|COMPLETED_WITH_ISSUES|FAILED|CANCELED.- Parameters:
state- The current state of the scan job.Valid values:
CREATED|RUNNING|COMPLETED|COMPLETED_WITH_ISSUES|FAILED|CANCELED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The current state of the scan job.
Valid values:
CREATED|RUNNING|COMPLETED|COMPLETED_WITH_ISSUES|FAILED|CANCELED.- Parameters:
state- The current state of the scan job.Valid values:
CREATED|RUNNING|COMPLETED|COMPLETED_WITH_ISSUES|FAILED|CANCELED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
statusMessage
A detailed message explaining the status of the scan job.
- Parameters:
statusMessage- A detailed message explaining the status of the scan job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-