Class FlowcontrolV1Subject
java.lang.Object
io.kubernetes.client.openapi.models.FlowcontrolV1Subject
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-12T21:15:49.397498Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class FlowcontrolV1Subject
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 TypeMethodDescriptionbooleanstatic FlowcontrolV1SubjectCreate an instance of FlowcontrolV1Subject given an JSON stringgetGroup()Get groupgetKind()`kind` indicates which one of the other fields is non-empty.Get serviceAccountgetUser()Get usergroup(V1GroupSubject group) inthashCode()serviceAccount(V1ServiceAccountSubject serviceAccount) voidsetGroup(V1GroupSubject group) voidvoidsetServiceAccount(V1ServiceAccountSubject serviceAccount) voidsetUser(V1UserSubject user) toJson()Convert an instance of FlowcontrolV1Subject to an JSON stringtoString()user(V1UserSubject user) 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_KIND
- See Also:
-
SERIALIZED_NAME_SERVICE_ACCOUNT
- See Also:
-
SERIALIZED_NAME_USER
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
FlowcontrolV1Subject
public FlowcontrolV1Subject()
-
-
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 FlowcontrolV1Subject
-
fromJson
Create an instance of FlowcontrolV1Subject given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of FlowcontrolV1Subject
- Throws:
IOException- if the JSON string is invalid with respect to FlowcontrolV1Subject
-
toJson
Convert an instance of FlowcontrolV1Subject to an JSON string- Returns:
- JSON string
-