Class V1RoleRef

java.lang.Object
io.kubernetes.client.openapi.models.V1RoleRef

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T17:56:12.287571Z[Etc/UTC]") public class V1RoleRef extends Object
RoleRef contains information that points to the role being used
  • Field Details

  • Constructor Details

    • V1RoleRef

      public V1RoleRef()
  • Method Details

    • apiGroup

      public V1RoleRef apiGroup(String apiGroup)
    • getApiGroup

      @Nonnull public String getApiGroup()
      APIGroup is the group for the resource being referenced
      Returns:
      apiGroup
    • setApiGroup

      public void setApiGroup(String apiGroup)
    • kind

      public V1RoleRef kind(String kind)
    • getKind

      @Nonnull public String getKind()
      Kind is the type of resource being referenced
      Returns:
      kind
    • setKind

      public void setKind(String kind)
    • name

      public V1RoleRef name(String name)
    • getName

      @Nonnull public String getName()
      Name is the name of resource being referenced
      Returns:
      name
    • setName

      public void setName(String name)
    • 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
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      Validates the JSON Object and throws an exception if issues found
      Parameters:
      jsonObj - JSON Object
      Throws:
      IOException - if the JSON Object is invalid with respect to V1RoleRef
    • fromJson

      public static V1RoleRef fromJson(String jsonString) throws IOException
      Create an instance of V1RoleRef given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of V1RoleRef
      Throws:
      IOException - if the JSON string is invalid with respect to V1RoleRef
    • toJson

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