Class V1beta1VolumeAttributesClass

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1beta1VolumeAttributesClass
All Implemented Interfaces:
KubernetesObject, KubernetesType

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1beta1VolumeAttributesClass extends Object implements KubernetesObject
VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning.
  • Field Details

  • Constructor Details

    • V1beta1VolumeAttributesClass

      public V1beta1VolumeAttributesClass(String driverName)
  • Method Details

    • getDriverName

      public String getDriverName()
      Name of the CSI driver This field is immutable.
      Returns:
      the driverName property value
    • setDriverName

      public void setDriverName(String driverName)
      Set the driverName property value
      Parameters:
      driverName - property value to set
    • driverName

      public V1beta1VolumeAttributesClass driverName(String driverName)
      Set driverName in a chainable fashion.
      Returns:
      The same instance of V1beta1VolumeAttributesClass 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
      Specified by:
      getApiVersion in interface KubernetesType
      Returns:
      the apiVersion property value
    • setApiVersion

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

      public V1beta1VolumeAttributesClass apiVersion(String apiVersion)
      Set apiVersion in a chainable fashion.
      Returns:
      The same instance of V1beta1VolumeAttributesClass 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
      Specified by:
      getKind in interface KubernetesType
      Returns:
      the kind property value
    • setKind

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

      Set kind in a chainable fashion.
      Returns:
      The same instance of V1beta1VolumeAttributesClass for chaining.
    • getMetadata

      public V1ObjectMeta getMetadata()
      Description copied from interface: KubernetesObject
      Gets metadata.

      ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.

      Specified by:
      getMetadata in interface KubernetesObject
      Returns:
      the metadata property value
    • setMetadata

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

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

      public Map<String,@NotNull String> getParameters()
      parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass. This field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an \"Infeasible\" state in the modifyVolumeStatus field.
      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 V1beta1VolumeAttributesClass parameters(Map<String,@NotNull String> parameters)
      Set parameters in a chainable fashion.
      Returns:
      The same instance of V1beta1VolumeAttributesClass for chaining.
    • putparametersItem

      public V1beta1VolumeAttributesClass 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 V1beta1VolumeAttributesClass 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