Package org.cdk8s.plus24
Class ServiceAccountProps.Builder
- java.lang.Object
-
- org.cdk8s.plus24.ServiceAccountProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ServiceAccountProps>
- Enclosing interface:
- ServiceAccountProps
@Stability(Stable) public static final class ServiceAccountProps.Builder extends Object implements software.amazon.jsii.Builder<ServiceAccountProps>
A builder forServiceAccountProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceAccountProps.Builder
automountToken(Boolean automountToken)
Sets the value ofServiceAccountProps.getAutomountToken()
ServiceAccountProps
build()
Builds the configured instance.ServiceAccountProps.Builder
metadata(org.cdk8s.ApiObjectMetadata metadata)
Sets the value ofResourceProps.getMetadata()
ServiceAccountProps.Builder
secrets(List<? extends ISecret> secrets)
Sets the value ofServiceAccountProps.getSecrets()
-
-
-
Method Detail
-
automountToken
@Stability(Stable) public ServiceAccountProps.Builder automountToken(Boolean automountToken)
Sets the value ofServiceAccountProps.getAutomountToken()
- Parameters:
automountToken
- Indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level.- Returns:
this
-
secrets
@Stability(Stable) public ServiceAccountProps.Builder secrets(List<? extends ISecret> secrets)
Sets the value ofServiceAccountProps.getSecrets()
- Parameters:
secrets
- List of secrets allowed to be used by pods running using this ServiceAccount.- Returns:
this
-
metadata
@Stability(Stable) public ServiceAccountProps.Builder metadata(org.cdk8s.ApiObjectMetadata metadata)
Sets the value ofResourceProps.getMetadata()
- Parameters:
metadata
- Metadata that all persisted resources must have, which includes all objects users must create.- Returns:
this
-
build
@Stability(Stable) public ServiceAccountProps build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ServiceAccountProps>
- Returns:
- a new instance of
ServiceAccountProps
- Throws:
NullPointerException
- if any required attribute was not provided
-
-