Class V1SELinuxOptions

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-02-12T21:15:49.397498Z[Etc/UTC]", comments="Generator version: 7.6.0") public class V1SELinuxOptions extends Object
SELinuxOptions are the labels to be applied to the container
  • Field Details

  • Constructor Details

    • V1SELinuxOptions

      public V1SELinuxOptions()
  • Method Details

    • level

      public V1SELinuxOptions level(String level)
    • getLevel

      @Nullable public String getLevel()
      Level is SELinux level label that applies to the container.
      Returns:
      level
    • setLevel

      public void setLevel(String level)
    • role

      public V1SELinuxOptions role(String role)
    • getRole

      @Nullable public String getRole()
      Role is a SELinux role label that applies to the container.
      Returns:
      role
    • setRole

      public void setRole(String role)
    • type

      public V1SELinuxOptions type(String type)
    • getType

      @Nullable public String getType()
      Type is a SELinux type label that applies to the container.
      Returns:
      type
    • setType

      public void setType(String type)
    • user

      public V1SELinuxOptions user(String user)
    • getUser

      @Nullable public String getUser()
      User is a SELinux user label that applies to the container.
      Returns:
      user
    • setUser

      public void setUser(String 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 V1SELinuxOptions
    • fromJson

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

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