Class DeviceClaim
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.resource.v1alpha3.DeviceClaim
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<DeviceClaimBuilder>
,io.fabric8.kubernetes.api.model.KubernetesResource
,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class DeviceClaim extends Object implements io.fabric8.kubernetes.api.builder.Editable<DeviceClaimBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
DeviceClaim defines how to request devices with a ResourceClaim.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DeviceClaim()
No args constructor for use in serializationDeviceClaim(List<DeviceClaimConfiguration> config, List<DeviceConstraint> constraints, List<DeviceRequest> requests)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeviceClaimBuilder
edit()
Map<String,Object>
getAdditionalProperties()
List<DeviceClaimConfiguration>
getConfig()
This field holds configuration for multiple potential drivers which could satisfy requests in this claim.List<DeviceConstraint>
getConstraints()
These constraints must be satisfied by the set of devices that get allocated for the claim.List<DeviceRequest>
getRequests()
Requests represent individual requests for distinct devices which must all be satisfied.void
setAdditionalProperties(Map<String,Object> additionalProperties)
void
setAdditionalProperty(String name, Object value)
void
setConfig(List<DeviceClaimConfiguration> config)
This field holds configuration for multiple potential drivers which could satisfy requests in this claim.void
setConstraints(List<DeviceConstraint> constraints)
These constraints must be satisfied by the set of devices that get allocated for the claim.void
setRequests(List<DeviceRequest> requests)
Requests represent individual requests for distinct devices which must all be satisfied.DeviceClaimBuilder
toBuilder()
-
-
-
Constructor Detail
-
DeviceClaim
public DeviceClaim()
No args constructor for use in serialization
-
DeviceClaim
public DeviceClaim(List<DeviceClaimConfiguration> config, List<DeviceConstraint> constraints, List<DeviceRequest> requests)
-
-
Method Detail
-
getConfig
public List<DeviceClaimConfiguration> getConfig()
This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.
-
setConfig
public void setConfig(List<DeviceClaimConfiguration> config)
This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.
-
getConstraints
public List<DeviceConstraint> getConstraints()
These constraints must be satisfied by the set of devices that get allocated for the claim.
-
setConstraints
public void setConstraints(List<DeviceConstraint> constraints)
These constraints must be satisfied by the set of devices that get allocated for the claim.
-
getRequests
public List<DeviceRequest> getRequests()
Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.
-
setRequests
public void setRequests(List<DeviceRequest> requests)
Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.
-
edit
public DeviceClaimBuilder edit()
- Specified by:
edit
in interfaceio.fabric8.kubernetes.api.builder.Editable<DeviceClaimBuilder>
-
toBuilder
public DeviceClaimBuilder toBuilder()
-
-