Class V1alpha3DeviceClaim
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1alpha3DeviceClaim
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1alpha3DeviceClaim
extends Object
DeviceClaim defines how to request devices with a ResourceClaim.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddconfigItem
(V1alpha3DeviceClaimConfiguration configItem) Add an item to the config property in a chainable fashion.addconstraintsItem
(V1alpha3DeviceConstraint constraintsItem) Add an item to the constraints property in a chainable fashion.addrequestsItem
(V1alpha3DeviceRequest requestsItem) Add an item to the requests property in a chainable fashion.config
(List<@Valid V1alpha3DeviceClaimConfiguration> config) Set config in a chainable fashion.constraints
(List<@Valid V1alpha3DeviceConstraint> constraints) Set constraints in a chainable fashion.boolean
List<@Valid V1alpha3DeviceClaimConfiguration>
This field holds configuration for multiple potential drivers which could satisfy requests in this claim.List<@Valid V1alpha3DeviceConstraint>
These constraints must be satisfied by the set of devices that get allocated for the claim.List<@Valid V1alpha3DeviceRequest>
Requests represent individual requests for distinct devices which must all be satisfied.int
hashCode()
requests
(List<@Valid V1alpha3DeviceRequest> requests) Set requests in a chainable fashion.void
setConfig
(List<@Valid V1alpha3DeviceClaimConfiguration> config) Set the config property valuevoid
setConstraints
(List<@Valid V1alpha3DeviceConstraint> constraints) Set the constraints property valuevoid
setRequests
(List<@Valid V1alpha3DeviceRequest> requests) Set the requests property valuetoString()
-
Field Details
-
JSON_PROPERTY_CONFIG
- See Also:
-
JSON_PROPERTY_CONSTRAINTS
- See Also:
-
JSON_PROPERTY_REQUESTS
- See Also:
-
-
Constructor Details
-
V1alpha3DeviceClaim
public V1alpha3DeviceClaim()
-
-
Method Details
-
getConfig
This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.- Returns:
- the config property value
-
setConfig
Set the config property value- Parameters:
config
- property value to set
-
config
Set config in a chainable fashion.- Returns:
- The same instance of V1alpha3DeviceClaim for chaining.
-
addconfigItem
Add an item to the config property in a chainable fashion.- Returns:
- The same instance of V1alpha3DeviceClaim for chaining.
-
getConstraints
These constraints must be satisfied by the set of devices that get allocated for the claim.- Returns:
- the constraints property value
-
setConstraints
Set the constraints property value- Parameters:
constraints
- property value to set
-
constraints
Set constraints in a chainable fashion.- Returns:
- The same instance of V1alpha3DeviceClaim for chaining.
-
addconstraintsItem
Add an item to the constraints property in a chainable fashion.- Returns:
- The same instance of V1alpha3DeviceClaim for chaining.
-
getRequests
Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.- Returns:
- the requests property value
-
setRequests
Set the requests property value- Parameters:
requests
- property value to set
-
requests
Set requests in a chainable fashion.- Returns:
- The same instance of V1alpha3DeviceClaim for chaining.
-
addrequestsItem
Add an item to the requests property in a chainable fashion.- Returns:
- The same instance of V1alpha3DeviceClaim for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-