Package io.fabric8.kubernetes.api.model
Class WeightedPodAffinityTerm
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.WeightedPodAffinityTerm
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<WeightedPodAffinityTermBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class WeightedPodAffinityTerm extends Object implements io.fabric8.kubernetes.api.builder.Editable<WeightedPodAffinityTermBuilder>, KubernetesResource
The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WeightedPodAffinityTerm()No args constructor for use in serializationWeightedPodAffinityTerm(PodAffinityTerm podAffinityTerm, Integer weight)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WeightedPodAffinityTermBuilderedit()Map<String,Object>getAdditionalProperties()PodAffinityTermgetPodAffinityTerm()The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)IntegergetWeight()weight associated with matching the corresponding podAffinityTerm, in the range 1-100.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetPodAffinityTerm(PodAffinityTerm podAffinityTerm)The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)voidsetWeight(Integer weight)weight associated with matching the corresponding podAffinityTerm, in the range 1-100.WeightedPodAffinityTermBuildertoBuilder()
-
-
-
Constructor Detail
-
WeightedPodAffinityTerm
public WeightedPodAffinityTerm()
No args constructor for use in serialization
-
WeightedPodAffinityTerm
public WeightedPodAffinityTerm(PodAffinityTerm podAffinityTerm, Integer weight)
-
-
Method Detail
-
getPodAffinityTerm
public PodAffinityTerm getPodAffinityTerm()
The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)
-
setPodAffinityTerm
public void setPodAffinityTerm(PodAffinityTerm podAffinityTerm)
The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)
-
getWeight
public Integer getWeight()
weight associated with matching the corresponding podAffinityTerm, in the range 1-100.
-
setWeight
public void setWeight(Integer weight)
weight associated with matching the corresponding podAffinityTerm, in the range 1-100.
-
edit
public WeightedPodAffinityTermBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<WeightedPodAffinityTermBuilder>
-
toBuilder
public WeightedPodAffinityTermBuilder toBuilder()
-
-