Class PriorityClass.Builder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.scheduling.v1alpha1.PriorityClass.Builder
-
- Enclosing class:
- PriorityClass
public static class PriorityClass.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PriorityClass.Builder
apiVersion(java.lang.String apiVersion)
APIVersion defines the versioned schema of this representation of an object.PriorityClass
build()
PriorityClass.Builder
description(java.lang.String description)
description is an arbitrary string that usually provides guidelines on when this priority class should be used.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.PriorityClass.Builder
kind(java.lang.String kind)
Kind is a string value representing the REST resource this object represents.PriorityClass.Builder
metadata(ObjectMeta metadata)
PriorityClass.Builder
preemptionPolicy(java.lang.String preemptionPolicy)
PreemptionPolicy is the Policy for preempting pods with lower priority.java.lang.String
toString()
PriorityClass.Builder
value(@NonNull java.lang.Number value)
The value of this priority class.
-
-
-
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
.
-
metadata
public PriorityClass.Builder metadata(ObjectMeta metadata)
-
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
.
-
build
public PriorityClass build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-