@Generated(value="software.amazon.awssdk:codegen") public final class ReplicationJob extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ReplicationJob.Builder,ReplicationJob>
Represents a replication job.
Modifier and Type | Class and Description |
---|---|
static interface |
ReplicationJob.Builder |
Modifier and Type | Method and Description |
---|---|
static ReplicationJob.Builder |
builder() |
String |
description()
The description of the replication job.
|
Boolean |
encrypted()
Whether the replication job should produce encrypted AMIs or not.
|
boolean |
equals(Object obj) |
Integer |
frequency()
The time between consecutive replication runs, in hours.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
kmsKeyId()
KMS key ID for replication jobs that produce encrypted AMIs.
|
String |
latestAmiId()
The ID of the latest Amazon Machine Image (AMI).
|
LicenseType |
licenseType()
The license type to be used for the AMI created by a successful replication run.
|
String |
licenseTypeAsString()
The license type to be used for the AMI created by a successful replication run.
|
Instant |
nextReplicationRunStartTime()
The start time of the next replication run.
|
Integer |
numberOfRecentAmisToKeep()
Number of recent AMIs to keep in the customer's account for a replication job.
|
String |
replicationJobId()
The identifier of the replication job.
|
List<ReplicationRun> |
replicationRunList()
Information about the replication runs.
|
String |
roleName()
The name of the IAM role to be used by the Server Migration Service.
|
Boolean |
runOnce()
|
List<SdkField<?>> |
sdkFields() |
Instant |
seedReplicationTime()
The seed replication time.
|
static Class<? extends ReplicationJob.Builder> |
serializableBuilderClass() |
String |
serverId()
The identifier of the server.
|
ServerType |
serverType()
The type of server.
|
String |
serverTypeAsString()
The type of server.
|
ReplicationJobState |
state()
The state of the replication job.
|
String |
stateAsString()
The state of the replication job.
|
String |
statusMessage()
The description of the current status of the replication job.
|
ReplicationJob.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
VmServer |
vmServer()
Information about the VM server.
|
copy
public String replicationJobId()
The identifier of the replication job.
public String serverId()
The identifier of the server.
public ServerType serverType()
The type of server.
If the service returns an enum value that is not available in the current SDK version, serverType
will
return ServerType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
serverTypeAsString()
.
ServerType
public String serverTypeAsString()
The type of server.
If the service returns an enum value that is not available in the current SDK version, serverType
will
return ServerType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
serverTypeAsString()
.
ServerType
public VmServer vmServer()
Information about the VM server.
public Instant seedReplicationTime()
The seed replication time.
public Integer frequency()
The time between consecutive replication runs, in hours.
public Boolean runOnce()
public Instant nextReplicationRunStartTime()
The start time of the next replication run.
public LicenseType licenseType()
The license type to be used for the AMI created by a successful replication run.
If the service returns an enum value that is not available in the current SDK version, licenseType
will
return LicenseType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
licenseTypeAsString()
.
LicenseType
public String licenseTypeAsString()
The license type to be used for the AMI created by a successful replication run.
If the service returns an enum value that is not available in the current SDK version, licenseType
will
return LicenseType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
licenseTypeAsString()
.
LicenseType
public String roleName()
The name of the IAM role to be used by the Server Migration Service.
public String latestAmiId()
The ID of the latest Amazon Machine Image (AMI).
public ReplicationJobState state()
The state of the replication job.
If the service returns an enum value that is not available in the current SDK version, state
will return
ReplicationJobState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
stateAsString()
.
ReplicationJobState
public String stateAsString()
The state of the replication job.
If the service returns an enum value that is not available in the current SDK version, state
will return
ReplicationJobState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
stateAsString()
.
ReplicationJobState
public String statusMessage()
The description of the current status of the replication job.
public String description()
The description of the replication job.
public Integer numberOfRecentAmisToKeep()
Number of recent AMIs to keep in the customer's account for a replication job. By default the value is set to zero, meaning that all AMIs are kept.
public Boolean encrypted()
Whether the replication job should produce encrypted AMIs or not. See also KmsKeyId
below.
KmsKeyId
below.public String kmsKeyId()
KMS key ID for replication jobs that produce encrypted AMIs. Can be any of the following:
KMS key ID
KMS key alias
ARN referring to KMS key ID
ARN referring to KMS key alias
If encrypted is true but a KMS key id is not specified, the customer's default KMS key for EBS is used.
KMS key ID
KMS key alias
ARN referring to KMS key ID
ARN referring to KMS key alias
If encrypted is true but a KMS key id is not specified, the customer's default KMS key for EBS is used.
public List<ReplicationRun> replicationRunList()
Information about the replication runs.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public ReplicationJob.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<ReplicationJob.Builder,ReplicationJob>
public static ReplicationJob.Builder builder()
public static Class<? extends ReplicationJob.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.