Class HostSelector
- java.lang.Object
-
- io.fabric8.openshift.api.model.miscellaneous.metal3.v1beta1.HostSelector
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<HostSelectorBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class HostSelector extends Object implements io.fabric8.kubernetes.api.builder.Editable<HostSelectorBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
HostSelector specifies matching criteria for labels on BareMetalHosts. This is used to limit the set of BareMetalHost objects considered for claiming for a Machine.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HostSelector()No args constructor for use in serializationHostSelector(List<HostSelectorRequirement> matchExpressions, Map<String,String> matchLabels)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HostSelectorBuilderedit()Map<String,Object>getAdditionalProperties()List<HostSelectorRequirement>getMatchExpressions()Label match expressions that must be true on a chosen BareMetalHostMap<String,String>getMatchLabels()Key/value pairs of labels that must exist on a chosen BareMetalHostvoidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetMatchExpressions(List<HostSelectorRequirement> matchExpressions)Label match expressions that must be true on a chosen BareMetalHostvoidsetMatchLabels(Map<String,String> matchLabels)Key/value pairs of labels that must exist on a chosen BareMetalHostHostSelectorBuildertoBuilder()
-
-
-
Constructor Detail
-
HostSelector
public HostSelector()
No args constructor for use in serialization
-
HostSelector
public HostSelector(List<HostSelectorRequirement> matchExpressions, Map<String,String> matchLabels)
-
-
Method Detail
-
getMatchExpressions
public List<HostSelectorRequirement> getMatchExpressions()
Label match expressions that must be true on a chosen BareMetalHost
-
setMatchExpressions
public void setMatchExpressions(List<HostSelectorRequirement> matchExpressions)
Label match expressions that must be true on a chosen BareMetalHost
-
getMatchLabels
public Map<String,String> getMatchLabels()
Key/value pairs of labels that must exist on a chosen BareMetalHost
-
setMatchLabels
public void setMatchLabels(Map<String,String> matchLabels)
Key/value pairs of labels that must exist on a chosen BareMetalHost
-
edit
public HostSelectorBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<HostSelectorBuilder>
-
toBuilder
public HostSelectorBuilder toBuilder()
-
-