Class V1StorageClass

java.lang.Object
io.kubernetes.client.openapi.models.V1StorageClass
All Implemented Interfaces:
KubernetesObject, KubernetesType

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1StorageClass extends Object implements KubernetesObject
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 Details

  • Constructor Details

    • V1StorageClass

      public V1StorageClass()
  • Method Details

    • allowVolumeExpansion

      public V1StorageClass allowVolumeExpansion(Boolean allowVolumeExpansion)
    • getAllowVolumeExpansion

      @Nullable public Boolean getAllowVolumeExpansion()
      AllowVolumeExpansion shows whether the storage class allow volume expand
      Returns:
      allowVolumeExpansion
    • setAllowVolumeExpansion

      public void setAllowVolumeExpansion(Boolean allowVolumeExpansion)
    • allowedTopologies

      public V1StorageClass allowedTopologies(List<V1TopologySelectorTerm> allowedTopologies)
    • addAllowedTopologiesItem

      public V1StorageClass addAllowedTopologiesItem(V1TopologySelectorTerm allowedTopologiesItem)
    • getAllowedTopologies

      @Nullable public List<V1TopologySelectorTerm> getAllowedTopologies()
      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:
      allowedTopologies
    • setAllowedTopologies

      public void setAllowedTopologies(List<V1TopologySelectorTerm> allowedTopologies)
    • apiVersion

      public V1StorageClass apiVersion(String apiVersion)
    • getApiVersion

      @Nullable public String 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
      Specified by:
      getApiVersion in interface KubernetesType
      Returns:
      apiVersion
    • setApiVersion

      public void setApiVersion(String apiVersion)
    • kind

      public V1StorageClass kind(String kind)
    • getKind

      @Nullable public String 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
      Specified by:
      getKind in interface KubernetesType
      Returns:
      kind
    • setKind

      public void setKind(String kind)
    • metadata

      public V1StorageClass metadata(V1ObjectMeta metadata)
    • getMetadata

      @Nullable public V1ObjectMeta getMetadata()
      Get metadata
      Specified by:
      getMetadata in interface KubernetesObject
      Returns:
      metadata
    • setMetadata

      public void setMetadata(V1ObjectMeta metadata)
    • mountOptions

      public V1StorageClass mountOptions(List<String> mountOptions)
    • addMountOptionsItem

      public V1StorageClass addMountOptionsItem(String mountOptionsItem)
    • getMountOptions

      @Nullable public List<String> getMountOptions()
      Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. [\"ro\", \"soft\"]. Not validated - mount of the PVs will simply fail if one is invalid.
      Returns:
      mountOptions
    • setMountOptions

      public void setMountOptions(List<String> mountOptions)
    • parameters

      public V1StorageClass parameters(Map<String,String> parameters)
    • putParametersItem

      public V1StorageClass putParametersItem(String key, String parametersItem)
    • getParameters

      @Nullable public Map<String,String> getParameters()
      Parameters holds the parameters for the provisioner that should create volumes of this storage class.
      Returns:
      parameters
    • setParameters

      public void setParameters(Map<String,String> parameters)
    • provisioner

      public V1StorageClass provisioner(String provisioner)
    • getProvisioner

      public String getProvisioner()
      Provisioner indicates the type of the provisioner.
      Returns:
      provisioner
    • setProvisioner

      public void setProvisioner(String provisioner)
    • reclaimPolicy

      public V1StorageClass reclaimPolicy(String reclaimPolicy)
    • getReclaimPolicy

      @Nullable public String getReclaimPolicy()
      Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete.
      Returns:
      reclaimPolicy
    • setReclaimPolicy

      public void setReclaimPolicy(String reclaimPolicy)
    • volumeBindingMode

      public V1StorageClass volumeBindingMode(String volumeBindingMode)
    • getVolumeBindingMode

      @Nullable public String 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:
      volumeBindingMode
    • setVolumeBindingMode

      public void setVolumeBindingMode(String volumeBindingMode)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object