Class DeviceCounterConsumption
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.resource.v1beta2.DeviceCounterConsumption
-
- All Implemented Interfaces:
Editable<DeviceCounterConsumptionBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class DeviceCounterConsumption extends Object implements Editable<DeviceCounterConsumptionBuilder>, KubernetesResource
DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DeviceCounterConsumption()No args constructor for use in serializationDeviceCounterConsumption(List<String> compatibilityGroups, String counterSet, Map<String,Counter> counters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeviceCounterConsumptionBuilderedit()Map<String,Object>getAdditionalProperties()List<String>getCompatibilityGroups()CompatibilityGroups is a list of opaque group names for this counter set consumption.Map<String,Counter>getCounters()Counters defines the counters that will be consumed by the device.StringgetCounterSet()CounterSet is the name of the set from which the counters defined will be consumed.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetCompatibilityGroups(List<String> compatibilityGroups)CompatibilityGroups is a list of opaque group names for this counter set consumption.voidsetCounters(Map<String,Counter> counters)Counters defines the counters that will be consumed by the device.voidsetCounterSet(String counterSet)CounterSet is the name of the set from which the counters defined will be consumed.DeviceCounterConsumptionBuildertoBuilder()
-
-
-
Method Detail
-
getCompatibilityGroups
public List<String> getCompatibilityGroups()
CompatibilityGroups is a list of opaque group names for this counter set consumption.Devices that consume counters from the same counter set may only be allocated at the same time ("co-allocated") if they all share at least one common group: the intersection of the CompatibilityGroups of all co-allocated devices on that counter set must be non-empty. Devices that consume from different counter sets are never compared via this field.
An unset field, an explicit nil, and an empty list are equivalent and mean "no groups": such a device is only co-allocatable with sibling devices on the same counter set that also have no groups, and is never co-allocatable with a device that declares one or more groups.
Group names are opaque and meaningful only within the publishing driver's pool.
The maximum number of groups is 2, and the names must be unique.
-
setCompatibilityGroups
public void setCompatibilityGroups(List<String> compatibilityGroups)
CompatibilityGroups is a list of opaque group names for this counter set consumption.Devices that consume counters from the same counter set may only be allocated at the same time ("co-allocated") if they all share at least one common group: the intersection of the CompatibilityGroups of all co-allocated devices on that counter set must be non-empty. Devices that consume from different counter sets are never compared via this field.
An unset field, an explicit nil, and an empty list are equivalent and mean "no groups": such a device is only co-allocatable with sibling devices on the same counter set that also have no groups, and is never co-allocatable with a device that declares one or more groups.
Group names are opaque and meaningful only within the publishing driver's pool.
The maximum number of groups is 2, and the names must be unique.
-
getCounterSet
public String getCounterSet()
CounterSet is the name of the set from which the counters defined will be consumed.
-
setCounterSet
public void setCounterSet(String counterSet)
CounterSet is the name of the set from which the counters defined will be consumed.
-
getCounters
public Map<String,Counter> getCounters()
Counters defines the counters that will be consumed by the device.The maximum number of counters is 32.
-
setCounters
public void setCounters(Map<String,Counter> counters)
Counters defines the counters that will be consumed by the device.The maximum number of counters is 32.
-
edit
public DeviceCounterConsumptionBuilder edit()
- Specified by:
editin interfaceEditable<DeviceCounterConsumptionBuilder>
-
toBuilder
public DeviceCounterConsumptionBuilder toBuilder()
-
-