Class V1alpha3ResourceSliceSpec
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1alpha3ResourceSliceSpec
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1alpha3ResourceSliceSpec
extends Object
ResourceSliceSpec contains the information published by the driver in one ResourceSlice.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadddevicesItem
(V1alpha3Device devicesItem) Add an item to the devices property in a chainable fashion.Set allNodes in a chainable fashion.devices
(List<@Valid V1alpha3Device> devices) Set devices in a chainable fashion.Set driver in a chainable fashion.boolean
AllNodes indicates that all nodes have access to the resources in the pool.List<@Valid V1alpha3Device>
Devices lists some or all of the devices in this pool.Driver identifies the DRA driver providing the capacity information.NodeName identifies the node which provides the resources in this pool.getPool()
int
hashCode()
Set nodeName in a chainable fashion.nodeSelector
(V1NodeSelector nodeSelector) Set nodeSelector in a chainable fashion.pool
(V1alpha3ResourcePool pool) Set pool in a chainable fashion.void
setAllNodes
(Boolean allNodes) Set the allNodes property valuevoid
setDevices
(List<@Valid V1alpha3Device> devices) Set the devices property valuevoid
Set the driver property valuevoid
setNodeName
(String nodeName) Set the nodeName property valuevoid
setNodeSelector
(V1NodeSelector nodeSelector) Set the nodeSelector property valuevoid
setPool
(V1alpha3ResourcePool pool) Set the pool property valuetoString()
-
Field Details
-
JSON_PROPERTY_DRIVER
- See Also:
-
JSON_PROPERTY_POOL
- See Also:
-
JSON_PROPERTY_ALL_NODES
- See Also:
-
JSON_PROPERTY_DEVICES
- See Also:
-
JSON_PROPERTY_NODE_NAME
- See Also:
-
JSON_PROPERTY_NODE_SELECTOR
- See Also:
-
-
Constructor Details
-
V1alpha3ResourceSliceSpec
-
-
Method Details
-
getDriver
Driver identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.- Returns:
- the driver property value
-
setDriver
Set the driver property value- Parameters:
driver
- property value to set
-
driver
Set driver in a chainable fashion.- Returns:
- The same instance of V1alpha3ResourceSliceSpec for chaining.
-
getPool
- Returns:
- the pool property value
-
setPool
Set the pool property value- Parameters:
pool
- property value to set
-
pool
Set pool in a chainable fashion.- Returns:
- The same instance of V1alpha3ResourceSliceSpec for chaining.
-
getAllNodes
AllNodes indicates that all nodes have access to the resources in the pool. Exactly one of NodeName, NodeSelector and AllNodes must be set.- Returns:
- the allNodes property value
-
setAllNodes
Set the allNodes property value- Parameters:
allNodes
- property value to set
-
allNodes
Set allNodes in a chainable fashion.- Returns:
- The same instance of V1alpha3ResourceSliceSpec for chaining.
-
getDevices
Devices lists some or all of the devices in this pool. Must not have more than 128 entries.- Returns:
- the devices property value
-
setDevices
Set the devices property value- Parameters:
devices
- property value to set
-
devices
Set devices in a chainable fashion.- Returns:
- The same instance of V1alpha3ResourceSliceSpec for chaining.
-
adddevicesItem
Add an item to the devices property in a chainable fashion.- Returns:
- The same instance of V1alpha3ResourceSliceSpec for chaining.
-
getNodeName
NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node. This field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available. Exactly one of NodeName, NodeSelector and AllNodes must be set. This field is immutable.- Returns:
- the nodeName property value
-
setNodeName
Set the nodeName property value- Parameters:
nodeName
- property value to set
-
nodeName
Set nodeName in a chainable fashion.- Returns:
- The same instance of V1alpha3ResourceSliceSpec for chaining.
-
getNodeSelector
- Returns:
- the nodeSelector property value
-
setNodeSelector
Set the nodeSelector property value- Parameters:
nodeSelector
- property value to set
-
nodeSelector
Set nodeSelector in a chainable fashion.- Returns:
- The same instance of V1alpha3ResourceSliceSpec for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-