Interface DescribeScanJobResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,BackupResponse.Builder,Buildable,CopyableBuilder<DescribeScanJobResponse.Builder,,DescribeScanJobResponse> SdkBuilder<DescribeScanJobResponse.Builder,,DescribeScanJobResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
DescribeScanJobResponse
-
Method Summary
Modifier and TypeMethodDescriptionReturns the 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:aBackupVaultbackupVaultName(String backupVaultName) The name of a logical container where backups are stored.completionDate(Instant completionDate) The date and time that a backup index finished creation, in Unix format and Coordinated Universal Time (UTC).default DescribeScanJobResponse.BuildercreatedBy(Consumer<ScanJobCreator.Builder> createdBy) Sets the value of the CreatedBy property for this object.createdBy(ScanJobCreator createdBy) Sets the value of the CreatedBy property for this object.creationDate(Instant creationDate) The date and time that a backup index finished creation, in Unix format and Coordinated Universal Time (UTC).iamRoleArn(String iamRoleArn) An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example,arn:aws:iam::123456789012:role/S3Access.malwareScanner(String malwareScanner) The scanning engine used for the corresponding scan job.malwareScanner(MalwareScanner malwareScanner) The scanning engine used for the corresponding scan job.recoveryPointArn(String recoveryPointArn) An ARN that uniquely identifies the target recovery point for scanning.; 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 corresponding recovery point ARN.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 to be backed up; for example, an Amazon Elastic Block Store (Amazon EBS) volume.resourceType(ScanResourceType resourceType) The type of Amazon Web Services Resource to be backed up; for example, an Amazon Elastic Block Store (Amazon EBS) volume.scanBaseRecoveryPointArn(String scanBaseRecoveryPointArn) An ARN that uniquely identifies the base recovery point for scanning.The scan ID generated by Amazon GuardDuty for the corresponding Scan Job ID request from Backup.The scan job ID that uniquely identified the request to Backup.Specifies the scan type used for the scan job.Specifies the scan type used for the scan job.scannerRoleArn(String scannerRoleArn) Specifies the scanner IAM role ARN used to for the scan job.default DescribeScanJobResponse.BuilderscanResult(Consumer<ScanResultInfo.Builder> scanResult) Contains theScanResultsStatusfor the scanning job and returnsTHREATS_FOUNDorNO_THREATS_FOUNDfor completed jobs.scanResult(ScanResultInfo scanResult) Contains theScanResultsStatusfor the scanning job and returnsTHREATS_FOUNDorNO_THREATS_FOUNDfor completed jobs.The current state of a scan job.The current state of a scan job.statusMessage(String statusMessage) A detailed message explaining the status of the job to back up a resource.Methods inherited from interface software.amazon.awssdk.services.backup.model.BackupResponse.Builder
build, responseMetadata, responseMetadataMethods 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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
accountId
Returns the account ID that owns the scan job.
Pattern:
^[0-9]{12}$- Parameters:
accountId- Returns the account ID that owns the scan job.Pattern:
^[0-9]{12}$- 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.
Pattern:
^[a-zA-Z0-9\-\_\.]{2,50}$- 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.Pattern:
^[a-zA-Z0-9\-\_\.]{2,50}$- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
completionDate
The date and time that a backup index finished creation, 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 backup index finished creation, 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
Sets the value of the CreatedBy property for this object.- Parameters:
createdBy- The new value for the CreatedBy property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdBy
Sets the value of the CreatedBy property for this object. 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 backup index finished creation, 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 backup index finished creation, 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
An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example,
arn:aws:iam::123456789012:role/S3Access.- Parameters:
iamRoleArn- An Amazon Resource Name (ARN) that uniquely identifies a backup vault; 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 corresponding scan job. Currently only
GUARDUTYis supported.- Parameters:
malwareScanner- The scanning engine used for the corresponding scan job. Currently onlyGUARDUTYis 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 corresponding scan job. Currently only
GUARDUTYis supported.- Parameters:
malwareScanner- The scanning engine used for the corresponding scan job. Currently onlyGUARDUTYis 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 target recovery point for scanning.; for example,
arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.- Parameters:
recoveryPointArn- An ARN that uniquely identifies the target recovery point for scanning.; 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 corresponding recovery point ARN.
- Parameters:
resourceArn- An ARN that uniquely identifies the source resource of the corresponding recovery point ARN.- 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 to be backed up; for example, an Amazon Elastic Block Store (Amazon EBS) volume.
Pattern:
^[a-zA-Z0-9\-\_\.]{1,50}$- Parameters:
resourceType- The type of Amazon Web Services Resource to be backed up; for example, an Amazon Elastic Block Store (Amazon EBS) volume.Pattern:
^[a-zA-Z0-9\-\_\.]{1,50}$- 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 to be backed up; for example, an Amazon Elastic Block Store (Amazon EBS) volume.
Pattern:
^[a-zA-Z0-9\-\_\.]{1,50}$- Parameters:
resourceType- The type of Amazon Web Services Resource to be backed up; for example, an Amazon Elastic Block Store (Amazon EBS) volume.Pattern:
^[a-zA-Z0-9\-\_\.]{1,50}$- 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 will only be populated when an incremental scan job has taken place.
- Parameters:
scanBaseRecoveryPointArn- An ARN that uniquely identifies the base recovery point for scanning. This field will only be 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 Amazon GuardDuty for the corresponding Scan Job ID request from Backup.
- Parameters:
scanId- The scan ID generated by Amazon GuardDuty for the corresponding Scan Job ID request from Backup.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scanJobId
The scan job ID that uniquely identified the request to Backup.
- Parameters:
scanJobId- The scan job ID that uniquely identified the request to Backup.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scanMode
Specifies the scan type used for the scan job.
- Parameters:
scanMode- Specifies the scan type used for the scan job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scanMode
Specifies the scan type used for the scan job.
- Parameters:
scanMode- Specifies the scan type used for the scan job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scanResult
Contains the
ScanResultsStatusfor the scanning job and returnsTHREATS_FOUNDorNO_THREATS_FOUNDfor completed jobs.- Parameters:
scanResult- Contains theScanResultsStatusfor the scanning job and returnsTHREATS_FOUNDorNO_THREATS_FOUNDfor completed jobs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scanResult
Contains the
This is a convenience method that creates an instance of theScanResultsStatusfor the scanning job and returnsTHREATS_FOUNDorNO_THREATS_FOUNDfor completed jobs.ScanResultInfo.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 to for the scan job.
- Parameters:
scannerRoleArn- Specifies the scanner IAM role ARN used to for the scan job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
The current state of a scan job.
- Parameters:
state- The current state of a scan job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The current state of a scan job.
- Parameters:
state- The current state of a scan job.- 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 job to back up a resource.
- Parameters:
statusMessage- A detailed message explaining the status of the job to back up a resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-