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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncontainerResource
(V2ContainerResourceMetricSource containerResource) Set containerResource in a chainable fashion.boolean
external
(V2ExternalMetricSource external) Set external in a chainable fashion.getPods()
getType()
type is the type of metric source.int
hashCode()
object
(V2ObjectMetricSource object) Set object in a chainable fashion.pods
(V2PodsMetricSource pods) Set pods in a chainable fashion.resource
(V2ResourceMetricSource resource) Set resource in a chainable fashion.void
setContainerResource
(V2ContainerResourceMetricSource containerResource) Set the containerResource property valuevoid
setExternal
(V2ExternalMetricSource external) Set the external property valuevoid
setObject
(V2ObjectMetricSource object) Set the object property valuevoid
setPods
(V2PodsMetricSource pods) Set the pods property valuevoid
setResource
(V2ResourceMetricSource resource) Set the resource property valuevoid
Set the type property valuetoString()
Set type in a chainable fashion.
-
Field Details
-
JSON_PROPERTY_TYPE
- See Also:
-
JSON_PROPERTY_CONTAINER_RESOURCE
- See Also:
-
JSON_PROPERTY_EXTERNAL
- See Also:
-
JSON_PROPERTY_OBJECT
- See Also:
-
JSON_PROPERTY_PODS
- See Also:
-
JSON_PROPERTY_RESOURCE
- See Also:
-
-
Constructor Details
-
V2MetricSpec
-
-
Method Details
-
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
Set the type property value- Parameters:
type
- property value to set
-
type
Set type in a chainable fashion.- Returns:
- The same instance of V2MetricSpec for chaining.
-
getContainerResource
- Returns:
- the containerResource property value
-
setContainerResource
Set the containerResource property value- Parameters:
containerResource
- property value to set
-
containerResource
Set containerResource in a chainable fashion.- Returns:
- The same instance of V2MetricSpec for chaining.
-
getExternal
- Returns:
- the external property value
-
setExternal
Set the external property value- Parameters:
external
- property value to set
-
external
Set external in a chainable fashion.- Returns:
- The same instance of V2MetricSpec for chaining.
-
getObject
- Returns:
- the object property value
-
setObject
Set the object property value- Parameters:
object
- property value to set
-
object
Set object in a chainable fashion.- Returns:
- The same instance of V2MetricSpec for chaining.
-
getPods
- Returns:
- the pods property value
-
setPods
Set the pods property value- Parameters:
pods
- property value to set
-
pods
Set pods in a chainable fashion.- Returns:
- The same instance of V2MetricSpec for chaining.
-
getResource
- Returns:
- the resource property value
-
setResource
Set the resource property value- Parameters:
resource
- property value to set
-
resource
Set resource in a chainable fashion.- Returns:
- The same instance of V2MetricSpec for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-