Package org.cdk8s.plus25.k8s
Class WeightedPodAffinityTerm.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.WeightedPodAffinityTerm.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<WeightedPodAffinityTerm>
- Enclosing interface:
- WeightedPodAffinityTerm
@Stability(Stable) public static final class WeightedPodAffinityTerm.Builder extends Object implements software.amazon.jsii.Builder<WeightedPodAffinityTerm>
A builder forWeightedPodAffinityTerm
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WeightedPodAffinityTermbuild()Builds the configured instance.WeightedPodAffinityTerm.BuilderpodAffinityTerm(PodAffinityTerm podAffinityTerm)Sets the value ofWeightedPodAffinityTerm.getPodAffinityTerm()WeightedPodAffinityTerm.Builderweight(Number weight)Sets the value ofWeightedPodAffinityTerm.getWeight()
-
-
-
Method Detail
-
podAffinityTerm
@Stability(Stable) public WeightedPodAffinityTerm.Builder podAffinityTerm(PodAffinityTerm podAffinityTerm)
Sets the value ofWeightedPodAffinityTerm.getPodAffinityTerm()- Parameters:
podAffinityTerm- Required. This parameter is required. A pod affinity term, associated with the corresponding weight.- Returns:
this
-
weight
@Stability(Stable) public WeightedPodAffinityTerm.Builder weight(Number weight)
Sets the value ofWeightedPodAffinityTerm.getWeight()- Parameters:
weight- weight associated with matching the corresponding podAffinityTerm, in the range 1-100. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public WeightedPodAffinityTerm build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<WeightedPodAffinityTerm>- Returns:
- a new instance of
WeightedPodAffinityTerm - Throws:
NullPointerException- if any required attribute was not provided
-
-