Class V1ResourceStatus
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1ResourceStatus
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1ResourceStatus
extends Object
ResourceStatus represents the status of a single resource allocated to a Pod.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddResourcesItem
(V1ResourceHealth resourcesItem) Add an item to the resources property in a chainable fashion.boolean
getName()
Name of the resource.List<@Valid V1ResourceHealth>
List of unique resources health.int
hashCode()
Set name in a chainable fashion.resources
(List<@Valid V1ResourceHealth> resources) Set resources in a chainable fashion.void
Set the name property valuevoid
setResources
(List<@Valid V1ResourceHealth> resources) Set the resources property valuetoString()
-
Field Details
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_RESOURCES
- See Also:
-
-
Constructor Details
-
V1ResourceStatus
-
-
Method Details
-
getName
Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec. For DRA resources, the value must be \"claim:<claim_name>/<request>\". When this status is reported about a container, the \"claim_name\" and \"request\" must match one of the claims of this container.- Returns:
- the name property value
-
setName
Set the name property value- Parameters:
name
- property value to set
-
name
Set name in a chainable fashion.- Returns:
- The same instance of V1ResourceStatus for chaining.
-
getResources
List of unique resources health. Each element in the list contains an unique resource ID and its health. At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node. If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share. See ResourceID type definition for a specific format it has in various use cases.- Returns:
- the resources property value
-
setResources
Set the resources property value- Parameters:
resources
- property value to set
-
resources
Set resources in a chainable fashion.- Returns:
- The same instance of V1ResourceStatus for chaining.
-
addResourcesItem
Add an item to the resources property in a chainable fashion.- Returns:
- The same instance of V1ResourceStatus for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-