@Generated(value="OracleSDKGenerator", comments="API Version: 20210415") public final class CreateVolumeMountDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Defines the mapping from volume to a mount path in a container.
Note: Objects should always be created or deserialized using the CreateVolumeMountDetails.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 the CreateVolumeMountDetails.Builder
, which maintain a
set of all explicitly set fields called CreateVolumeMountDetails.Builder.__explicitlySet__
. The hashCode()
and equals(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
).
Modifier and Type | Class and Description |
---|---|
static class |
CreateVolumeMountDetails.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
CreateVolumeMountDetails(String mountPath,
String volumeName,
String subPath,
Boolean isReadOnly,
Integer partition)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static CreateVolumeMountDetails.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Boolean |
getIsReadOnly()
Whether the volume was mounted in read-only mode.
|
String |
getMountPath()
The volume access path.
|
Integer |
getPartition()
If there is more than one partition in the volume, reference this number of partitions.
|
String |
getSubPath()
A subpath inside the referenced volume.
|
String |
getVolumeName()
The name of the volume.
|
int |
hashCode() |
CreateVolumeMountDetails.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"mountPath","volumeName","subPath","isReadOnly","partition"}) public CreateVolumeMountDetails(String mountPath, String volumeName, String subPath, Boolean isReadOnly, Integer partition)
public static CreateVolumeMountDetails.Builder builder()
Create a new builder.
public CreateVolumeMountDetails.Builder toBuilder()
public String getMountPath()
The volume access path.
public String getVolumeName()
The name of the volume. Avoid entering confidential information.
public String getSubPath()
A subpath inside the referenced volume.
public Boolean getIsReadOnly()
Whether the volume was mounted in read-only mode. By default, the volume is not read-only.
public Integer getPartition()
If there is more than one partition in the volume, reference this number of partitions. Here is an example: Number Start End Size File system Name Flags 1 1049kB 106MB 105MB fat16 EFI System Partition boot, esp 2 106MB 1180MB 1074MB xfs 3 1180MB 50.0GB 48.8GB lvm
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.