Class FlexVolumeSource.Builder

  • Enclosing class:
    FlexVolumeSource

    public static class FlexVolumeSource.Builder
    extends java.lang.Object
    • Method Detail

      • driver

        public FlexVolumeSource.Builder driver​(@NonNull
                                               @NonNull java.lang.String driver)
        driver is the name of the driver to use for this volume.
        Returns:
        this.
      • fsType

        public FlexVolumeSource.Builder fsType​(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.
        Returns:
        this.
      • putInOptions

        public FlexVolumeSource.Builder putInOptions​(java.lang.String putInOptionsKey,
                                                     java.lang.String putInOptionsValue)
      • options

        public FlexVolumeSource.Builder options​(java.util.Map<? extends java.lang.String,​? extends java.lang.String> options)
      • readOnly

        public FlexVolumeSource.Builder readOnly​(java.lang.Boolean readOnly)
        readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
        Returns:
        this.
      • toString

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