Class ClusterVolumeSpec
java.lang.Object
io.github.alersrt.pod4j.openapi.model.ClusterVolumeSpec
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ClusterVolumeSpec
extends Object
implements Serializable
ClusterVolumeSpec
- See Also:
-
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 string@Valid TopologyRequirementGet accessibilityRequirements@Valid AccessModeGet accessModeGet availability@Valid CapacityRangeGet 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 voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object 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
-
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 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
-