Class V1SELinuxOptions
java.lang.Object
io.kubernetes.client.openapi.models.V1SELinuxOptions
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-04T19:05:53.712211Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1SELinuxOptions
extends Object
SELinuxOptions are the labels to be applied to the container
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic V1SELinuxOptionsCreate an instance of V1SELinuxOptions given an JSON stringgetLevel()Level is SELinux level label that applies to the container.getRole()Role is a SELinux role label that applies to the container.getType()Type is a SELinux type label that applies to the container.getUser()User is a SELinux user label that applies to the container.inthashCode()voidvoidvoidvoidtoJson()Convert an instance of V1SELinuxOptions to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_LEVEL
- See Also:
-
SERIALIZED_NAME_ROLE
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_USER
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1SELinuxOptions
public V1SELinuxOptions()
-
-
Method Details
-
level
-
getLevel
Level is SELinux level label that applies to the container.- Returns:
- level
-
setLevel
-
role
-
getRole
Role is a SELinux role label that applies to the container.- Returns:
- role
-
setRole
-
type
-
getType
Type is a SELinux type label that applies to the container.- Returns:
- type
-
setType
-
user
-
getUser
User is a SELinux user label that applies to the container.- 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 V1SELinuxOptions
-
fromJson
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
Convert an instance of V1SELinuxOptions to an JSON string- Returns:
- JSON string
-