Class VolumeDevice

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

    public class VolumeDevice
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    volumeDevice describes a mapping of a raw block device within a container.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  VolumeDevice.Builder  
    • Constructor Summary

      Constructors 
      Constructor Description
      VolumeDevice()  
      VolumeDevice​(@NonNull java.lang.String devicePath, @NonNull java.lang.String name)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static VolumeDevice.Builder builder()  
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      @NonNull java.lang.String getDevicePath()
      devicePath is the path inside of the container that the device will be mapped to.
      @NonNull java.lang.String getName()
      name must match the name of a persistentVolumeClaim in the pod
      int hashCode()  
      void setDevicePath​(@NonNull java.lang.String devicePath)
      devicePath is the path inside of the container that the device will be mapped to.
      void setName​(@NonNull java.lang.String name)
      name must match the name of a persistentVolumeClaim in the pod
      VolumeDevice.Builder toBuilder()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • VolumeDevice

        public VolumeDevice​(@NonNull
                            @NonNull java.lang.String devicePath,
                            @NonNull
                            @NonNull java.lang.String name)
      • VolumeDevice

        public VolumeDevice()
    • Method Detail

      • getDevicePath

        @NonNull
        public @NonNull java.lang.String getDevicePath()
        devicePath is the path inside of the container that the device will be mapped to.
      • getName

        @NonNull
        public @NonNull java.lang.String getName()
        name must match the name of a persistentVolumeClaim in the pod
      • setDevicePath

        public void setDevicePath​(@NonNull
                                  @NonNull java.lang.String devicePath)
        devicePath is the path inside of the container that the device will be mapped to.
      • setName

        public void setName​(@NonNull
                            @NonNull java.lang.String name)
        name must match the name of a persistentVolumeClaim in the pod
      • 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