Class V2MetricSpec

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V2MetricSpec

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V2MetricSpec extends Object
MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).
  • Field Details

  • Constructor Details

    • V2MetricSpec

      public V2MetricSpec(String type)
  • Method Details

    • getContainerResource

      public V2ContainerResourceMetricSource getContainerResource()
      Returns:
      the containerResource property value
    • setContainerResource

      public void setContainerResource(V2ContainerResourceMetricSource containerResource)
      Set the containerResource property value
    • containerResource

      public V2MetricSpec containerResource(V2ContainerResourceMetricSource containerResource)
      Set containerResource in a chainable fashion.
      Returns:
      The same instance of V2MetricSpec for chaining.
    • getExternal

      public V2ExternalMetricSource getExternal()
      Returns:
      the external property value
    • setExternal

      public void setExternal(V2ExternalMetricSource external)
      Set the external property value
    • external

      public V2MetricSpec external(V2ExternalMetricSource external)
      Set external in a chainable fashion.
      Returns:
      The same instance of V2MetricSpec for chaining.
    • getObject

      public V2ObjectMetricSource getObject()
      Returns:
      the object property value
    • setObject

      public void setObject(V2ObjectMetricSource object)
      Set the object property value
    • object

      public V2MetricSpec object(V2ObjectMetricSource object)
      Set object in a chainable fashion.
      Returns:
      The same instance of V2MetricSpec for chaining.
    • getPods

      public V2PodsMetricSource getPods()
      Returns:
      the pods property value
    • setPods

      public void setPods(V2PodsMetricSource pods)
      Set the pods property value
    • pods

      public V2MetricSpec pods(V2PodsMetricSource pods)
      Set pods in a chainable fashion.
      Returns:
      The same instance of V2MetricSpec for chaining.
    • getResource

      public V2ResourceMetricSource getResource()
      Returns:
      the resource property value
    • setResource

      public void setResource(V2ResourceMetricSource resource)
      Set the resource property value
    • resource

      public V2MetricSpec resource(V2ResourceMetricSource resource)
      Set resource in a chainable fashion.
      Returns:
      The same instance of V2MetricSpec for chaining.
    • getType

      public String getType()
      type is the type of metric source. It should be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled
      Returns:
      the type property value
    • setType

      public void setType(String type)
      Set the type property value
    • type

      public V2MetricSpec type(String type)
      Set type in a chainable fashion.
      Returns:
      The same instance of V2MetricSpec for chaining.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object