Class FlowcontrolV1Subject
java.lang.Object
io.kubernetes.client.openapi.models.FlowcontrolV1Subject
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-04T19:05:53.712211Z[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 TypeMethodDescriptionboolean
static FlowcontrolV1Subject
Create 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) int
hashCode()
serviceAccount
(V1ServiceAccountSubject serviceAccount) void
setGroup
(V1GroupSubject group) void
void
setServiceAccount
(V1ServiceAccountSubject serviceAccount) void
setUser
(V1UserSubject user) toJson()
Convert an instance of FlowcontrolV1Subject to an JSON stringtoString()
user
(V1UserSubject 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
-
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
-