Interface ReplicationJob.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ReplicationJob.Builder,
,ReplicationJob> SdkBuilder<ReplicationJob.Builder,
,ReplicationJob> SdkPojo
- Enclosing class:
ReplicationJob
-
Method Summary
Modifier and TypeMethodDescriptiondescription
(String description) The description of the replication job.Indicates whether the replication job should produce encrypted AMIs.The time between consecutive replication runs, in hours.The ID of the KMS key for replication jobs that produce encrypted AMIs.latestAmiId
(String latestAmiId) The ID of the latest Amazon Machine Image (AMI).licenseType
(String licenseType) The license type to be used for the AMI created by a successful replication run.licenseType
(LicenseType licenseType) The license type to be used for the AMI created by a successful replication run.nextReplicationRunStartTime
(Instant nextReplicationRunStartTime) The start time of the next replication run.numberOfRecentAmisToKeep
(Integer numberOfRecentAmisToKeep) The number of recent AMIs to keep in the customer's account for a replication job.replicationJobId
(String replicationJobId) The ID of the replication job.replicationRunList
(Collection<ReplicationRun> replicationRunList) Information about the replication runs.replicationRunList
(Consumer<ReplicationRun.Builder>... replicationRunList) Information about the replication runs.replicationRunList
(ReplicationRun... replicationRunList) Information about the replication runs.The name of the IAM role to be used by Server Migration Service.Indicates whether to run the replication job one time.seedReplicationTime
(Instant seedReplicationTime) The seed replication time.The ID of the server.serverType
(String serverType) The type of server.serverType
(ServerType serverType) The type of server.The state of the replication job.state
(ReplicationJobState state) The state of the replication job.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.Information about the VM server.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, sdkFieldNameToField, sdkFields
-
Method Details
-
replicationJobId
The ID of the replication job.
- Parameters:
replicationJobId
- The ID of the replication job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serverId
The ID of the server.
- Parameters:
serverId
- The ID of the server.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serverType
The type of server.
- Parameters:
serverType
- The type of server.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
serverType
The type of server.
- Parameters:
serverType
- The type of server.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
vmServer
Information about the VM server.
- Parameters:
vmServer
- Information about the VM server.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vmServer
Information about the VM server.
This is a convenience method that creates an instance of theVmServer.Builder
avoiding the need to create one manually viaVmServer.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovmServer(VmServer)
.- Parameters:
vmServer
- a consumer that will call methods onVmServer.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
seedReplicationTime
The seed replication time.
- Parameters:
seedReplicationTime
- The seed replication time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
frequency
The time between consecutive replication runs, in hours.
- Parameters:
frequency
- The time between consecutive replication runs, in hours.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
runOnce
Indicates whether to run the replication job one time.
- Parameters:
runOnce
- Indicates whether to run the replication job one time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextReplicationRunStartTime
The start time of the next replication run.
- Parameters:
nextReplicationRunStartTime
- The start time of the next replication run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
licenseType
The license type to be used for the AMI created by a successful replication run.
- Parameters:
licenseType
- The license type to be used for the AMI created by a successful replication run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
licenseType
The license type to be used for the AMI created by a successful replication run.
- Parameters:
licenseType
- The license type to be used for the AMI created by a successful replication run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
roleName
The name of the IAM role to be used by Server Migration Service.
- Parameters:
roleName
- The name of the IAM role to be used by Server Migration Service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
latestAmiId
The ID of the latest Amazon Machine Image (AMI).
- Parameters:
latestAmiId
- The ID of the latest Amazon Machine Image (AMI).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
The state of the replication job.
- Parameters:
state
- The state of the replication job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The state of the replication job.
- Parameters:
state
- The state of the replication job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
statusMessage
The description of the current status of the replication job.
- Parameters:
statusMessage
- The description of the current status of the replication job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the replication job.
- Parameters:
description
- The description of the replication job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
encrypted
Indicates whether the replication job should produce encrypted AMIs.
- Parameters:
encrypted
- Indicates whether the replication job should produce encrypted AMIs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
replicationRunList
Information about the replication runs.
- Parameters:
replicationRunList
- Information about the replication runs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
replicationRunList
Information about the replication runs.
- Parameters:
replicationRunList
- Information about the replication runs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
replicationRunList
Information about the replication runs.
This is a convenience method that creates an instance of theReplicationRun.Builder
avoiding the need to create one manually viaReplicationRun.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toreplicationRunList(List<ReplicationRun>)
.- Parameters:
replicationRunList
- a consumer that will call methods onReplicationRun.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-