Class AccessMode
java.lang.Object
io.github.alersrt.pod4j.openapi.model.AccessMode
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class AccessMode
extends Object
implements Serializable
AccessMode
- See Also:
-
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 voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object 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
-
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
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object 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
-
toJson
Convert an instance of AccessMode to an JSON string- Returns:
- JSON string
-