Class V1ResourceStatus
java.lang.Object
io.kubernetes.client.openapi.models.V1ResourceStatus
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-10-04T19:37:38.574271Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1ResourceStatus
extends Object
V1ResourceStatus
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddResourcesItem
(V1ResourceHealth resourcesItem) boolean
static V1ResourceStatus
Create an instance of V1ResourceStatus given an JSON stringgetName()
Name of the resource.List of unique Resources health.int
hashCode()
resources
(List<V1ResourceHealth> resources) void
void
setResources
(List<V1ResourceHealth> resources) toJson()
Convert an instance of V1ResourceStatus to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_RESOURCES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1ResourceStatus
public V1ResourceStatus()
-
-
Method Details
-
name
-
getName
Name of the resource. Must be unique within the pod and match one of the resources from the pod spec.- Returns:
- name
-
setName
-
resources
-
addResourcesItem
-
getResources
List of unique Resources health. Each element in the list contains an unique resource ID and resource health. At a minimum, ResourceID must uniquely identify the Resource allocated to the Pod on the Node for the lifetime of a Pod. See ResourceID type for it's definition.- Returns:
- resources
-
setResources
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement
- JSON Element- Throws:
IOException
- if the JSON Element is invalid with respect to V1ResourceStatus
-
fromJson
Create an instance of V1ResourceStatus given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1ResourceStatus
- Throws:
IOException
- if the JSON string is invalid with respect to V1ResourceStatus
-
toJson
Convert an instance of V1ResourceStatus to an JSON string- Returns:
- JSON string
-