Class ScanJob
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ScanJob.Builder,ScanJob>
Contains metadata about a scan job, including information about the scanning process, results, and associated resources.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal StringThe account ID that owns the scan job.final StringAn Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example,arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault.final StringThe name of a logical container where backups are stored.static ScanJob.Builderbuilder()final InstantThe date and time that a scan job is completed, in Unix format and Coordinated Universal Time (UTC).final ScanJobCreatorContains identifying information about the creation of a scan job.final InstantThe date and time that a scan job is created, in Unix format and Coordinated Universal Time (UTC).final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final StringSpecifies the IAM role ARN used to create the scan job; for example,arn:aws:iam::123456789012:role/S3Access.final MalwareScannerThe scanning engine used for the scan job.final StringThe scanning engine used for the scan job.final StringAn 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.final StringAn ARN that uniquely identifies the source resource of the recovery point being scanned.final StringThe non-unique name of the resource that belongs to the specified backup.final ScanResourceTypeThe 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.final StringThe 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.final StringAn ARN that uniquely identifies the base recovery point for scanning.final StringscanId()The scan ID generated by the malware scanner for the corresponding scan job.final StringThe unique identifier that identifies the scan job request to Backup.final ScanModescanMode()Specifies the scan type use for the scan job.final StringSpecifies the scan type use for the scan job.final StringSpecifies the scanner IAM role ARN used for the scan job.final ScanResultInfoContains the scan results information, including the status of threats found during scanning.static Class<? extends ScanJob.Builder> final ScanStatestate()The current state of the scan job.final StringThe current state of the scan job.final StringA detailed message explaining the status of the scan job.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
accountId
The account ID that owns the scan job.
- Returns:
- The account ID that owns the scan job.
-
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:
- An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example,
arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault.
-
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:
- 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.
-
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.- Returns:
- 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.
-
createdBy
Contains identifying information about the creation of a scan job.
- Returns:
- Contains identifying information about the creation of a scan job.
-
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.- Returns:
- 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.
-
iamRoleArn
Specifies the IAM role ARN used to create the scan job; for example,
arn:aws:iam::123456789012:role/S3Access.- Returns:
- Specifies the IAM role ARN used to create the scan job; for example,
arn:aws:iam::123456789012:role/S3Access.
-
malwareScanner
The scanning engine used for the scan job. Currently only
GUARDDUTYis supported.If the service returns an enum value that is not available in the current SDK version,
malwareScannerwill returnMalwareScanner.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommalwareScannerAsString().- Returns:
- The scanning engine used for the scan job. Currently only
GUARDDUTYis supported. - See Also:
-
malwareScannerAsString
The scanning engine used for the scan job. Currently only
GUARDDUTYis supported.If the service returns an enum value that is not available in the current SDK version,
malwareScannerwill returnMalwareScanner.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommalwareScannerAsString().- Returns:
- The scanning engine used for the scan job. Currently only
GUARDDUTYis supported. - 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.- Returns:
- 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
An ARN that uniquely identifies the source resource of the recovery point being scanned.
- Returns:
- An ARN that uniquely identifies the source resource of the recovery point being scanned.
-
resourceName
The non-unique name of the resource that belongs to the specified backup.
- Returns:
- The non-unique name of the resource that belongs to the specified backup.
-
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.
If the service returns an enum value that is not available in the current SDK version,
resourceTypewill returnScanResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromresourceTypeAsString().- Returns:
- 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.
- See Also:
-
resourceTypeAsString
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.
If the service returns an enum value that is not available in the current SDK version,
resourceTypewill returnScanResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromresourceTypeAsString().- Returns:
- 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.
- 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.
- Returns:
- An ARN that uniquely identifies the base recovery point for scanning. This field is populated when an incremental scan job has taken place.
-
scanId
The scan ID generated by the malware scanner for the corresponding scan job.
- Returns:
- The scan ID generated by the malware scanner for the corresponding scan job.
-
scanJobId
The unique identifier that identifies the scan job request to Backup.
- Returns:
- The unique identifier that identifies the scan job request to Backup.
-
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.If the service returns an enum value that is not available in the current SDK version,
scanModewill returnScanMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromscanModeAsString().- Returns:
- 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. - See Also:
-
scanModeAsString
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.If the service returns an enum value that is not available in the current SDK version,
scanModewill returnScanMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromscanModeAsString().- Returns:
- 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. - See Also:
-
scanResult
Contains the scan results information, including the status of threats found during scanning.
- Returns:
- Contains the scan results information, including the status of threats found during scanning.
-
scannerRoleArn
Specifies the scanner IAM role ARN used for the scan job.
- Returns:
- Specifies the scanner IAM role ARN used for the scan job.
-
state
The current state of the scan job.
Valid values:
CREATED|RUNNING|COMPLETED|COMPLETED_WITH_ISSUES|FAILED|CANCELED.If the service returns an enum value that is not available in the current SDK version,
statewill returnScanState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The current state of the scan job.
Valid values:
CREATED|RUNNING|COMPLETED|COMPLETED_WITH_ISSUES|FAILED|CANCELED. - See Also:
-
stateAsString
The current state of the scan job.
Valid values:
CREATED|RUNNING|COMPLETED|COMPLETED_WITH_ISSUES|FAILED|CANCELED.If the service returns an enum value that is not available in the current SDK version,
statewill returnScanState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The current state of the scan job.
Valid values:
CREATED|RUNNING|COMPLETED|COMPLETED_WITH_ISSUES|FAILED|CANCELED. - See Also:
-
statusMessage
A detailed message explaining the status of the scan job.
- Returns:
- A detailed message explaining the status of the scan job.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ScanJob.Builder,ScanJob> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-