Interface CopyJob.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CopyJob.Builder,
,CopyJob> SdkBuilder<CopyJob.Builder,
,CopyJob> SdkPojo
- Enclosing class:
CopyJob
-
Method Summary
Modifier and TypeMethodDescriptionThe account ID that owns the copy job.backupSizeInBytes
(Long backupSizeInBytes) The size, in bytes, of a copy job.childJobsInState
(Map<CopyJobState, Long> childJobsInState) This returns the statistics of the included child (nested) copy jobs.childJobsInStateWithStrings
(Map<String, Long> childJobsInState) This returns the statistics of the included child (nested) copy jobs.completionDate
(Instant completionDate) The date and time a copy job is completed, in Unix format and Coordinated Universal Time (UTC).compositeMemberIdentifier
(String compositeMemberIdentifier) The identifier of a resource within a composite group, such as nested (child) recovery point belonging to a composite (parent) stack.Uniquely identifies a copy job.default CopyJob.Builder
createdBy
(Consumer<RecoveryPointCreator.Builder> createdBy) Sets the value of the CreatedBy property for this object.createdBy
(RecoveryPointCreator createdBy) Sets the value of the CreatedBy property for this object.creationDate
(Instant creationDate) The date and time a copy job is created, in Unix format and Coordinated Universal Time (UTC).destinationBackupVaultArn
(String destinationBackupVaultArn) An Amazon Resource Name (ARN) that uniquely identifies a destination copy vault; for example,arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault
.destinationRecoveryPointArn
(String destinationRecoveryPointArn) An ARN that uniquely identifies a destination recovery point; for example,arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.iamRoleArn
(String iamRoleArn) Specifies the IAM role ARN used to copy the target recovery point; for example,arn:aws:iam::123456789012:role/S3Access
.This is a boolean value indicating this is a parent (composite) copy job.messageCategory
(String messageCategory) This parameter is the job count for the specified message category.numberOfChildJobs
(Long numberOfChildJobs) The number of child (nested) copy jobs.parentJobId
(String parentJobId) This uniquely identifies a request to Backup to copy a resource.resourceArn
(String resourceArn) The Amazon Web Services resource to be copied; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.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 copied; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.sourceBackupVaultArn
(String sourceBackupVaultArn) An Amazon Resource Name (ARN) that uniquely identifies a source copy vault; for example,arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault
.sourceRecoveryPointArn
(String sourceRecoveryPointArn) An ARN that uniquely identifies a source recovery point; for example,arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.The current state of a copy job.state
(CopyJobState state) The current state of a copy job.statusMessage
(String statusMessage) A detailed message explaining the status of the job to copy a resource.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
accountId
The account ID that owns the copy job.
- Parameters:
accountId
- The account ID that owns the copy job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
copyJobId
Uniquely identifies a copy job.
- Parameters:
copyJobId
- Uniquely identifies a copy job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceBackupVaultArn
An Amazon Resource Name (ARN) that uniquely identifies a source copy vault; for example,
arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault
.- Parameters:
sourceBackupVaultArn
- An Amazon Resource Name (ARN) that uniquely identifies a source copy 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.
-
sourceRecoveryPointArn
An ARN that uniquely identifies a source recovery point; for example,
arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.- Parameters:
sourceRecoveryPointArn
- An ARN that uniquely identifies a source recovery point; 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.
-
destinationBackupVaultArn
An Amazon Resource Name (ARN) that uniquely identifies a destination copy vault; for example,
arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault
.- Parameters:
destinationBackupVaultArn
- An Amazon Resource Name (ARN) that uniquely identifies a destination copy 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.
-
destinationRecoveryPointArn
An ARN that uniquely identifies a destination recovery point; for example,
arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.- Parameters:
destinationRecoveryPointArn
- An ARN that uniquely identifies a destination recovery point; 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
The Amazon Web Services resource to be copied; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.
- Parameters:
resourceArn
- The Amazon Web Services resource to be copied; 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.
-
creationDate
The date and time a copy job is created, in Unix format and Coordinated Universal Time (UTC). The value of
CreationDate
is 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 a copy job is created, in Unix format and Coordinated Universal Time (UTC). The value ofCreationDate
is 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.
-
completionDate
The date and time a copy job is completed, in Unix format and Coordinated Universal Time (UTC). The value of
CompletionDate
is 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 a copy job is completed, in Unix format and Coordinated Universal Time (UTC). The value ofCompletionDate
is 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.
-
state
The current state of a copy job.
- Parameters:
state
- The current state of a copy job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The current state of a copy job.
- Parameters:
state
- The current state of a copy 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 copy a resource.
- Parameters:
statusMessage
- A detailed message explaining the status of the job to copy a resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
backupSizeInBytes
The size, in bytes, of a copy job.
- Parameters:
backupSizeInBytes
- The size, in bytes, of a copy job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
iamRoleArn
Specifies the IAM role ARN used to copy the target recovery point; for example,
arn:aws:iam::123456789012:role/S3Access
.- Parameters:
iamRoleArn
- Specifies the IAM role ARN used to copy the target recovery point; for example,arn:aws:iam::123456789012:role/S3Access
.- 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 theRecoveryPointCreator.Builder
avoiding the need to create one manually viaRecoveryPointCreator.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocreatedBy(RecoveryPointCreator)
.- Parameters:
createdBy
- a consumer that will call methods onRecoveryPointCreator.Builder
- 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 copied; 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 to be copied; 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.
-
parentJobId
This uniquely identifies a request to Backup to copy a resource. The return will be the parent (composite) job ID.
- Parameters:
parentJobId
- This uniquely identifies a request to Backup to copy a resource. The return will be the parent (composite) job ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isParent
This is a boolean value indicating this is a parent (composite) copy job.
- Parameters:
isParent
- This is a boolean value indicating this is a parent (composite) copy job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
compositeMemberIdentifier
The identifier of a resource within a composite group, such as nested (child) recovery point belonging to a composite (parent) stack. The ID is transferred from the logical ID within a stack.
- Parameters:
compositeMemberIdentifier
- The identifier of a resource within a composite group, such as nested (child) recovery point belonging to a composite (parent) stack. The ID is transferred from the logical ID within a stack.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
numberOfChildJobs
The number of child (nested) copy jobs.
- Parameters:
numberOfChildJobs
- The number of child (nested) copy jobs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
childJobsInStateWithStrings
This returns the statistics of the included child (nested) copy jobs.
- Parameters:
childJobsInState
- This returns the statistics of the included child (nested) copy jobs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
childJobsInState
This returns the statistics of the included child (nested) copy jobs.
- Parameters:
childJobsInState
- This returns the statistics of the included child (nested) copy jobs.- 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.
-
messageCategory
This parameter is the job count for the specified message category.
Example strings may include
AccessDenied
,SUCCESS
,AGGREGATE_ALL
, andInvalidParameters
. See Monitoring for a list of MessageCategory strings.The the value ANY returns count of all message categories.
AGGREGATE_ALL
aggregates job counts for all message categories and returns the sum- Parameters:
messageCategory
- This parameter is the job count for the specified message category.Example strings may include
AccessDenied
,SUCCESS
,AGGREGATE_ALL
, andInvalidParameters
. See Monitoring for a list of MessageCategory strings.The the value ANY returns count of all message categories.
AGGREGATE_ALL
aggregates job counts for all message categories and returns the sum- Returns:
- Returns a reference to this object so that method calls can be chained together.
-