Class ResourceClaimSpec

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

    public class ResourceClaimSpec
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    ResourceClaimSpec defines how a resource is to be allocated.
    • Constructor Detail

      • ResourceClaimSpec

        public ResourceClaimSpec​(java.lang.String allocationMode,
                                 ResourceClaimParametersReference parametersRef,
                                 @NonNull
                                 @NonNull java.lang.String resourceClassName)
      • ResourceClaimSpec

        public ResourceClaimSpec()
    • Method Detail

      • getAllocationMode

        public java.lang.String getAllocationMode()
        Allocation can start immediately or when a Pod wants to use the resource. "WaitForFirstConsumer" is the default.
      • getResourceClassName

        @NonNull
        public @NonNull java.lang.String getResourceClassName()
        ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment.
      • setAllocationMode

        public void setAllocationMode​(java.lang.String allocationMode)
        Allocation can start immediately or when a Pod wants to use the resource. "WaitForFirstConsumer" is the default.
      • setResourceClassName

        public void setResourceClassName​(@NonNull
                                         @NonNull java.lang.String resourceClassName)
        ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment.
      • 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