Interface SourceProperties.Builder

    • Method Detail

      • cpus

        SourceProperties.Builder cpus​(Collection<CPU> cpus)

        An array of CPUs.

        Parameters:
        cpus - An array of CPUs.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • cpus

        SourceProperties.Builder cpus​(CPU... cpus)

        An array of CPUs.

        Parameters:
        cpus - An array of CPUs.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • cpus

        SourceProperties.Builder cpus​(Consumer<CPU.Builder>... cpus)

        An array of CPUs.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #cpus(List).

        Parameters:
        cpus - a consumer that will call methods on CPU.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #cpus(java.util.Collection)
      • disks

        SourceProperties.Builder disks​(Collection<Disk> disks)

        An array of disks.

        Parameters:
        disks - An array of disks.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • disks

        SourceProperties.Builder disks​(Disk... disks)

        An array of disks.

        Parameters:
        disks - An array of disks.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • disks

        SourceProperties.Builder disks​(Consumer<Disk.Builder>... disks)

        An array of disks.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #disks(List).

        Parameters:
        disks - a consumer that will call methods on Disk.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #disks(java.util.Collection)
      • identificationHints

        SourceProperties.Builder identificationHints​(IdentificationHints identificationHints)

        Hints used to uniquely identify a machine.

        Parameters:
        identificationHints - Hints used to uniquely identify a machine.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • lastUpdatedDateTime

        SourceProperties.Builder lastUpdatedDateTime​(String lastUpdatedDateTime)

        The date and time the Source Properties were last updated on.

        Parameters:
        lastUpdatedDateTime - The date and time the Source Properties were last updated on.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • networkInterfaces

        SourceProperties.Builder networkInterfaces​(Collection<NetworkInterface> networkInterfaces)

        An array of network interfaces.

        Parameters:
        networkInterfaces - An array of network interfaces.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • networkInterfaces

        SourceProperties.Builder networkInterfaces​(NetworkInterface... networkInterfaces)

        An array of network interfaces.

        Parameters:
        networkInterfaces - An array of network interfaces.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • os

        SourceProperties.Builder os​(OS os)

        Operating system.

        Parameters:
        os - Operating system.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ramBytes

        SourceProperties.Builder ramBytes​(Long ramBytes)

        The amount of RAM in bytes.

        Parameters:
        ramBytes - The amount of RAM in bytes.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • recommendedInstanceType

        SourceProperties.Builder recommendedInstanceType​(String recommendedInstanceType)

        The recommended EC2 instance type that will be used when recovering the Source Server.

        Parameters:
        recommendedInstanceType - The recommended EC2 instance type that will be used when recovering the Source Server.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • supportsNitroInstances

        SourceProperties.Builder supportsNitroInstances​(Boolean supportsNitroInstances)

        Are EC2 nitro instance types supported when recovering the Source Server.

        Parameters:
        supportsNitroInstances - Are EC2 nitro instance types supported when recovering the Source Server.
        Returns:
        Returns a reference to this object so that method calls can be chained together.