Class V1AppArmorProfile
java.lang.Object
io.kubernetes.client.openapi.models.V1AppArmorProfile
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-12T21:15:49.397498Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1AppArmorProfile
extends Object
AppArmorProfile defines a pod or container's AppArmor settings.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static V1AppArmorProfile
Create an instance of V1AppArmorProfile given an JSON stringlocalhostProfile indicates a profile loaded on the node that should be used.getType()
type indicates which kind of AppArmor profile will be applied.int
hashCode()
localhostProfile
(String localhostProfile) void
setLocalhostProfile
(String localhostProfile) void
toJson()
Convert an instance of V1AppArmorProfile to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_LOCALHOST_PROFILE
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1AppArmorProfile
public V1AppArmorProfile()
-
-
Method Details
-
localhostProfile
-
getLocalhostProfile
localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is \"Localhost\".- Returns:
- localhostProfile
-
setLocalhostProfile
-
type
-
getType
type indicates which kind of AppArmor profile will be applied. Valid options are: Localhost - a profile pre-loaded on the node. RuntimeDefault - the container runtime's default profile. Unconfined - no AppArmor enforcement.- Returns:
- type
-
setType
-
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 V1AppArmorProfile
-
fromJson
Create an instance of V1AppArmorProfile given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1AppArmorProfile
- Throws:
IOException
- if the JSON string is invalid with respect to V1AppArmorProfile
-
toJson
Convert an instance of V1AppArmorProfile to an JSON string- Returns:
- JSON string
-