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)
Indicates whether the replication job should produce encrypted AMIs.
|
ReplicationJob.Builder |
frequency(Integer frequency)
The time between consecutive replication runs, in hours.
|
ReplicationJob.Builder |
kmsKeyId(String kmsKeyId)
The ID of the KMS key 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)
The number of recent AMIs to keep in the customer's account for a replication job.
|
ReplicationJob.Builder |
replicationJobId(String replicationJobId)
The ID 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 AWS SMS.
|
ReplicationJob.Builder |
runOnce(Boolean runOnce)
Indicates whether to run the replication job one time.
|
ReplicationJob.Builder |
seedReplicationTime(Instant seedReplicationTime)
The seed replication time.
|
ReplicationJob.Builder |
serverId(String serverId)
The ID 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.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
ReplicationJob.Builder replicationJobId(String replicationJobId)
The ID of the replication job.
replicationJobId
- The ID of the replication job.ReplicationJob.Builder serverId(String serverId)
The ID of the server.
serverId
- The ID 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)
Indicates whether to run the replication job one time.
runOnce
- Indicates whether to run the replication job one time.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 AWS SMS.
roleName
- The name of the IAM role to be used by AWS SMS.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)
The 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
- The 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)
Indicates whether the replication job should produce encrypted AMIs.
encrypted
- Indicates whether the replication job should produce encrypted AMIs.ReplicationJob.Builder kmsKeyId(String kmsKeyId)
The ID of the KMS key for replication jobs that produce encrypted AMIs. This value can be any of the following:
KMS key ID
KMS key alias
ARN referring to the KMS key ID
ARN referring to the KMS key alias
If encrypted is enabled but a KMS key ID is not specified, the customer's default KMS key for Amazon EBS is used.
kmsKeyId
- The ID of the KMS key for replication jobs that produce encrypted AMIs. This value can be any of the
following:
KMS key ID
KMS key alias
ARN referring to the KMS key ID
ARN referring to the KMS key alias
If encrypted is enabled but a KMS key ID is not specified, the customer's default KMS key for Amazon 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)