Class V2MetricStatus

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

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V2MetricStatus extends Object
MetricStatus describes the last-read state of a single metric.
  • Field Details

  • Constructor Details

    • V2MetricStatus

      public V2MetricStatus(String type)
  • Method Details

    • getType

      public String getType()
      type is the type of metric source. It will be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each corresponds 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
      Parameters:
      type - property value to set
    • type

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

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

      public void setContainerResource(V2ContainerResourceMetricStatus containerResource)
      Set the containerResource property value
      Parameters:
      containerResource - property value to set
    • containerResource

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

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

      public void setExternal(V2ExternalMetricStatus external)
      Set the external property value
      Parameters:
      external - property value to set
    • external

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

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

      public void setObject(V2ObjectMetricStatus object)
      Set the object property value
      Parameters:
      object - property value to set
    • object

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

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

      public void setPods(V2PodsMetricStatus pods)
      Set the pods property value
      Parameters:
      pods - property value to set
    • pods

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

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

      public void setResource(V2ResourceMetricStatus resource)
      Set the resource property value
      Parameters:
      resource - property value to set
    • resource

      public V2MetricStatus resource(V2ResourceMetricStatus resource)
      Set resource in a chainable fashion.
      Returns:
      The same instance of V2MetricStatus 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