Class ClusterVolumeSpec
java.lang.Object
io.github.alersrt.pod4j.openapi.model.ClusterVolumeSpec
@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 ClusterVolumeSpec
extends Object
ClusterVolumeSpec
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessibilityRequirements(TopologyRequirement accessibilityRequirements) accessMode(AccessMode accessMode) addSecretsItem(Secret secretsItem) availability(String availability) capacityRange(CapacityRange capacityRange) booleanstatic ClusterVolumeSpecCreate an instance of ClusterVolumeSpec given an JSON stringGet accessibilityRequirementsGet accessModeGet availabilityGet capacityRangegetGroup()Group defines the volume group of this volume.Secrets defines Swarm Secrets that are passed to the CSI storage plugin when operating on this volume.inthashCode()voidsetAccessibilityRequirements(TopologyRequirement accessibilityRequirements) voidsetAccessMode(AccessMode accessMode) voidsetAvailability(String availability) voidsetCapacityRange(CapacityRange capacityRange) voidvoidsetSecrets(List<Secret> secrets) toJson()Convert an instance of ClusterVolumeSpec 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_ACCESS_MODE
- See Also:
-
SERIALIZED_NAME_ACCESSIBILITY_REQUIREMENTS
- See Also:
-
SERIALIZED_NAME_AVAILABILITY
- See Also:
-
SERIALIZED_NAME_CAPACITY_RANGE
- See Also:
-
SERIALIZED_NAME_GROUP
- See Also:
-
SERIALIZED_NAME_SECRETS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ClusterVolumeSpec
public ClusterVolumeSpec()
-
-
Method Details
-
accessMode
-
getAccessMode
Get accessMode- Returns:
- accessMode
-
setAccessMode
-
accessibilityRequirements
-
getAccessibilityRequirements
Get accessibilityRequirements- Returns:
- accessibilityRequirements
-
setAccessibilityRequirements
-
availability
-
getAvailability
Get availability- Returns:
- availability
-
setAvailability
-
capacityRange
-
getCapacityRange
Get capacityRange- Returns:
- capacityRange
-
setCapacityRange
-
group
-
getGroup
Group defines the volume group of this volume. Volumes belonging to the same group can be referred to by group name when creating Services. Referring to a volume by group instructs swarm to treat volumes in that group interchangeably for the purpose of scheduling. Volumes with an empty string for a group technically all belong to the same, emptystring group.- Returns:
- group
-
setGroup
-
secrets
-
addSecretsItem
-
getSecrets
Secrets defines Swarm Secrets that are passed to the CSI storage plugin when operating on this volume.- Returns:
- secrets
-
setSecrets
-
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 ClusterVolumeSpec
-
fromJson
Create an instance of ClusterVolumeSpec given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ClusterVolumeSpec
- Throws:
IOException- if the JSON string is invalid with respect to ClusterVolumeSpec
-
toJson
Convert an instance of ClusterVolumeSpec to an JSON string- Returns:
- JSON string
-