Package org.cdk8s.plus24
Class TlsSecretProps.Builder
- java.lang.Object
-
- org.cdk8s.plus24.TlsSecretProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<TlsSecretProps>
- Enclosing interface:
- TlsSecretProps
@Stability(Stable) public static final class TlsSecretProps.Builder extends Object implements software.amazon.jsii.Builder<TlsSecretProps>
A builder forTlsSecretProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TlsSecretProps
build()
Builds the configured instance.TlsSecretProps.Builder
immutable(Boolean immutable)
Sets the value ofCommonSecretProps.getImmutable()
TlsSecretProps.Builder
metadata(org.cdk8s.ApiObjectMetadata metadata)
Sets the value ofResourceProps.getMetadata()
TlsSecretProps.Builder
tlsCert(String tlsCert)
Sets the value ofTlsSecretProps.getTlsCert()
TlsSecretProps.Builder
tlsKey(String tlsKey)
Sets the value ofTlsSecretProps.getTlsKey()
-
-
-
Method Detail
-
tlsCert
@Stability(Stable) public TlsSecretProps.Builder tlsCert(String tlsCert)
Sets the value ofTlsSecretProps.getTlsCert()
- Parameters:
tlsCert
- The TLS cert. This parameter is required.- Returns:
this
-
tlsKey
@Stability(Stable) public TlsSecretProps.Builder tlsKey(String tlsKey)
Sets the value ofTlsSecretProps.getTlsKey()
- Parameters:
tlsKey
- The TLS key. This parameter is required.- Returns:
this
-
immutable
@Stability(Stable) public TlsSecretProps.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 TlsSecretProps.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 TlsSecretProps build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<TlsSecretProps>
- Returns:
- a new instance of
TlsSecretProps
- Throws:
NullPointerException
- if any required attribute was not provided
-
-