Class VolumeDevice
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.core.v1.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 podint
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 podVolumeDevice.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Method Detail
-
builder
public static VolumeDevice.Builder builder()
-
toBuilder
public VolumeDevice.Builder toBuilder()
-
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 classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-