Class ContainerResourceMetricSource.Builder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.autoscaling.v2beta1.ContainerResourceMetricSource.Builder
-
- Enclosing class:
- ContainerResourceMetricSource
public static class ContainerResourceMetricSource.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContainerResourceMetricSource
build()
ContainerResourceMetricSource.Builder
container(@NonNull java.lang.String container)
container is the name of the container in the pods of the scaling targetContainerResourceMetricSource.Builder
name(@NonNull java.lang.String name)
name is the name of the resource in question.ContainerResourceMetricSource.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.ContainerResourceMetricSource.Builder
targetAverageValue(java.lang.String targetAverageValue)
java.lang.String
toString()
-
-
-
Method Detail
-
container
public ContainerResourceMetricSource.Builder container(@NonNull @NonNull java.lang.String container)
container is the name of the container in the pods of the scaling target- Returns:
this
.
-
name
public ContainerResourceMetricSource.Builder name(@NonNull @NonNull java.lang.String name)
name is the name of the resource in question.- Returns:
this
.
-
targetAverageUtilization
public ContainerResourceMetricSource.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 ContainerResourceMetricSource.Builder targetAverageValue(java.lang.String targetAverageValue)
- Returns:
this
.
-
build
public ContainerResourceMetricSource build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-