Class PriorityClass.Builder

  • Enclosing class:
    PriorityClass

    public static class PriorityClass.Builder
    extends java.lang.Object
    • Method Detail

      • apiVersion

        public PriorityClass.Builder apiVersion​(java.lang.String apiVersion)
        APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
        Returns:
        this.
      • description

        public PriorityClass.Builder description​(java.lang.String description)
        description is an arbitrary string that usually provides guidelines on when this priority class should be used.
        Returns:
        this.
      • globalDefault

        public PriorityClass.Builder globalDefault​(java.lang.Boolean globalDefault)
        globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority.
        Returns:
        this.
      • kind

        public PriorityClass.Builder kind​(java.lang.String kind)
        Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
        Returns:
        this.
      • preemptionPolicy

        public PriorityClass.Builder preemptionPolicy​(java.lang.String preemptionPolicy)
        PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is beta-level, gated by the NonPreemptingPriority feature-gate.
        Returns:
        this.
      • value

        public PriorityClass.Builder value​(@NonNull
                                           @NonNull java.lang.Number value)
        The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.
        Returns:
        this.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object