Package io.fabric8.kubernetes.api.model
Class AppArmorProfile
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.AppArmorProfile
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<AppArmorProfileBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class AppArmorProfile extends Object implements io.fabric8.kubernetes.api.builder.Editable<AppArmorProfileBuilder>, KubernetesResource
AppArmorProfile defines a pod or container's AppArmor settings.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AppArmorProfile()No args constructor for use in serializationAppArmorProfile(String localhostProfile, String type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AppArmorProfileBuilderedit()Map<String,Object>getAdditionalProperties()StringgetLocalhostProfile()localhostProfile indicates a profile loaded on the node that should be used.StringgetType()type indicates which kind of AppArmor profile will be applied.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetLocalhostProfile(String localhostProfile)localhostProfile indicates a profile loaded on the node that should be used.voidsetType(String type)type indicates which kind of AppArmor profile will be applied.AppArmorProfileBuildertoBuilder()
-
-
-
Method Detail
-
getLocalhostProfile
public String 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".
-
setLocalhostProfile
public void setLocalhostProfile(String localhostProfile)
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".
-
getType
public String 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.
-
setType
public void setType(String type)
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.
-
edit
public AppArmorProfileBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<AppArmorProfileBuilder>
-
toBuilder
public AppArmorProfileBuilder toBuilder()
-
-