Class PriorityClass
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.scheduling.v1.PriorityClass
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<PriorityClassBuilder>,io.fabric8.kubernetes.api.model.HasMetadata,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class PriorityClass extends Object implements io.fabric8.kubernetes.api.builder.Editable<PriorityClassBuilder>, io.fabric8.kubernetes.api.model.HasMetadata
PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PriorityClass()No args constructor for use in serializationPriorityClass(String apiVersion, String description, Boolean globalDefault, String kind, io.fabric8.kubernetes.api.model.ObjectMeta metadata, String preemptionPolicy, Integer value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PriorityClassBuilderedit()Map<String,Object>getAdditionalProperties()StringgetApiVersion()APIVersion defines the versioned schema of this representation of an object.StringgetDescription()description is an arbitrary string that usually provides guidelines on when this priority class should be used.BooleangetGlobalDefault()globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class.StringgetKind()Kind is a string value representing the REST resource this object represents.io.fabric8.kubernetes.api.model.ObjectMetagetMetadata()PriorityClass defines mapping from a priority class name to the priority integer value.StringgetPreemptionPolicy()preemptionPolicy is the Policy for preempting pods with lower priority.IntegergetValue()value represents the integer value of this priority class.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetApiVersion(String apiVersion)APIVersion defines the versioned schema of this representation of an object.voidsetDescription(String description)description is an arbitrary string that usually provides guidelines on when this priority class should be used.voidsetGlobalDefault(Boolean globalDefault)globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class.voidsetKind(String kind)Kind is a string value representing the REST resource this object represents.voidsetMetadata(io.fabric8.kubernetes.api.model.ObjectMeta metadata)PriorityClass defines mapping from a priority class name to the priority integer value.voidsetPreemptionPolicy(String preemptionPolicy)preemptionPolicy is the Policy for preempting pods with lower priority.voidsetValue(Integer value)value represents the integer value of this priority class.PriorityClassBuildertoBuilder()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.fabric8.kubernetes.api.model.HasMetadata
addFinalizer, addOwnerReference, addOwnerReference, getFinalizers, getFullResourceName, getOwnerReferenceFor, getOwnerReferenceFor, getPlural, getSingular, hasFinalizer, hasOwnerReferenceFor, hasOwnerReferenceFor, initNameAndNamespaceFrom, isFinalizerValid, isMarkedForDeletion, optionalMetadata, removeFinalizer, removeOwnerReference, removeOwnerReference
-
-
-
-
Method Detail
-
getApiVersion
public String getApiVersion()
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- Specified by:
getApiVersionin interfaceio.fabric8.kubernetes.api.model.HasMetadata
-
setApiVersion
public void setApiVersion(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- Specified by:
setApiVersionin interfaceio.fabric8.kubernetes.api.model.HasMetadata
-
getDescription
public String getDescription()
description is an arbitrary string that usually provides guidelines on when this priority class should be used.
-
setDescription
public void setDescription(String description)
description is an arbitrary string that usually provides guidelines on when this priority class should be used.
-
getGlobalDefault
public Boolean getGlobalDefault()
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.
-
setGlobalDefault
public void setGlobalDefault(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.
-
getKind
public String getKind()
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- Specified by:
getKindin interfaceio.fabric8.kubernetes.api.model.HasMetadata
-
setKind
public void setKind(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
-
getMetadata
public io.fabric8.kubernetes.api.model.ObjectMeta getMetadata()
PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.- Specified by:
getMetadatain interfaceio.fabric8.kubernetes.api.model.HasMetadata
-
setMetadata
public void setMetadata(io.fabric8.kubernetes.api.model.ObjectMeta metadata)
PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.- Specified by:
setMetadatain interfaceio.fabric8.kubernetes.api.model.HasMetadata
-
getPreemptionPolicy
public String getPreemptionPolicy()
preemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.
-
setPreemptionPolicy
public void setPreemptionPolicy(String preemptionPolicy)
preemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.
-
getValue
public Integer getValue()
value represents the integer 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.
-
setValue
public void setValue(Integer value)
value represents the integer 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.
-
edit
public PriorityClassBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<PriorityClassBuilder>
-
toBuilder
public PriorityClassBuilder toBuilder()
-
-