Class ResourceClaimSpec
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.resource.v1alpha2.ResourceClaimSpec
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ResourceClaimSpecBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ResourceClaimSpec extends Object implements io.fabric8.kubernetes.api.builder.Editable<ResourceClaimSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
ResourceClaimSpec defines how a resource is to be allocated.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResourceClaimSpec()No args constructor for use in serializationResourceClaimSpec(String allocationMode, ResourceClaimParametersReference parametersRef, String resourceClassName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceClaimSpecBuilderedit()Map<String,Object>getAdditionalProperties()StringgetAllocationMode()Allocation can start immediately or when a Pod wants to use the resource.ResourceClaimParametersReferencegetParametersRef()ResourceClaimSpec defines how a resource is to be allocated.StringgetResourceClassName()ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAllocationMode(String allocationMode)Allocation can start immediately or when a Pod wants to use the resource.voidsetParametersRef(ResourceClaimParametersReference parametersRef)ResourceClaimSpec defines how a resource is to be allocated.voidsetResourceClassName(String resourceClassName)ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment.ResourceClaimSpecBuildertoBuilder()
-
-
-
Constructor Detail
-
ResourceClaimSpec
public ResourceClaimSpec()
No args constructor for use in serialization
-
ResourceClaimSpec
public ResourceClaimSpec(String allocationMode, ResourceClaimParametersReference parametersRef, String resourceClassName)
-
-
Method Detail
-
getAllocationMode
public String getAllocationMode()
Allocation can start immediately or when a Pod wants to use the resource. "WaitForFirstConsumer" is the default.
-
setAllocationMode
public void setAllocationMode(String allocationMode)
Allocation can start immediately or when a Pod wants to use the resource. "WaitForFirstConsumer" is the default.
-
getParametersRef
public ResourceClaimParametersReference getParametersRef()
ResourceClaimSpec defines how a resource is to be allocated.
-
setParametersRef
public void setParametersRef(ResourceClaimParametersReference parametersRef)
ResourceClaimSpec defines how a resource is to be allocated.
-
getResourceClassName
public String getResourceClassName()
ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment.
-
setResourceClassName
public void setResourceClassName(String resourceClassName)
ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment.
-
edit
public ResourceClaimSpecBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<ResourceClaimSpecBuilder>
-
toBuilder
public ResourceClaimSpecBuilder toBuilder()
-
-