Class V1beta3Subject
java.lang.Object
io.kubernetes.client.openapi.models.V1beta3Subject
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-10-04T19:37:38.574271Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1beta3Subject
extends Object
Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static V1beta3Subject
Create an instance of V1beta3Subject given an JSON stringgetGroup()
Get groupgetKind()
`kind` indicates which one of the other fields is non-empty.Get serviceAccountgetUser()
Get usergroup
(V1beta3GroupSubject group) int
hashCode()
serviceAccount
(V1beta3ServiceAccountSubject serviceAccount) void
setGroup
(V1beta3GroupSubject group) void
void
setServiceAccount
(V1beta3ServiceAccountSubject serviceAccount) void
setUser
(V1beta3UserSubject user) toJson()
Convert an instance of V1beta3Subject to an JSON stringtoString()
user
(V1beta3UserSubject user) static void
validateJsonElement
(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_KIND
- See Also:
-
SERIALIZED_NAME_SERVICE_ACCOUNT
- See Also:
-
SERIALIZED_NAME_USER
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1beta3Subject
public V1beta3Subject()
-
-
Method Details
-
group
-
getGroup
Get group- Returns:
- group
-
setGroup
-
kind
-
getKind
`kind` indicates which one of the other fields is non-empty. Required- Returns:
- kind
-
setKind
-
serviceAccount
-
getServiceAccount
Get serviceAccount- Returns:
- serviceAccount
-
setServiceAccount
-
user
-
getUser
Get user- Returns:
- user
-
setUser
-
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 V1beta3Subject
-
fromJson
Create an instance of V1beta3Subject given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1beta3Subject
- Throws:
IOException
- if the JSON string is invalid with respect to V1beta3Subject
-
toJson
Convert an instance of V1beta3Subject to an JSON string- Returns:
- JSON string
-