public static interface ReplicationJob.Builder extends SdkPojo, CopyableBuilder<ReplicationJob.Builder,ReplicationJob>
Modifier and Type | Method and Description |
---|---|
ReplicationJob.Builder |
description(String description)
The description of the replication job.
|
ReplicationJob.Builder |
encrypted(Boolean encrypted)
Whether the replication job should produce encrypted AMIs or not.
|
ReplicationJob.Builder |
frequency(Integer frequency)
The time between consecutive replication runs, in hours.
|
ReplicationJob.Builder |
kmsKeyId(String kmsKeyId)
KMS key ID for replication jobs that produce encrypted AMIs.
|
ReplicationJob.Builder |
latestAmiId(String latestAmiId)
The ID of the latest Amazon Machine Image (AMI).
|
ReplicationJob.Builder |
licenseType(LicenseType licenseType)
The license type to be used for the AMI created by a successful replication run.
|
ReplicationJob.Builder |
licenseType(String licenseType)
The license type to be used for the AMI created by a successful replication run.
|
ReplicationJob.Builder |
nextReplicationRunStartTime(Instant nextReplicationRunStartTime)
The start time of the next replication run.
|
ReplicationJob.Builder |
numberOfRecentAmisToKeep(Integer numberOfRecentAmisToKeep)
Number of recent AMIs to keep in the customer's account for a replication job.
|
ReplicationJob.Builder |
replicationJobId(String replicationJobId)
The identifier of the replication job.
|
ReplicationJob.Builder |
replicationRunList(Collection<ReplicationRun> replicationRunList)
Information about the replication runs.
|
ReplicationJob.Builder |
replicationRunList(Consumer<ReplicationRun.Builder>... replicationRunList)
Information about the replication runs.
|
ReplicationJob.Builder |
replicationRunList(ReplicationRun... replicationRunList)
Information about the replication runs.
|
ReplicationJob.Builder |
roleName(String roleName)
The name of the IAM role to be used by the Server Migration Service.
|
ReplicationJob.Builder |
runOnce(Boolean runOnce)
|
ReplicationJob.Builder |
seedReplicationTime(Instant seedReplicationTime)
The seed replication time.
|
ReplicationJob.Builder |
serverId(String serverId)
The identifier of the server.
|
ReplicationJob.Builder |
serverType(ServerType serverType)
The type of server.
|
ReplicationJob.Builder |
serverType(String serverType)
The type of server.
|
ReplicationJob.Builder |
state(ReplicationJobState state)
The state of the replication job.
|
ReplicationJob.Builder |
state(String state)
The state of the replication job.
|
ReplicationJob.Builder |
statusMessage(String statusMessage)
The description of the current status of the replication job.
|
default ReplicationJob.Builder |
vmServer(Consumer<VmServer.Builder> vmServer)
Information about the VM server.
|
ReplicationJob.Builder |
vmServer(VmServer vmServer)
Information about the VM server.
|
copy
applyMutation, build
ReplicationJob.Builder replicationJobId(String replicationJobId)
The identifier of the replication job.
replicationJobId
- The identifier of the replication job.ReplicationJob.Builder serverId(String serverId)
The identifier of the server.
serverId
- The identifier of the server.ReplicationJob.Builder serverType(String serverType)
The type of server.
serverType
- The type of server.ServerType
,
ServerType
ReplicationJob.Builder serverType(ServerType serverType)
The type of server.
serverType
- The type of server.ServerType
,
ServerType
ReplicationJob.Builder vmServer(VmServer vmServer)
Information about the VM server.
vmServer
- Information about the VM server.default ReplicationJob.Builder vmServer(Consumer<VmServer.Builder> vmServer)
Information about the VM server.
This is a convenience that creates an instance of theVmServer.Builder
avoiding the need to create
one manually via VmServer.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result is
passed to vmServer(VmServer)
.vmServer
- a consumer that will call methods on VmServer.Builder
vmServer(VmServer)
ReplicationJob.Builder seedReplicationTime(Instant seedReplicationTime)
The seed replication time.
seedReplicationTime
- The seed replication time.ReplicationJob.Builder frequency(Integer frequency)
The time between consecutive replication runs, in hours.
frequency
- The time between consecutive replication runs, in hours.ReplicationJob.Builder runOnce(Boolean runOnce)
runOnce
- ReplicationJob.Builder nextReplicationRunStartTime(Instant nextReplicationRunStartTime)
The start time of the next replication run.
nextReplicationRunStartTime
- The start time of the next replication run.ReplicationJob.Builder licenseType(String licenseType)
The license type to be used for the AMI created by a successful replication run.
licenseType
- The license type to be used for the AMI created by a successful replication run.LicenseType
,
LicenseType
ReplicationJob.Builder licenseType(LicenseType licenseType)
The license type to be used for the AMI created by a successful replication run.
licenseType
- The license type to be used for the AMI created by a successful replication run.LicenseType
,
LicenseType
ReplicationJob.Builder roleName(String roleName)
The name of the IAM role to be used by the Server Migration Service.
roleName
- The name of the IAM role to be used by the Server Migration Service.ReplicationJob.Builder latestAmiId(String latestAmiId)
The ID of the latest Amazon Machine Image (AMI).
latestAmiId
- The ID of the latest Amazon Machine Image (AMI).ReplicationJob.Builder state(String state)
The state of the replication job.
state
- The state of the replication job.ReplicationJobState
,
ReplicationJobState
ReplicationJob.Builder state(ReplicationJobState state)
The state of the replication job.
state
- The state of the replication job.ReplicationJobState
,
ReplicationJobState
ReplicationJob.Builder statusMessage(String statusMessage)
The description of the current status of the replication job.
statusMessage
- The description of the current status of the replication job.ReplicationJob.Builder description(String description)
The description of the replication job.
description
- The description of the replication job.ReplicationJob.Builder numberOfRecentAmisToKeep(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.
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.ReplicationJob.Builder encrypted(Boolean encrypted)
Whether the replication job should produce encrypted AMIs or not. See also KmsKeyId
below.
encrypted
- Whether the replication job should produce encrypted AMIs or not. See also KmsKeyId
below.ReplicationJob.Builder kmsKeyId(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.
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.
ReplicationJob.Builder replicationRunList(Collection<ReplicationRun> replicationRunList)
Information about the replication runs.
replicationRunList
- Information about the replication runs.ReplicationJob.Builder replicationRunList(ReplicationRun... replicationRunList)
Information about the replication runs.
replicationRunList
- Information about the replication runs.ReplicationJob.Builder replicationRunList(Consumer<ReplicationRun.Builder>... replicationRunList)
Information about the replication runs.
This is a convenience that creates an instance of theList.Builder
avoiding the need
to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and
its result is passed to #replicationRunList(List)
.replicationRunList
- a consumer that will call methods on List.Builder
#replicationRunList(List)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.