Package org.cdk8s.plus24.k8s
Class IscsiVolumeSource.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.IscsiVolumeSource.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<IscsiVolumeSource>
- Enclosing interface:
- IscsiVolumeSource
@Stability(Stable) public static final class IscsiVolumeSource.Builder extends Object implements software.amazon.jsii.Builder<IscsiVolumeSource>
A builder forIscsiVolumeSource
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
iqn
@Stability(Stable) public IscsiVolumeSource.Builder iqn(String iqn)
Sets the value ofIscsiVolumeSource.getIqn()
- Parameters:
iqn
- iqn is the target iSCSI Qualified Name. This parameter is required.- Returns:
this
-
lun
@Stability(Stable) public IscsiVolumeSource.Builder lun(Number lun)
Sets the value ofIscsiVolumeSource.getLun()
- Parameters:
lun
- lun represents iSCSI Target Lun number. This parameter is required.- Returns:
this
-
targetPortal
@Stability(Stable) public IscsiVolumeSource.Builder targetPortal(String targetPortal)
Sets the value ofIscsiVolumeSource.getTargetPortal()
- Parameters:
targetPortal
- targetPortal is iSCSI Target Portal. This parameter is required. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).- Returns:
this
-
chapAuthDiscovery
@Stability(Stable) public IscsiVolumeSource.Builder chapAuthDiscovery(Boolean chapAuthDiscovery)
Sets the value ofIscsiVolumeSource.getChapAuthDiscovery()
- Parameters:
chapAuthDiscovery
- chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication.- Returns:
this
-
chapAuthSession
@Stability(Stable) public IscsiVolumeSource.Builder chapAuthSession(Boolean chapAuthSession)
Sets the value ofIscsiVolumeSource.getChapAuthSession()
- Parameters:
chapAuthSession
- chapAuthSession defines whether support iSCSI Session CHAP authentication.- Returns:
this
-
fsType
@Stability(Stable) public IscsiVolumeSource.Builder fsType(String fsType)
Sets the value ofIscsiVolumeSource.getFsType()
- Parameters:
fsType
- fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi- Returns:
this
-
initiatorName
@Stability(Stable) public IscsiVolumeSource.Builder initiatorName(String initiatorName)
Sets the value ofIscsiVolumeSource.getInitiatorName()
- Parameters:
initiatorName
- initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface: will be created for the connection. - Returns:
this
-
iscsiInterface
@Stability(Stable) public IscsiVolumeSource.Builder iscsiInterface(String iscsiInterface)
Sets the value ofIscsiVolumeSource.getIscsiInterface()
- Parameters:
iscsiInterface
- iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).- Returns:
this
-
portals
@Stability(Stable) public IscsiVolumeSource.Builder portals(List<String> portals)
Sets the value ofIscsiVolumeSource.getPortals()
- Parameters:
portals
- portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).- Returns:
this
-
readOnly
@Stability(Stable) public IscsiVolumeSource.Builder readOnly(Boolean readOnly)
Sets the value ofIscsiVolumeSource.getReadOnly()
- Parameters:
readOnly
- readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.- Returns:
this
-
secretRef
@Stability(Stable) public IscsiVolumeSource.Builder secretRef(LocalObjectReference secretRef)
Sets the value ofIscsiVolumeSource.getSecretRef()
- Parameters:
secretRef
- secretRef is the CHAP Secret for iSCSI target and initiator authentication.- Returns:
this
-
build
@Stability(Stable) public IscsiVolumeSource build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<IscsiVolumeSource>
- Returns:
- a new instance of
IscsiVolumeSource
- Throws:
NullPointerException
- if any required attribute was not provided
-
-