Class ResourceMetricSource.Builder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.autoscaling.v2beta1.ResourceMetricSource.Builder
-
- Enclosing class:
- ResourceMetricSource
public static class ResourceMetricSource.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceMetricSource
build()
ResourceMetricSource.Builder
name(@NonNull java.lang.String name)
name is the name of the resource in question.ResourceMetricSource.Builder
targetAverageUtilization(java.lang.Number targetAverageUtilization)
targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.ResourceMetricSource.Builder
targetAverageValue(java.lang.String targetAverageValue)
java.lang.String
toString()
-
-
-
Method Detail
-
name
public ResourceMetricSource.Builder name(@NonNull @NonNull java.lang.String name)
name is the name of the resource in question.- Returns:
this
.
-
targetAverageUtilization
public ResourceMetricSource.Builder targetAverageUtilization(java.lang.Number targetAverageUtilization)
targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.- Returns:
this
.
-
targetAverageValue
public ResourceMetricSource.Builder targetAverageValue(java.lang.String targetAverageValue)
- Returns:
this
.
-
build
public ResourceMetricSource build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-