Class Secret.Builder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.core.v1.Secret.Builder
-
- Enclosing class:
- Secret
public static class Secret.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Secret.Builder
apiVersion(java.lang.String apiVersion)
APIVersion defines the versioned schema of this representation of an object.Secret
build()
Secret.Builder
clearData()
Secret.Builder
clearStringData()
Secret.Builder
data(java.util.Map<? extends java.lang.String,? extends java.lang.String> data)
Secret.Builder
immutable(java.lang.Boolean immutable)
Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified).Secret.Builder
kind(java.lang.String kind)
Kind is a string value representing the REST resource this object represents.Secret.Builder
metadata(ObjectMeta metadata)
Secret.Builder
putInData(java.lang.String putInDataKey, java.lang.String putInDataValue)
Secret.Builder
putInStringData(java.lang.String putInStringDataKey, java.lang.String putInStringDataValue)
Secret.Builder
stringData(java.util.Map<? extends java.lang.String,? extends java.lang.String> stringData)
java.lang.String
toString()
Secret.Builder
type(java.lang.String type)
Used to facilitate programmatic handling of secret data.
-
-
-
Method Detail
-
apiVersion
public Secret.Builder apiVersion(java.lang.String apiVersion)
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources- Returns:
this
.
-
putInData
public Secret.Builder putInData(java.lang.String putInDataKey, java.lang.String putInDataValue)
-
data
public Secret.Builder data(java.util.Map<? extends java.lang.String,? extends java.lang.String> data)
-
clearData
public Secret.Builder clearData()
-
immutable
public Secret.Builder immutable(java.lang.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.- Returns:
this
.
-
kind
public Secret.Builder kind(java.lang.String kind)
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds- Returns:
this
.
-
metadata
public Secret.Builder metadata(ObjectMeta metadata)
- Returns:
this
.
-
putInStringData
public Secret.Builder putInStringData(java.lang.String putInStringDataKey, java.lang.String putInStringDataValue)
-
stringData
public Secret.Builder stringData(java.util.Map<? extends java.lang.String,? extends java.lang.String> stringData)
-
clearStringData
public Secret.Builder clearStringData()
-
type
public Secret.Builder type(java.lang.String type)
Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types- Returns:
this
.
-
build
public Secret build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-