Class V1StorageClass
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1StorageClass
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1StorageClass
extends Object
StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddallowedTopologiesItem
(V1TopologySelectorTerm allowedTopologiesItem) Add an item to the allowedTopologies property in a chainable fashion.addmountOptionsItem
(String mountOptionsItem) Add an item to the mountOptions property in a chainable fashion.allowedTopologies
(List<@Valid V1TopologySelectorTerm> allowedTopologies) Set allowedTopologies in a chainable fashion.allowVolumeExpansion
(Boolean allowVolumeExpansion) Set allowVolumeExpansion in a chainable fashion.apiVersion
(String apiVersion) Set apiVersion in a chainable fashion.boolean
List<@Valid V1TopologySelectorTerm>
allowedTopologies restrict the node topologies where volumes can be dynamically provisioned.allowVolumeExpansion shows whether the storage class allow volume expand.APIVersion defines the versioned schema of this representation of an object.getKind()
Kind is a string value representing the REST resource this object represents.mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class.parameters holds the parameters for the provisioner that should create volumes of this storage class.provisioner indicates the type of the provisioner.reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class.volumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound.int
hashCode()
Set kind in a chainable fashion.metadata
(V1ObjectMeta metadata) Set metadata in a chainable fashion.mountOptions
(List<String> mountOptions) Set mountOptions in a chainable fashion.parameters
(Map<String, String> parameters) Set parameters in a chainable fashion.provisioner
(String provisioner) Set provisioner in a chainable fashion.putparametersItem
(String key, String parametersItem) Set the value for the key for the parameters map property in a chainable fashion.reclaimPolicy
(String reclaimPolicy) Set reclaimPolicy in a chainable fashion.void
setAllowedTopologies
(List<@Valid V1TopologySelectorTerm> allowedTopologies) Set the allowedTopologies property valuevoid
setAllowVolumeExpansion
(Boolean allowVolumeExpansion) Set the allowVolumeExpansion property valuevoid
setApiVersion
(String apiVersion) Set the apiVersion property valuevoid
Set the kind property valuevoid
setMetadata
(V1ObjectMeta metadata) Set the metadata property valuevoid
setMountOptions
(List<String> mountOptions) Set the mountOptions property valuevoid
setParameters
(Map<String, String> parameters) Set the parameters property valuevoid
setProvisioner
(String provisioner) Set the provisioner property valuevoid
setReclaimPolicy
(String reclaimPolicy) Set the reclaimPolicy property valuevoid
setVolumeBindingMode
(String volumeBindingMode) Set the volumeBindingMode property valuetoString()
volumeBindingMode
(String volumeBindingMode) Set volumeBindingMode in a chainable fashion.
-
Field Details
-
JSON_PROPERTY_ALLOW_VOLUME_EXPANSION
- See Also:
-
JSON_PROPERTY_ALLOWED_TOPOLOGIES
- See Also:
-
JSON_PROPERTY_API_VERSION
- See Also:
-
JSON_PROPERTY_KIND
- See Also:
-
JSON_PROPERTY_METADATA
- See Also:
-
JSON_PROPERTY_MOUNT_OPTIONS
- See Also:
-
JSON_PROPERTY_PARAMETERS
- See Also:
-
JSON_PROPERTY_PROVISIONER
- See Also:
-
JSON_PROPERTY_RECLAIM_POLICY
- See Also:
-
JSON_PROPERTY_VOLUME_BINDING_MODE
- See Also:
-
-
Constructor Details
-
V1StorageClass
-
-
Method Details
-
getAllowVolumeExpansion
allowVolumeExpansion shows whether the storage class allow volume expand.- Returns:
- the allowVolumeExpansion property value
-
setAllowVolumeExpansion
Set the allowVolumeExpansion property value -
allowVolumeExpansion
Set allowVolumeExpansion in a chainable fashion.- Returns:
- The same instance of V1StorageClass for chaining.
-
getAllowedTopologies
allowedTopologies restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature.- Returns:
- the allowedTopologies property value
-
setAllowedTopologies
Set the allowedTopologies property value -
allowedTopologies
Set allowedTopologies in a chainable fashion.- Returns:
- The same instance of V1StorageClass for chaining.
-
addallowedTopologiesItem
Add an item to the allowedTopologies property in a chainable fashion.- Returns:
- The same instance of V1StorageClass for chaining.
-
getApiVersion
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources- Returns:
- the apiVersion property value
-
setApiVersion
Set the apiVersion property value -
apiVersion
Set apiVersion in a chainable fashion.- Returns:
- The same instance of V1StorageClass for chaining.
-
getKind
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds- Returns:
- the kind property value
-
setKind
Set the kind property value -
kind
Set kind in a chainable fashion.- Returns:
- The same instance of V1StorageClass for chaining.
-
getMetadata
- Returns:
- the metadata property value
-
setMetadata
Set the metadata property value -
metadata
Set metadata in a chainable fashion.- Returns:
- The same instance of V1StorageClass for chaining.
-
getMountOptions
mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. e.g. [\"ro\", \"soft\"]. Not validated - mount of the PVs will simply fail if one is invalid.- Returns:
- the mountOptions property value
-
setMountOptions
Set the mountOptions property value -
mountOptions
Set mountOptions in a chainable fashion.- Returns:
- The same instance of V1StorageClass for chaining.
-
addmountOptionsItem
Add an item to the mountOptions property in a chainable fashion.- Returns:
- The same instance of V1StorageClass for chaining.
-
getParameters
parameters holds the parameters for the provisioner that should create volumes of this storage class.- Returns:
- the parameters property value
-
setParameters
Set the parameters property value -
parameters
Set parameters in a chainable fashion.- Returns:
- The same instance of V1StorageClass for chaining.
-
putparametersItem
Set the value for the key for the parameters map property in a chainable fashion.- Returns:
- The same instance of V1StorageClass for chaining.
-
getProvisioner
provisioner indicates the type of the provisioner.- Returns:
- the provisioner property value
-
setProvisioner
Set the provisioner property value -
provisioner
Set provisioner in a chainable fashion.- Returns:
- The same instance of V1StorageClass for chaining.
-
getReclaimPolicy
reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. Defaults to Delete.- Returns:
- the reclaimPolicy property value
-
setReclaimPolicy
Set the reclaimPolicy property value -
reclaimPolicy
Set reclaimPolicy in a chainable fashion.- Returns:
- The same instance of V1StorageClass for chaining.
-
getVolumeBindingMode
volumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.- Returns:
- the volumeBindingMode property value
-
setVolumeBindingMode
Set the volumeBindingMode property value -
volumeBindingMode
Set volumeBindingMode in a chainable fashion.- Returns:
- The same instance of V1StorageClass for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-