Package org.cdk8s.plus24.k8s
Class VolumeProjection.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.VolumeProjection.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<VolumeProjection>
- Enclosing interface:
- VolumeProjection
@Stability(Stable) public static final class VolumeProjection.Builder extends Object implements software.amazon.jsii.Builder<VolumeProjection>
A builder forVolumeProjection
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VolumeProjection
build()
Builds the configured instance.VolumeProjection.Builder
configMap(ConfigMapProjection configMap)
Sets the value ofVolumeProjection.getConfigMap()
VolumeProjection.Builder
downwardApi(DownwardApiProjection downwardApi)
Sets the value ofVolumeProjection.getDownwardApi()
VolumeProjection.Builder
secret(SecretProjection secret)
Sets the value ofVolumeProjection.getSecret()
VolumeProjection.Builder
serviceAccountToken(ServiceAccountTokenProjection serviceAccountToken)
Sets the value ofVolumeProjection.getServiceAccountToken()
-
-
-
Method Detail
-
configMap
@Stability(Stable) public VolumeProjection.Builder configMap(ConfigMapProjection configMap)
Sets the value ofVolumeProjection.getConfigMap()
- Parameters:
configMap
- configMap information about the configMap data to project.- Returns:
this
-
downwardApi
@Stability(Stable) public VolumeProjection.Builder downwardApi(DownwardApiProjection downwardApi)
Sets the value ofVolumeProjection.getDownwardApi()
- Parameters:
downwardApi
- downwardAPI information about the downwardAPI data to project.- Returns:
this
-
secret
@Stability(Stable) public VolumeProjection.Builder secret(SecretProjection secret)
Sets the value ofVolumeProjection.getSecret()
- Parameters:
secret
- secret information about the secret data to project.- Returns:
this
-
serviceAccountToken
@Stability(Stable) public VolumeProjection.Builder serviceAccountToken(ServiceAccountTokenProjection serviceAccountToken)
Sets the value ofVolumeProjection.getServiceAccountToken()
- Parameters:
serviceAccountToken
- serviceAccountToken is information about the serviceAccountToken data to project.- Returns:
this
-
build
@Stability(Stable) public VolumeProjection build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<VolumeProjection>
- Returns:
- a new instance of
VolumeProjection
- Throws:
NullPointerException
- if any required attribute was not provided
-
-