Interface ReplicationJob.Builder

  • Method Details

    • replicationJobId

      ReplicationJob.Builder replicationJobId(String 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

      ReplicationJob.Builder serverId(String 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

      ReplicationJob.Builder serverType(String 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

      ReplicationJob.Builder serverType(ServerType 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

      ReplicationJob.Builder vmServer(VmServer 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

      default ReplicationJob.Builder vmServer(Consumer<VmServer.Builder> vmServer)

      Information about the VM server.

      This is a convenience method that creates an instance of the VmServer.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).

      Parameters:
      vmServer - a consumer that will call methods on VmServer.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • seedReplicationTime

      ReplicationJob.Builder seedReplicationTime(Instant 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

      ReplicationJob.Builder frequency(Integer 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

      ReplicationJob.Builder runOnce(Boolean 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

      ReplicationJob.Builder nextReplicationRunStartTime(Instant 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

      ReplicationJob.Builder licenseType(String 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

      ReplicationJob.Builder licenseType(LicenseType 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

      ReplicationJob.Builder roleName(String 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

      ReplicationJob.Builder latestAmiId(String 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

      ReplicationJob.Builder statusMessage(String 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

      ReplicationJob.Builder description(String 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

      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.

      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

      ReplicationJob.Builder encrypted(Boolean 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

      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.

      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

      ReplicationJob.Builder replicationRunList(Collection<ReplicationRun> 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

      ReplicationJob.Builder replicationRunList(ReplicationRun... 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

      ReplicationJob.Builder replicationRunList(Consumer<ReplicationRun.Builder>... replicationRunList)

      Information about the replication runs.

      This is a convenience method that creates an instance of the ReplicationRun.Builder avoiding the need to create one manually via ReplicationRun.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to replicationRunList(List<ReplicationRun>).

      Parameters:
      replicationRunList - a consumer that will call methods on ReplicationRun.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: