Class Taint.Builder

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

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

      • Builder

        public Builder()
    • Method Detail

      • effect

        @Stability(Stable)
        public Taint.Builder effect​(String effect)
        Sets the value of Taint.getEffect()
        Parameters:
        effect - Required. This parameter is required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute.
        Returns:
        this
      • key

        @Stability(Stable)
        public Taint.Builder key​(String key)
        Sets the value of Taint.getKey()
        Parameters:
        key - Required. This parameter is required. The taint key to be applied to a node.
        Returns:
        this
      • timeAdded

        @Stability(Stable)
        public Taint.Builder timeAdded​(Instant timeAdded)
        Sets the value of Taint.getTimeAdded()
        Parameters:
        timeAdded - TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints.
        Returns:
        this
      • value

        @Stability(Stable)
        public Taint.Builder value​(String value)
        Sets the value of Taint.getValue()
        Parameters:
        value - The taint value corresponding to the taint key.
        Returns:
        this
      • build

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