Class ResourceClaimStatus
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.resource.v1alpha2.ResourceClaimStatus
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ResourceClaimStatusBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ResourceClaimStatus extends Object implements io.fabric8.kubernetes.api.builder.Editable<ResourceClaimStatusBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
ResourceClaimStatus tracks whether the resource has been allocated and what the resulting attributes are.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResourceClaimStatus()No args constructor for use in serializationResourceClaimStatus(AllocationResult allocation, Boolean deallocationRequested, String driverName, List<ResourceClaimConsumerReference> reservedFor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceClaimStatusBuilderedit()Map<String,Object>getAdditionalProperties()AllocationResultgetAllocation()ResourceClaimStatus tracks whether the resource has been allocated and what the resulting attributes are.BooleangetDeallocationRequested()DeallocationRequested indicates that a ResourceClaim is to be deallocated.StringgetDriverName()DriverName is a copy of the driver name from the ResourceClass at the time when allocation started.List<ResourceClaimConsumerReference>getReservedFor()ReservedFor indicates which entities are currently allowed to use the claim.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAllocation(AllocationResult allocation)ResourceClaimStatus tracks whether the resource has been allocated and what the resulting attributes are.voidsetDeallocationRequested(Boolean deallocationRequested)DeallocationRequested indicates that a ResourceClaim is to be deallocated.voidsetDriverName(String driverName)DriverName is a copy of the driver name from the ResourceClass at the time when allocation started.voidsetReservedFor(List<ResourceClaimConsumerReference> reservedFor)ReservedFor indicates which entities are currently allowed to use the claim.ResourceClaimStatusBuildertoBuilder()
-
-
-
Constructor Detail
-
ResourceClaimStatus
public ResourceClaimStatus()
No args constructor for use in serialization
-
ResourceClaimStatus
public ResourceClaimStatus(AllocationResult allocation, Boolean deallocationRequested, String driverName, List<ResourceClaimConsumerReference> reservedFor)
-
-
Method Detail
-
getAllocation
public AllocationResult getAllocation()
ResourceClaimStatus tracks whether the resource has been allocated and what the resulting attributes are.
-
setAllocation
public void setAllocation(AllocationResult allocation)
ResourceClaimStatus tracks whether the resource has been allocated and what the resulting attributes are.
-
getDeallocationRequested
public Boolean getDeallocationRequested()
DeallocationRequested indicates that a ResourceClaim is to be deallocated.The driver then must deallocate this claim and reset the field together with clearing the Allocation field.
While DeallocationRequested is set, no new consumers may be added to ReservedFor.
-
setDeallocationRequested
public void setDeallocationRequested(Boolean deallocationRequested)
DeallocationRequested indicates that a ResourceClaim is to be deallocated.The driver then must deallocate this claim and reset the field together with clearing the Allocation field.
While DeallocationRequested is set, no new consumers may be added to ReservedFor.
-
getDriverName
public String getDriverName()
DriverName is a copy of the driver name from the ResourceClass at the time when allocation started.
-
setDriverName
public void setDriverName(String driverName)
DriverName is a copy of the driver name from the ResourceClass at the time when allocation started.
-
getReservedFor
public List<ResourceClaimConsumerReference> getReservedFor()
ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started.There can be at most 32 such reservations. This may get increased in the future, but not reduced.
-
setReservedFor
public void setReservedFor(List<ResourceClaimConsumerReference> reservedFor)
ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started.There can be at most 32 such reservations. This may get increased in the future, but not reduced.
-
edit
public ResourceClaimStatusBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<ResourceClaimStatusBuilder>
-
toBuilder
public ResourceClaimStatusBuilder toBuilder()
-
-