Class FlexPersistentVolumeSource

  • All Implemented Interfaces:
    com.marcnuri.yakc.model.Model

    public class FlexPersistentVolumeSource
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin.
    • Constructor Detail

      • FlexPersistentVolumeSource

        public FlexPersistentVolumeSource​(@NonNull
                                          @NonNull java.lang.String driver,
                                          java.lang.String fsType,
                                          java.util.Map<java.lang.String,​java.lang.String> options,
                                          java.lang.Boolean readOnly,
                                          SecretReference secretRef)
      • FlexPersistentVolumeSource

        public FlexPersistentVolumeSource()
    • Method Detail

      • getDriver

        @NonNull
        public @NonNull java.lang.String getDriver()
        driver is the name of the driver to use for this volume.
      • getFsType

        public java.lang.String getFsType()
        fsType is the Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
      • getOptions

        public java.util.Map<java.lang.String,​java.lang.String> getOptions()
        options is Optional: this field holds extra command options if any.
      • getReadOnly

        public java.lang.Boolean getReadOnly()
        readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
      • setDriver

        public void setDriver​(@NonNull
                              @NonNull java.lang.String driver)
        driver is the name of the driver to use for this volume.
      • setFsType

        public void setFsType​(java.lang.String fsType)
        fsType is the Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
      • setOptions

        public void setOptions​(java.util.Map<java.lang.String,​java.lang.String> options)
        options is Optional: this field holds extra command options if any.
      • setReadOnly

        public void setReadOnly​(java.lang.Boolean readOnly)
        readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object