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 Details

  • Constructor Details

    • V1StorageClass

      public V1StorageClass(String provisioner)
  • Method Details

    • getProvisioner

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

      public void setProvisioner(String provisioner)
      Set the provisioner property value
      Parameters:
      provisioner - property value to set
    • provisioner

      public V1StorageClass provisioner(String provisioner)
      Set provisioner in a chainable fashion.
      Returns:
      The same instance of V1StorageClass for chaining.
    • getAllowVolumeExpansion

      public Boolean getAllowVolumeExpansion()
      allowVolumeExpansion shows whether the storage class allow volume expand.
      Returns:
      the allowVolumeExpansion property value
    • setAllowVolumeExpansion

      public void setAllowVolumeExpansion(Boolean allowVolumeExpansion)
      Set the allowVolumeExpansion property value
      Parameters:
      allowVolumeExpansion - property value to set
    • allowVolumeExpansion

      public V1StorageClass allowVolumeExpansion(Boolean allowVolumeExpansion)
      Set allowVolumeExpansion in a chainable fashion.
      Returns:
      The same instance of V1StorageClass for chaining.
    • getAllowedTopologies

      public List<@Valid V1TopologySelectorTerm> 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

      public void setAllowedTopologies(List<@Valid V1TopologySelectorTerm> allowedTopologies)
      Set the allowedTopologies property value
      Parameters:
      allowedTopologies - property value to set
    • allowedTopologies

      public V1StorageClass allowedTopologies(List<@Valid V1TopologySelectorTerm> allowedTopologies)
      Set allowedTopologies in a chainable fashion.
      Returns:
      The same instance of V1StorageClass for chaining.
    • addallowedTopologiesItem

      public V1StorageClass addallowedTopologiesItem(V1TopologySelectorTerm allowedTopologiesItem)
      Add an item to the allowedTopologies property in a chainable fashion.
      Returns:
      The same instance of V1StorageClass for chaining.
    • getApiVersion

      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
      Returns:
      the apiVersion property value
    • setApiVersion

      public void setApiVersion(String apiVersion)
      Set the apiVersion property value
      Parameters:
      apiVersion - property value to set
    • apiVersion

      public V1StorageClass apiVersion(String apiVersion)
      Set apiVersion in a chainable fashion.
      Returns:
      The same instance of V1StorageClass for chaining.
    • getKind

      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
      Returns:
      the kind property value
    • setKind

      public void setKind(String kind)
      Set the kind property value
      Parameters:
      kind - property value to set
    • kind

      public V1StorageClass kind(String kind)
      Set kind in a chainable fashion.
      Returns:
      The same instance of V1StorageClass for chaining.
    • getMetadata

      public V1ObjectMeta getMetadata()
      Returns:
      the metadata property value
    • setMetadata

      public void setMetadata(V1ObjectMeta metadata)
      Set the metadata property value
      Parameters:
      metadata - property value to set
    • metadata

      public V1StorageClass metadata(V1ObjectMeta metadata)
      Set metadata in a chainable fashion.
      Returns:
      The same instance of V1StorageClass for chaining.
    • getMountOptions

      public List<@NotNull String> 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

      public void setMountOptions(List<@NotNull String> mountOptions)
      Set the mountOptions property value
      Parameters:
      mountOptions - property value to set
    • mountOptions

      public V1StorageClass mountOptions(List<@NotNull String> mountOptions)
      Set mountOptions in a chainable fashion.
      Returns:
      The same instance of V1StorageClass for chaining.
    • addmountOptionsItem

      public V1StorageClass addmountOptionsItem(String mountOptionsItem)
      Add an item to the mountOptions property in a chainable fashion.
      Returns:
      The same instance of V1StorageClass for chaining.
    • getParameters

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

      public void setParameters(Map<String,@NotNull String> parameters)
      Set the parameters property value
      Parameters:
      parameters - property value to set
    • parameters

      public V1StorageClass parameters(Map<String,@NotNull String> parameters)
      Set parameters in a chainable fashion.
      Returns:
      The same instance of V1StorageClass for chaining.
    • putparametersItem

      public V1StorageClass putparametersItem(String key, String parametersItem)
      Set the value for the key for the parameters map property in a chainable fashion.
      Returns:
      The same instance of V1StorageClass for chaining.
    • getReclaimPolicy

      public String getReclaimPolicy()
      reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. Defaults to Delete.
      Returns:
      the reclaimPolicy property value
    • setReclaimPolicy

      public void setReclaimPolicy(String reclaimPolicy)
      Set the reclaimPolicy property value
      Parameters:
      reclaimPolicy - property value to set
    • reclaimPolicy

      public V1StorageClass reclaimPolicy(String reclaimPolicy)
      Set reclaimPolicy in a chainable fashion.
      Returns:
      The same instance of V1StorageClass for chaining.
    • getVolumeBindingMode

      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:
      the volumeBindingMode property value
    • setVolumeBindingMode

      public void setVolumeBindingMode(String volumeBindingMode)
      Set the volumeBindingMode property value
      Parameters:
      volumeBindingMode - property value to set
    • volumeBindingMode

      public V1StorageClass volumeBindingMode(String volumeBindingMode)
      Set volumeBindingMode in a chainable fashion.
      Returns:
      The same instance of V1StorageClass for chaining.
    • 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