Class LinuxSecurityContext
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.containerinstances.model.SecurityContext
- 
- com.oracle.bmc.containerinstances.model.LinuxSecurityContext
 
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20210415") public final class LinuxSecurityContext extends SecurityContextSecurity context for Linux container.
 Note: Objects should always be created or deserialized using theLinuxSecurityContext.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theLinuxSecurityContext.Builder, which maintain a set of all explicitly set fields calledLinuxSecurityContext.Builder.__explicitlySet__. ThehashCode()andequals(Object)methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classLinuxSecurityContext.Builder- 
Nested classes/interfaces inherited from class com.oracle.bmc.containerinstances.model.SecurityContextSecurityContext.SecurityContextType
 
- 
 - 
Constructor SummaryConstructors Constructor Description LinuxSecurityContext(Integer runAsUser, Integer runAsGroup, Boolean isNonRootUserCheckEnabled, Boolean isRootFileSystemReadonly, ContainerCapabilities capabilities)Deprecated.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LinuxSecurityContext.Builderbuilder()Create a new builder.booleanequals(Object o)ContainerCapabilitiesgetCapabilities()BooleangetIsNonRootUserCheckEnabled()Indicates if the container must run as a non-root user.BooleangetIsRootFileSystemReadonly()Determines if the container will have a read-only root file system.IntegergetRunAsGroup()The group ID (GID) to run the entrypoint process of the container.IntegergetRunAsUser()The user ID (UID) to run the entrypoint process of the container.inthashCode()LinuxSecurityContext.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
 
- 
- 
- 
Constructor Detail- 
LinuxSecurityContext@Deprecated public LinuxSecurityContext(Integer runAsUser, Integer runAsGroup, Boolean isNonRootUserCheckEnabled, Boolean isRootFileSystemReadonly, ContainerCapabilities capabilities) Deprecated.
 
- 
 - 
Method Detail- 
builderpublic static LinuxSecurityContext.Builder builder() Create a new builder.
 - 
toBuilderpublic LinuxSecurityContext.Builder toBuilder() 
 - 
getRunAsUserpublic Integer getRunAsUser() The user ID (UID) to run the entrypoint process of the container.Defaults to user specified UID in container image metadata if not provided. This must be provided if runAsGroup is provided. - Returns:
- the value
 
 - 
getRunAsGrouppublic Integer getRunAsGroup() The group ID (GID) to run the entrypoint process of the container.Uses runtime default if not provided. - Returns:
- the value
 
 - 
getIsNonRootUserCheckEnabledpublic Boolean getIsNonRootUserCheckEnabled() Indicates if the container must run as a non-root user.If true, the service validates the container image at runtime to ensure that it is not going to run with UID 0 (root) and fails the container instance creation if the validation fails. - Returns:
- the value
 
 - 
getIsRootFileSystemReadonlypublic Boolean getIsRootFileSystemReadonly() Determines if the container will have a read-only root file system.Default value is false. - Returns:
- the value
 
 - 
getCapabilitiespublic ContainerCapabilities getCapabilities() 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- SecurityContext
 
 - 
toStringpublic String toString(boolean includeByteArrayContents) Return a string representation of the object.- Overrides:
- toStringin class- SecurityContext
- Parameters:
- includeByteArrayContents- true to include the full contents of byte arrays
- Returns:
- string representation
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- SecurityContext
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- SecurityContext
 
 
- 
 
-