Class ResourceClaimSpec
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.resource.v1alpha2.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ResourceClaimSpec.Builder
-
Constructor Summary
Constructors Constructor Description ResourceClaimSpec()
ResourceClaimSpec(java.lang.String allocationMode, ResourceClaimParametersReference parametersRef, @NonNull java.lang.String resourceClassName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResourceClaimSpec.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.String
getAllocationMode()
Allocation can start immediately or when a Pod wants to use the resource.ResourceClaimParametersReference
getParametersRef()
@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.int
hashCode()
void
setAllocationMode(java.lang.String allocationMode)
Allocation can start immediately or when a Pod wants to use the resource.void
setParametersRef(ResourceClaimParametersReference parametersRef)
void
setResourceClassName(@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.ResourceClaimSpec.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
ResourceClaimSpec
public ResourceClaimSpec(java.lang.String allocationMode, ResourceClaimParametersReference parametersRef, @NonNull @NonNull java.lang.String resourceClassName)
-
ResourceClaimSpec
public ResourceClaimSpec()
-
-
Method Detail
-
builder
public static ResourceClaimSpec.Builder builder()
-
toBuilder
public ResourceClaimSpec.Builder toBuilder()
-
getAllocationMode
public java.lang.String getAllocationMode()
Allocation can start immediately or when a Pod wants to use the resource. "WaitForFirstConsumer" is the default.
-
getParametersRef
public ResourceClaimParametersReference getParametersRef()
-
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.
-
setParametersRef
public void setParametersRef(ResourceClaimParametersReference parametersRef)
-
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 classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-