Package org.cdk8s.plus25
Class SshAuthSecretProps.Builder
- java.lang.Object
-
- org.cdk8s.plus25.SshAuthSecretProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<SshAuthSecretProps>
- Enclosing interface:
- SshAuthSecretProps
@Stability(Stable) public static final class SshAuthSecretProps.Builder extends Object implements software.amazon.jsii.Builder<SshAuthSecretProps>
A builder forSshAuthSecretProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SshAuthSecretPropsbuild()Builds the configured instance.SshAuthSecretProps.Builderimmutable(Boolean immutable)Sets the value ofCommonSecretProps.getImmutable()SshAuthSecretProps.Buildermetadata(org.cdk8s.ApiObjectMetadata metadata)Sets the value ofResourceProps.getMetadata()SshAuthSecretProps.BuildersshPrivateKey(String sshPrivateKey)Sets the value ofSshAuthSecretProps.getSshPrivateKey()
-
-
-
Method Detail
-
sshPrivateKey
@Stability(Stable) public SshAuthSecretProps.Builder sshPrivateKey(String sshPrivateKey)
Sets the value ofSshAuthSecretProps.getSshPrivateKey()- Parameters:
sshPrivateKey- The SSH private key to use. This parameter is required.- Returns:
this
-
immutable
@Stability(Stable) public SshAuthSecretProps.Builder immutable(Boolean immutable)
Sets the value ofCommonSecretProps.getImmutable()- Parameters:
immutable- If set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time.- Returns:
this
-
metadata
@Stability(Stable) public SshAuthSecretProps.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 SshAuthSecretProps build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SshAuthSecretProps>- Returns:
- a new instance of
SshAuthSecretProps - Throws:
NullPointerException- if any required attribute was not provided
-
-