Class TmpfsOptions
java.lang.Object
io.github.alersrt.pod4j.openapi.model.TmpfsOptions
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-11-19T11:19:05.435500352+07:00[Asia/Barnaul]",
comments="Generator version: 7.7.0")
public class TmpfsOptions
extends Object
TmpfsOptions
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddOptionsItem(List<String> optionsItem) booleanstatic TmpfsOptionsCreate an instance of TmpfsOptions given an JSON stringgetMode()The bits have the same definition on all systems, so that information about files can be moved from one system to another portably.Options to be passed to the tmpfs mount.Size sets the size of the tmpfs, in bytes.inthashCode()voidvoidsetOptions(List<List<String>> options) voidsetSizeBytes(Long sizeBytes) toJson()Convert an instance of TmpfsOptions to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_MODE
- See Also:
-
SERIALIZED_NAME_OPTIONS
- See Also:
-
SERIALIZED_NAME_SIZE_BYTES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
TmpfsOptions
public TmpfsOptions()
-
-
Method Details
-
mode
-
getMode
The bits have the same definition on all systems, so that information about files can be moved from one system to another portably. Not all bits apply to all systems. The only required bit is [ModeDir] for directories.- Returns:
- mode
-
setMode
-
options
-
addOptionsItem
-
getOptions
Options to be passed to the tmpfs mount. An array of arrays. Flag options should be provided as 1-length arrays. Other types should be provided as 2-length arrays, where the first item is the key and the second the value.- Returns:
- options
-
setOptions
-
sizeBytes
-
getSizeBytes
Size sets the size of the tmpfs, in bytes. This will be converted to an operating system specific value depending on the host. For example, on linux, it will be converted to use a 'k', 'm' or 'g' syntax. BSD, though not widely supported with docker, uses a straight byte value. Percentages are not supported.- Returns:
- sizeBytes
-
setSizeBytes
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to TmpfsOptions
-
fromJson
Create an instance of TmpfsOptions given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TmpfsOptions
- Throws:
IOException- if the JSON string is invalid with respect to TmpfsOptions
-
toJson
Convert an instance of TmpfsOptions to an JSON string- Returns:
- JSON string
-