Package org.cdk8s.plus25.k8s
Class OwnerReference.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.OwnerReference.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<OwnerReference>
- Enclosing interface:
- OwnerReference
@Stability(Stable) public static final class OwnerReference.Builder extends Object implements software.amazon.jsii.Builder<OwnerReference>
A builder forOwnerReference
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OwnerReference.BuilderapiVersion(String apiVersion)Sets the value ofOwnerReference.getApiVersion()OwnerReference.BuilderblockOwnerDeletion(Boolean blockOwnerDeletion)Sets the value ofOwnerReference.getBlockOwnerDeletion()OwnerReferencebuild()Builds the configured instance.OwnerReference.Buildercontroller(Boolean controller)Sets the value ofOwnerReference.getController()OwnerReference.Builderkind(String kind)Sets the value ofOwnerReference.getKind()OwnerReference.Buildername(String name)Sets the value ofOwnerReference.getName()OwnerReference.Builderuid(String uid)Sets the value ofOwnerReference.getUid()
-
-
-
Method Detail
-
apiVersion
@Stability(Stable) public OwnerReference.Builder apiVersion(String apiVersion)
Sets the value ofOwnerReference.getApiVersion()- Parameters:
apiVersion- API version of the referent. This parameter is required.- Returns:
this
-
kind
@Stability(Stable) public OwnerReference.Builder kind(String kind)
Sets the value ofOwnerReference.getKind()- Parameters:
kind- Kind of the referent. This parameter is required. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds- Returns:
this
-
name
@Stability(Stable) public OwnerReference.Builder name(String name)
Sets the value ofOwnerReference.getName()- Parameters:
name- Name of the referent. This parameter is required. More info: http://kubernetes.io/docs/user-guide/identifiers#names- Returns:
this
-
uid
@Stability(Stable) public OwnerReference.Builder uid(String uid)
Sets the value ofOwnerReference.getUid()- Parameters:
uid- UID of the referent. This parameter is required. More info: http://kubernetes.io/docs/user-guide/identifiers#uids- Returns:
this
-
blockOwnerDeletion
@Stability(Stable) public OwnerReference.Builder blockOwnerDeletion(Boolean blockOwnerDeletion)
Sets the value ofOwnerReference.getBlockOwnerDeletion()- Parameters:
blockOwnerDeletion- If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.- Returns:
this
-
controller
@Stability(Stable) public OwnerReference.Builder controller(Boolean controller)
Sets the value ofOwnerReference.getController()- Parameters:
controller- If true, this reference points to the managing controller.- Returns:
this
-
build
@Stability(Stable) public OwnerReference build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<OwnerReference>- Returns:
- a new instance of
OwnerReference - Throws:
NullPointerException- if any required attribute was not provided
-
-