Class PriorityClass

  • All Implemented Interfaces:
    com.marcnuri.yakc.model.Model

    public class PriorityClass
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass. PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  PriorityClass.Builder  
    • Constructor Summary

      Constructors 
      Constructor Description
      PriorityClass()  
      PriorityClass​(java.lang.String apiVersion, java.lang.String description, java.lang.Boolean globalDefault, java.lang.String kind, ObjectMeta metadata, java.lang.String preemptionPolicy, @NonNull java.lang.Number value)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static PriorityClass.Builder builder()  
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      java.lang.String getApiVersion()
      APIVersion defines the versioned schema of this representation of an object.
      java.lang.String getDescription()
      description is an arbitrary string that usually provides guidelines on when this priority class should be used.
      java.lang.Boolean getGlobalDefault()
      globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class.
      java.lang.String getKind()
      Kind is a string value representing the REST resource this object represents.
      ObjectMeta getMetadata()  
      java.lang.String getPreemptionPolicy()
      PreemptionPolicy is the Policy for preempting pods with lower priority.
      @NonNull java.lang.Number getValue()
      The value of this priority class.
      int hashCode()  
      void setApiVersion​(java.lang.String apiVersion)
      APIVersion defines the versioned schema of this representation of an object.
      void setDescription​(java.lang.String description)
      description is an arbitrary string that usually provides guidelines on when this priority class should be used.
      void setGlobalDefault​(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.
      void setKind​(java.lang.String kind)
      Kind is a string value representing the REST resource this object represents.
      void setMetadata​(ObjectMeta metadata)  
      void setPreemptionPolicy​(java.lang.String preemptionPolicy)
      PreemptionPolicy is the Policy for preempting pods with lower priority.
      void setValue​(@NonNull java.lang.Number value)
      The value of this priority class.
      PriorityClass.Builder toBuilder()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PriorityClass

        public PriorityClass​(java.lang.String apiVersion,
                             java.lang.String description,
                             java.lang.Boolean globalDefault,
                             java.lang.String kind,
                             ObjectMeta metadata,
                             java.lang.String preemptionPolicy,
                             @NonNull
                             @NonNull java.lang.Number value)
      • PriorityClass

        public PriorityClass()
    • Method Detail

      • getApiVersion

        public java.lang.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
      • getDescription

        public java.lang.String getDescription()
        description is an arbitrary string that usually provides guidelines on when this priority class should be used.
      • getGlobalDefault

        public java.lang.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.
      • getKind

        public java.lang.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
      • getPreemptionPolicy

        public java.lang.String getPreemptionPolicy()
        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.
      • getValue

        @NonNull
        public @NonNull java.lang.Number getValue()
        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.
      • setApiVersion

        public void setApiVersion​(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
      • setDescription

        public void setDescription​(java.lang.String description)
        description is an arbitrary string that usually provides guidelines on when this priority class should be used.
      • setGlobalDefault

        public void setGlobalDefault​(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.
      • setKind

        public void setKind​(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
      • setMetadata

        public void setMetadata​(ObjectMeta metadata)
      • setPreemptionPolicy

        public void setPreemptionPolicy​(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.
      • setValue

        public void setValue​(@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.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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