Class V1alpha3DeviceClassSpec
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1alpha3DeviceClassSpec
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1alpha3DeviceClassSpec
extends Object
DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddconfigItem
(V1alpha3DeviceClassConfiguration configItem) Add an item to the config property in a chainable fashion.addselectorsItem
(V1alpha3DeviceSelector selectorsItem) Add an item to the selectors property in a chainable fashion.config
(List<@Valid V1alpha3DeviceClassConfiguration> config) Set config in a chainable fashion.boolean
List<@Valid V1alpha3DeviceClassConfiguration>
Config defines configuration parameters that apply to each device that is claimed via this class.List<@Valid V1alpha3DeviceSelector>
Each selector must be satisfied by a device which is claimed via this class.int
hashCode()
selectors
(List<@Valid V1alpha3DeviceSelector> selectors) Set selectors in a chainable fashion.void
setConfig
(List<@Valid V1alpha3DeviceClassConfiguration> config) Set the config property valuevoid
setSelectors
(List<@Valid V1alpha3DeviceSelector> selectors) Set the selectors property valuevoid
setSuitableNodes
(V1NodeSelector suitableNodes) Set the suitableNodes property valuesuitableNodes
(V1NodeSelector suitableNodes) Set suitableNodes in a chainable fashion.toString()
-
Field Details
-
JSON_PROPERTY_CONFIG
- See Also:
-
JSON_PROPERTY_SELECTORS
- See Also:
-
JSON_PROPERTY_SUITABLE_NODES
- See Also:
-
-
Constructor Details
-
V1alpha3DeviceClassSpec
public V1alpha3DeviceClassSpec()
-
-
Method Details
-
getConfig
Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver. They are passed to the driver, but are not considered 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 V1alpha3DeviceClassSpec for chaining.
-
addconfigItem
Add an item to the config property in a chainable fashion.- Returns:
- The same instance of V1alpha3DeviceClassSpec for chaining.
-
getSelectors
Each selector must be satisfied by a device which is claimed via this class.- Returns:
- the selectors property value
-
setSelectors
Set the selectors property value- Parameters:
selectors
- property value to set
-
selectors
Set selectors in a chainable fashion.- Returns:
- The same instance of V1alpha3DeviceClassSpec for chaining.
-
addselectorsItem
Add an item to the selectors property in a chainable fashion.- Returns:
- The same instance of V1alpha3DeviceClassSpec for chaining.
-
getSuitableNodes
- Returns:
- the suitableNodes property value
-
setSuitableNodes
Set the suitableNodes property value- Parameters:
suitableNodes
- property value to set
-
suitableNodes
Set suitableNodes in a chainable fashion.- Returns:
- The same instance of V1alpha3DeviceClassSpec for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-