Class KubeSecret.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.KubeSecret.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeSecret>
- Enclosing class:
- KubeSecret
@Stability(Stable) public static final class KubeSecret.Builder extends Object implements software.amazon.jsii.Builder<KubeSecret>
A fluent builder forKubeSecret.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeSecretbuild()static KubeSecret.Buildercreate(software.constructs.Construct scope, String id)KubeSecret.Builderdata(Map<String,String> data)Data contains the secret data.KubeSecret.Builderimmutable(Boolean immutable)Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified).KubeSecret.Buildermetadata(ObjectMeta metadata)Standard object's metadata.KubeSecret.BuilderstringData(Map<String,String> stringData)stringData allows specifying non-binary secret data in string form.KubeSecret.Buildertype(String type)Used to facilitate programmatic handling of secret data.
-
-
-
Method Detail
-
create
@Stability(Stable) public static KubeSecret.Builder create(software.constructs.Construct scope, String id)
- Parameters:
scope- the scope in which to define this object. This parameter is required.id- a scope-local name for the object. This parameter is required.- Returns:
- a new instance of
KubeSecret.Builder.
-
data
@Stability(Stable) public KubeSecret.Builder data(Map<String,String> data)
Data contains the secret data.Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4
- Parameters:
data- Data contains the secret data. This parameter is required.- Returns:
this
-
immutable
@Stability(Stable) public KubeSecret.Builder immutable(Boolean immutable)
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. Defaulted to nil.
- Parameters:
immutable- Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). This parameter is required.- Returns:
this
-
metadata
@Stability(Stable) public KubeSecret.Builder metadata(ObjectMeta metadata)
Standard object's metadata.More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
- Parameters:
metadata- Standard object's metadata. This parameter is required.- Returns:
this
-
stringData
@Stability(Stable) public KubeSecret.Builder stringData(Map<String,String> stringData)
stringData allows specifying non-binary secret data in string form.It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API.
- Parameters:
stringData- stringData allows specifying non-binary secret data in string form. This parameter is required.- Returns:
this
-
type
@Stability(Stable) public KubeSecret.Builder type(String type)
Used to facilitate programmatic handling of secret data.More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types
- Parameters:
type- Used to facilitate programmatic handling of secret data. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public KubeSecret build()
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<KubeSecret>- Returns:
- a newly built instance of
KubeSecret.
-
-