@Stability(value=Experimental) public static final class KubernetesPatchProps.Builder extends Object implements software.amazon.jsii.Builder<KubernetesPatchProps>
KubernetesPatchProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
KubernetesPatchProps.Builder |
applyPatch(Map<String,? extends Object> applyPatch)
Sets the value of
KubernetesPatchProps.getApplyPatch() |
KubernetesPatchProps |
build()
Builds the configured instance.
|
KubernetesPatchProps.Builder |
cluster(ICluster cluster)
Sets the value of
KubernetesPatchProps.getCluster() |
KubernetesPatchProps.Builder |
patchType(PatchType patchType)
Sets the value of
KubernetesPatchProps.getPatchType() |
KubernetesPatchProps.Builder |
resourceName(String resourceName)
Sets the value of
KubernetesPatchProps.getResourceName() |
KubernetesPatchProps.Builder |
resourceNamespace(String resourceNamespace)
Sets the value of
KubernetesPatchProps.getResourceNamespace() |
KubernetesPatchProps.Builder |
restorePatch(Map<String,? extends Object> restorePatch)
Sets the value of
KubernetesPatchProps.getRestorePatch() |
@Stability(value=Experimental) public KubernetesPatchProps.Builder applyPatch(Map<String,? extends Object> applyPatch)
KubernetesPatchProps.getApplyPatch()
applyPatch
- The JSON object to pass to `kubectl patch` when the resource is created/updated. This parameter is required.this
@Stability(value=Experimental) public KubernetesPatchProps.Builder cluster(ICluster cluster)
KubernetesPatchProps.getCluster()
cluster
- The cluster to apply the patch to. This parameter is required.
[disable-awslint:ref-via-interface]this
@Stability(value=Experimental) public KubernetesPatchProps.Builder resourceName(String resourceName)
KubernetesPatchProps.getResourceName()
resourceName
- The full name of the resource to patch (e.g. `deployment/coredns`). This parameter is required.this
@Stability(value=Experimental) public KubernetesPatchProps.Builder restorePatch(Map<String,? extends Object> restorePatch)
KubernetesPatchProps.getRestorePatch()
restorePatch
- The JSON object to pass to `kubectl patch` when the resource is removed. This parameter is required.this
@Stability(value=Experimental) public KubernetesPatchProps.Builder patchType(PatchType patchType)
KubernetesPatchProps.getPatchType()
patchType
- The patch type to pass to `kubectl patch`.
The default type used by kubectl patch
is "strategic".this
@Stability(value=Experimental) public KubernetesPatchProps.Builder resourceNamespace(String resourceNamespace)
KubernetesPatchProps.getResourceNamespace()
resourceNamespace
- The kubernetes API namespace.this
@Stability(value=Experimental) public KubernetesPatchProps build()
build
in interface software.amazon.jsii.Builder<KubernetesPatchProps>
KubernetesPatchProps
NullPointerException
- if any required attribute was not providedCopyright © 2021. All rights reserved.