Interface InstancePlacementConfig.Builder

  • Method Details

    • enableMultipleJobs

      InstancePlacementConfig.Builder enableMultipleJobs(Boolean enableMultipleJobs)

      If set to true, allows multiple jobs to share the same UltraServer instances. If set to false, ensures this job's instances are placed on an UltraServer exclusively, with no other jobs sharing the same UltraServer. Default is false.

      Parameters:
      enableMultipleJobs - If set to true, allows multiple jobs to share the same UltraServer instances. If set to false, ensures this job's instances are placed on an UltraServer exclusively, with no other jobs sharing the same UltraServer. Default is false.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • placementSpecifications

      InstancePlacementConfig.Builder placementSpecifications(Collection<PlacementSpecification> placementSpecifications)

      A list of specifications for how instances should be placed on specific UltraServers. Maximum of 10 items is supported.

      Parameters:
      placementSpecifications - A list of specifications for how instances should be placed on specific UltraServers. Maximum of 10 items is supported.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • placementSpecifications

      InstancePlacementConfig.Builder placementSpecifications(PlacementSpecification... placementSpecifications)

      A list of specifications for how instances should be placed on specific UltraServers. Maximum of 10 items is supported.

      Parameters:
      placementSpecifications - A list of specifications for how instances should be placed on specific UltraServers. Maximum of 10 items is supported.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • placementSpecifications

      InstancePlacementConfig.Builder placementSpecifications(Consumer<PlacementSpecification.Builder>... placementSpecifications)

      A list of specifications for how instances should be placed on specific UltraServers. Maximum of 10 items is supported.

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

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

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