@Generated(value="software.amazon.awssdk:codegen") public final class CopyJob extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CopyJob.Builder,CopyJob>
Contains detailed information about a copy job.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CopyJob.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
accountId()
The account ID that owns the copy job.
|
Long |
backupSizeInBytes()
The size, in bytes, of a copy job.
|
static CopyJob.Builder |
builder() |
Map<CopyJobState,Long> |
childJobsInState()
This returns the statistics of the included child (nested) copy jobs.
|
Map<String,Long> |
childJobsInStateAsStrings()
This returns the statistics of the included child (nested) copy jobs.
|
Instant |
completionDate()
The date and time a copy job is completed, in Unix format and Coordinated Universal Time (UTC).
|
String |
compositeMemberIdentifier()
This is the identifier of a resource within a composite group, such as nested (child) recovery point belonging to
a composite (parent) stack.
|
String |
copyJobId()
Uniquely identifies a copy job.
|
RecoveryPointCreator |
createdBy()
Returns the value of the CreatedBy property for this object.
|
Instant |
creationDate()
The date and time a copy job is created, in Unix format and Coordinated Universal Time (UTC).
|
String |
destinationBackupVaultArn()
An Amazon Resource Name (ARN) that uniquely identifies a destination copy vault; for example,
arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. |
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. |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasChildJobsInState()
For responses, this returns true if the service returned a value for the ChildJobsInState property.
|
int |
hashCode() |
String |
iamRoleArn()
Specifies the IAM role ARN used to copy the target recovery point; for example,
arn:aws:iam::123456789012:role/S3Access. |
Boolean |
isParent()
This is a boolean value indicating this is a parent (composite) copy job.
|
Long |
numberOfChildJobs()
This is the number of child (nested) copy jobs.
|
String |
parentJobId()
This uniquely identifies a request to Backup to copy a resource.
|
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.
|
String |
resourceName()
This is the non-unique name of the resource that belongs to the specified backup.
|
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.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CopyJob.Builder> |
serializableBuilderClass() |
String |
sourceBackupVaultArn()
An Amazon Resource Name (ARN) that uniquely identifies a source copy vault; for example,
arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. |
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. |
CopyJobState |
state()
The current state of a copy job.
|
String |
stateAsString()
The current state of a copy job.
|
String |
statusMessage()
A detailed message explaining the status of the job to copy a resource.
|
CopyJob.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String accountId()
The account ID that owns the copy job.
public final String copyJobId()
Uniquely identifies a copy job.
public final String sourceBackupVaultArn()
An Amazon Resource Name (ARN) that uniquely identifies a source copy vault; for example,
arn:aws:backup:us-east-1:123456789012:vault:aBackupVault.
arn:aws:backup:us-east-1:123456789012:vault:aBackupVault.public final 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.
arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.public final String destinationBackupVaultArn()
An Amazon Resource Name (ARN) that uniquely identifies a destination copy vault; for example,
arn:aws:backup:us-east-1:123456789012:vault:aBackupVault.
arn:aws:backup:us-east-1:123456789012:vault:aBackupVault.public final 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.
arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.public final 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.
public final Instant 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.
CreationDate is accurate to milliseconds. For example, the value 1516925490.087
represents Friday, January 26, 2018 12:11:30.087 AM.public final Instant 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.
CompletionDate is accurate to milliseconds. For example, the value 1516925490.087
represents Friday, January 26, 2018 12:11:30.087 AM.public final CopyJobState state()
The current state of a copy job.
If the service returns an enum value that is not available in the current SDK version, state will return
CopyJobState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
CopyJobStatepublic final String stateAsString()
The current state of a copy job.
If the service returns an enum value that is not available in the current SDK version, state will return
CopyJobState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
CopyJobStatepublic final String statusMessage()
A detailed message explaining the status of the job to copy a resource.
public final Long backupSizeInBytes()
The size, in bytes, of a copy job.
public final String iamRoleArn()
Specifies the IAM role ARN used to copy the target recovery point; for example,
arn:aws:iam::123456789012:role/S3Access.
arn:aws:iam::123456789012:role/S3Access.public final RecoveryPointCreator createdBy()
public final 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.
public final String parentJobId()
This uniquely identifies a request to Backup to copy a resource. The return will be the parent (composite) job ID.
public final Boolean isParent()
This is a boolean value indicating this is a parent (composite) copy job.
public final String compositeMemberIdentifier()
This is 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.
public final Long numberOfChildJobs()
This is the number of child (nested) copy jobs.
public final Map<CopyJobState,Long> childJobsInState()
This returns the statistics of the included child (nested) copy jobs.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasChildJobsInState() method.
public final boolean hasChildJobsInState()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final Map<String,Long> childJobsInStateAsStrings()
This returns the statistics of the included child (nested) copy jobs.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasChildJobsInState() method.
public final String resourceName()
This is the non-unique name of the resource that belongs to the specified backup.
public CopyJob.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CopyJob.Builder,CopyJob>public static CopyJob.Builder builder()
public static Class<? extends CopyJob.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.