Class CreateLinuxContainerInstanceSecurityContextDetails
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.containerinstances.model.CreateContainerInstanceSecurityContextDetails
-
- com.oracle.bmc.containerinstances.model.CreateLinuxContainerInstanceSecurityContextDetails
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20210415") public final class CreateLinuxContainerInstanceSecurityContextDetails extends CreateContainerInstanceSecurityContextDetailsSecurity context for all containers in a Linux container instance.
Note: Objects should always be created or deserialized using theCreateLinuxContainerInstanceSecurityContextDetails.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 theCreateLinuxContainerInstanceSecurityContextDetails.Builder, which maintain a set of all explicitly set fields calledCreateLinuxContainerInstanceSecurityContextDetails.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 Summary
Nested Classes Modifier and Type Class Description static classCreateLinuxContainerInstanceSecurityContextDetails.Builder
-
Constructor Summary
Constructors Constructor Description CreateLinuxContainerInstanceSecurityContextDetails(Integer fsGroup, ContainerFsGroupChangePolicyType fsGroupChangePolicy)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreateLinuxContainerInstanceSecurityContextDetails.Builderbuilder()Create a new builder.booleanequals(Object o)IntegergetFsGroup()A special supplemental group that applies to all containers in the container instance.ContainerFsGroupChangePolicyTypegetFsGroupChangePolicy()Defines behavior of changing ownership and permission of the volume before being exposed inside the containers.inthashCode()CreateLinuxContainerInstanceSecurityContextDetails.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
CreateLinuxContainerInstanceSecurityContextDetails
@Deprecated public CreateLinuxContainerInstanceSecurityContextDetails(Integer fsGroup, ContainerFsGroupChangePolicyType fsGroupChangePolicy)
Deprecated.
-
-
Method Detail
-
builder
public static CreateLinuxContainerInstanceSecurityContextDetails.Builder builder()
Create a new builder.
-
toBuilder
public CreateLinuxContainerInstanceSecurityContextDetails.Builder toBuilder()
-
getFsGroup
public Integer getFsGroup()
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.
- Returns:
- the value
-
getFsGroupChangePolicy
public ContainerFsGroupChangePolicyType getFsGroupChangePolicy()
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.
- Returns:
- the value
-
toString
public String toString()
- Overrides:
toStringin classCreateContainerInstanceSecurityContextDetails
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Overrides:
toStringin classCreateContainerInstanceSecurityContextDetails- Parameters:
includeByteArrayContents- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classCreateContainerInstanceSecurityContextDetails
-
hashCode
public int hashCode()
- Overrides:
hashCodein classCreateContainerInstanceSecurityContextDetails
-
-