Class V1GroupResource
java.lang.Object
io.kubernetes.client.openapi.models.V1GroupResource
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-01-21T21:30:13.305152Z[Etc/UTC]",
comments="Generator version: 7.18.0")
public class V1GroupResource
extends Object
GroupResource specifies a Group and a Resource, but does not force a version. This is useful for identifying concepts during lookup stages without having partially valid types
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic V1GroupResourceCreate an instance of V1GroupResource given an JSON stringgetGroup()Get groupGet resourceinthashCode()voidvoidsetResource(String resource) toJson()Convert an instance of V1GroupResource to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_GROUP
- See Also:
-
SERIALIZED_NAME_RESOURCE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1GroupResource
public V1GroupResource()
-
-
Method Details
-
group
-
getGroup
Get group- Returns:
- group
-
setGroup
-
resource
-
getResource
Get resource- Returns:
- resource
-
setResource
-
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 V1GroupResource
-
fromJson
Create an instance of V1GroupResource given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of V1GroupResource
- Throws:
IOException- if the JSON string is invalid with respect to V1GroupResource
-
toJson
Convert an instance of V1GroupResource to an JSON string- Returns:
- JSON string
-