Class CreateLinuxSecurityContextDetails
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.containerinstances.model.CreateSecurityContextDetails
- 
- com.oracle.bmc.containerinstances.model.CreateLinuxSecurityContextDetails
 
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20210415") public final class CreateLinuxSecurityContextDetails extends CreateSecurityContextDetailsSecurity context for Linux container.
 Note: Objects should always be created or deserialized using theCreateLinuxSecurityContextDetails.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 theCreateLinuxSecurityContextDetails.Builder, which maintain a set of all explicitly set fields calledCreateLinuxSecurityContextDetails.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 classCreateLinuxSecurityContextDetails.Builder
 - 
Constructor SummaryConstructors Constructor Description CreateLinuxSecurityContextDetails(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 CreateLinuxSecurityContextDetails.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()CreateLinuxSecurityContextDetails.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
 
- 
- 
- 
Constructor Detail- 
CreateLinuxSecurityContextDetails@Deprecated public CreateLinuxSecurityContextDetails(Integer runAsUser, Integer runAsGroup, Boolean isNonRootUserCheckEnabled, Boolean isRootFileSystemReadonly, ContainerCapabilities capabilities) Deprecated.
 
- 
 - 
Method Detail- 
builderpublic static CreateLinuxSecurityContextDetails.Builder builder() Create a new builder.
 - 
toBuilderpublic CreateLinuxSecurityContextDetails.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- CreateSecurityContextDetails
 
 - 
toStringpublic String toString(boolean includeByteArrayContents) Return a string representation of the object.- Overrides:
- toStringin class- CreateSecurityContextDetails
- Parameters:
- includeByteArrayContents- true to include the full contents of byte arrays
- Returns:
- string representation
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- CreateSecurityContextDetails
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- CreateSecurityContextDetails
 
 
- 
 
-