Class ClusterTrustBundleSpecV1Alpha1.Builder
- java.lang.Object
-
- org.cdk8s.plus28.k8s.ClusterTrustBundleSpecV1Alpha1.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ClusterTrustBundleSpecV1Alpha1>
- Enclosing interface:
- ClusterTrustBundleSpecV1Alpha1
@Stability(Stable) public static final class ClusterTrustBundleSpecV1Alpha1.Builder extends Object implements software.amazon.jsii.Builder<ClusterTrustBundleSpecV1Alpha1>
A builder forClusterTrustBundleSpecV1Alpha1
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterTrustBundleSpecV1Alpha1build()Builds the configured instance.ClusterTrustBundleSpecV1Alpha1.BuildersignerName(String signerName)Sets the value ofClusterTrustBundleSpecV1Alpha1.getSignerName()ClusterTrustBundleSpecV1Alpha1.BuildertrustBundle(String trustBundle)Sets the value ofClusterTrustBundleSpecV1Alpha1.getTrustBundle()
-
-
-
Method Detail
-
trustBundle
@Stability(Stable) public ClusterTrustBundleSpecV1Alpha1.Builder trustBundle(String trustBundle)
Sets the value ofClusterTrustBundleSpecV1Alpha1.getTrustBundle()- Parameters:
trustBundle- trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates. This parameter is required. The data must consist only of PEM certificate blocks that parse as valid X.509 certificates. Each certificate must include a basic constraints extension with the CA bit set. The API server will reject objects that contain duplicate certificates, or that use PEM block headers.Users of ClusterTrustBundles, including Kubelet, are free to reorder and deduplicate certificate blocks in this file according to their own logic, as well as to drop PEM block headers and inter-block data.
- Returns:
this
-
signerName
@Stability(Stable) public ClusterTrustBundleSpecV1Alpha1.Builder signerName(String signerName)
Sets the value ofClusterTrustBundleSpecV1Alpha1.getSignerName()- Parameters:
signerName- signerName indicates the associated signer, if any. In order to create or update a ClusterTrustBundle that sets signerName, you must have the following cluster-scoped permission: group=certificates.k8s.io resource=signers resourceName=verb=attest. If signerName is not empty, then the ClusterTrustBundle object must be named with the signer name as a prefix (translating slashes to colons). For example, for the signer name
example.com/foo, valid ClusterTrustBundle object names includeexample.com:foo:abcandexample.com:foo:v1.If signerName is empty, then the ClusterTrustBundle object's name must not have such a prefix.
List/watch requests for ClusterTrustBundles can filter on this field using a
spec.signerName=NAMEfield selector.- Returns:
this
-
build
@Stability(Stable) public ClusterTrustBundleSpecV1Alpha1 build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ClusterTrustBundleSpecV1Alpha1>- Returns:
- a new instance of
ClusterTrustBundleSpecV1Alpha1 - Throws:
NullPointerException- if any required attribute was not provided
-
-