Class Scheduling.Builder

  • All Implemented Interfaces:
    software.amazon.jsii.Builder<Scheduling>
    Enclosing interface:
    Scheduling

    @Stability(Stable)
    public static final class Scheduling.Builder
    extends Object
    implements software.amazon.jsii.Builder<Scheduling>
    A builder for Scheduling
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • nodeSelector

        @Stability(Stable)
        public Scheduling.Builder nodeSelector​(Map<String,​String> nodeSelector)
        Parameters:
        nodeSelector - nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission.
        Returns:
        this
      • tolerations

        @Stability(Stable)
        public Scheduling.Builder tolerations​(List<? extends Toleration> tolerations)
        Sets the value of Scheduling.getTolerations()
        Parameters:
        tolerations - tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass.
        Returns:
        this
      • build

        @Stability(Stable)
        public Scheduling build()
        Builds the configured instance.
        Specified by:
        build in interface software.amazon.jsii.Builder<Scheduling>
        Returns:
        a new instance of Scheduling
        Throws:
        NullPointerException - if any required attribute was not provided