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.
  • Field Details

  • Constructor Details

    • FlowcontrolV1Subject

      public FlowcontrolV1Subject()
  • Method Details

    • group

      public FlowcontrolV1Subject group(V1GroupSubject group)
    • getGroup

      @Nullable public V1GroupSubject getGroup()
      Get group
      Returns:
      group
    • setGroup

      public void setGroup(V1GroupSubject group)
    • kind

      public FlowcontrolV1Subject kind(String kind)
    • getKind

      @Nonnull public String getKind()
      `kind` indicates which one of the other fields is non-empty. Required
      Returns:
      kind
    • setKind

      public void setKind(String kind)
    • serviceAccount

      public FlowcontrolV1Subject serviceAccount(V1ServiceAccountSubject serviceAccount)
    • getServiceAccount

      @Nullable public V1ServiceAccountSubject getServiceAccount()
      Get serviceAccount
      Returns:
      serviceAccount
    • setServiceAccount

      public void setServiceAccount(V1ServiceAccountSubject serviceAccount)
    • user

      public FlowcontrolV1Subject user(V1UserSubject user)
    • getUser

      @Nullable public V1UserSubject getUser()
      Get user
      Returns:
      user
    • setUser

      public void setUser(V1UserSubject user)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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

      public static FlowcontrolV1Subject fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of FlowcontrolV1Subject to an JSON string
      Returns:
      JSON string