Class LinuxContainerInstanceSecurityContext.Builder
- java.lang.Object
-
- com.oracle.bmc.containerinstances.model.LinuxContainerInstanceSecurityContext.Builder
-
- Enclosing class:
- LinuxContainerInstanceSecurityContext
public static class LinuxContainerInstanceSecurityContext.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LinuxContainerInstanceSecurityContextbuild()LinuxContainerInstanceSecurityContext.Buildercopy(LinuxContainerInstanceSecurityContext model)LinuxContainerInstanceSecurityContext.BuilderfsGroup(Integer fsGroup)A special supplemental group that applies to all containers in the container instance.LinuxContainerInstanceSecurityContext.BuilderfsGroupChangePolicy(ContainerFsGroupChangePolicyType fsGroupChangePolicy)Defines behavior of changing ownership and permission of the volume before being exposed inside the containers.
-
-
-
Method Detail
-
fsGroup
public LinuxContainerInstanceSecurityContext.Builder fsGroup(Integer fsGroup)
A special supplemental group that applies to all containers in the container instance.Some volume types allow the container instance to change ownership of the volume. The owning GID will be the fsGroup, the setgid bit will be set (new files will be owned by the fsGroup), and the permission bits are OR’d with rw-rw—-. If unset, the container instance will not modify the ownership and permissions of volumes.
- Parameters:
fsGroup- the value to set- Returns:
- this builder
-
fsGroupChangePolicy
public LinuxContainerInstanceSecurityContext.Builder fsGroupChangePolicy(ContainerFsGroupChangePolicyType fsGroupChangePolicy)
Defines behavior of changing ownership and permission of the volume before being exposed inside the containers.This only applies to volumes which support fsGroup ownership and permissions, and will have no effect on ephemeral volumes. ON_ROOT_MISMATCH only changes permissions and ownership if the permission and ownership of the root directory does not match the expected permissions and ownership of the volume. This can improve container instance start times. ALWAYS changes permission and ownership of the volume when it is mounted. If unset, ALWAYS is used.
- Parameters:
fsGroupChangePolicy- the value to set- Returns:
- this builder
-
build
public LinuxContainerInstanceSecurityContext build()
-
copy
public LinuxContainerInstanceSecurityContext.Builder copy(LinuxContainerInstanceSecurityContext model)
-
-