Class AccessMode
java.lang.Object
io.github.alersrt.pod4j.openapi.model.AccessMode
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-11-29T01:29:49.168634544+07:00[Asia/Barnaul]",
comments="Generator version: 7.7.0")
public class AccessMode
extends Object
AccessMode
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblockVolume(Object blockVolume) booleanstatic AccessModeCreate an instance of AccessMode given an JSON stringIntentionally empty.@Valid TypeMountGet mountVolumegetScope()Scope defines the Scope of a Cluster Volume.SharingMode defines the Sharing of a Cluster Volume.inthashCode()mountVolume(TypeMount mountVolume) voidsetBlockVolume(Object blockVolume) voidsetMountVolume(TypeMount mountVolume) voidvoidsetSharing(String sharing) toJson()Convert an instance of AccessMode 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_BLOCK_VOLUME
- See Also:
-
SERIALIZED_NAME_MOUNT_VOLUME
- See Also:
-
SERIALIZED_NAME_SCOPE
- See Also:
-
SERIALIZED_NAME_SHARING
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
AccessMode
public AccessMode()
-
-
Method Details
-
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 AccessMode
-
fromJson
Create an instance of AccessMode given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AccessMode
- Throws:
IOException- if the JSON string is invalid with respect to AccessMode
-
blockVolume
-
getBlockVolume
Intentionally empty.- Returns:
- blockVolume
-
setBlockVolume
-
mountVolume
-
getMountVolume
Get mountVolume- Returns:
- mountVolume
-
setMountVolume
-
scope
-
getScope
Scope defines the Scope of a Cluster Volume. This is how many nodes a Volume can be accessed simultaneously on.- Returns:
- scope
-
setScope
-
sharing
-
getSharing
SharingMode defines the Sharing of a Cluster Volume. This is how Tasks using a Volume at the same time can use it.- Returns:
- sharing
-
setSharing
-
equals
-
hashCode
public int hashCode() -
toString
-
toJson
Convert an instance of AccessMode to an JSON string- Returns:
- JSON string
-