Package org.cdk8s.plus24.k8s
Class IscsiPersistentVolumeSource.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.IscsiPersistentVolumeSource.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<IscsiPersistentVolumeSource>
- Enclosing interface:
- IscsiPersistentVolumeSource
@Stability(Stable) public static final class IscsiPersistentVolumeSource.Builder extends Object implements software.amazon.jsii.Builder<IscsiPersistentVolumeSource>
A builder forIscsiPersistentVolumeSource
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
iqn
@Stability(Stable) public IscsiPersistentVolumeSource.Builder iqn(String iqn)
Sets the value ofIscsiPersistentVolumeSource.getIqn()
- Parameters:
iqn
- iqn is Target iSCSI Qualified Name. This parameter is required.- Returns:
this
-
lun
@Stability(Stable) public IscsiPersistentVolumeSource.Builder lun(Number lun)
Sets the value ofIscsiPersistentVolumeSource.getLun()
- Parameters:
lun
- lun is iSCSI Target Lun number. This parameter is required.- Returns:
this
-
targetPortal
@Stability(Stable) public IscsiPersistentVolumeSource.Builder targetPortal(String targetPortal)
Sets the value ofIscsiPersistentVolumeSource.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 IscsiPersistentVolumeSource.Builder chapAuthDiscovery(Boolean chapAuthDiscovery)
Sets the value ofIscsiPersistentVolumeSource.getChapAuthDiscovery()
- Parameters:
chapAuthDiscovery
- chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication.- Returns:
this
-
chapAuthSession
@Stability(Stable) public IscsiPersistentVolumeSource.Builder chapAuthSession(Boolean chapAuthSession)
Sets the value ofIscsiPersistentVolumeSource.getChapAuthSession()
- Parameters:
chapAuthSession
- chapAuthSession defines whether support iSCSI Session CHAP authentication.- Returns:
this
-
fsType
@Stability(Stable) public IscsiPersistentVolumeSource.Builder fsType(String fsType)
Sets the value ofIscsiPersistentVolumeSource.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 IscsiPersistentVolumeSource.Builder initiatorName(String initiatorName)
Sets the value ofIscsiPersistentVolumeSource.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 IscsiPersistentVolumeSource.Builder iscsiInterface(String iscsiInterface)
Sets the value ofIscsiPersistentVolumeSource.getIscsiInterface()
- Parameters:
iscsiInterface
- iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).- Returns:
this
-
portals
@Stability(Stable) public IscsiPersistentVolumeSource.Builder portals(List<String> portals)
Sets the value ofIscsiPersistentVolumeSource.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 IscsiPersistentVolumeSource.Builder readOnly(Boolean readOnly)
Sets the value ofIscsiPersistentVolumeSource.getReadOnly()
- Parameters:
readOnly
- readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.- Returns:
this
-
secretRef
@Stability(Stable) public IscsiPersistentVolumeSource.Builder secretRef(SecretReference secretRef)
Sets the value ofIscsiPersistentVolumeSource.getSecretRef()
- Parameters:
secretRef
- secretRef is the CHAP Secret for iSCSI target and initiator authentication.- Returns:
this
-
build
@Stability(Stable) public IscsiPersistentVolumeSource build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<IscsiPersistentVolumeSource>
- Returns:
- a new instance of
IscsiPersistentVolumeSource
- Throws:
NullPointerException
- if any required attribute was not provided
-
-