Package org.cdk8s.plus24.k8s
Class KubeNetworkPolicy.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.KubeNetworkPolicy.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeNetworkPolicy>
- Enclosing class:
- KubeNetworkPolicy
@Stability(Stable) public static final class KubeNetworkPolicy.Builder extends Object implements software.amazon.jsii.Builder<KubeNetworkPolicy>
A fluent builder forKubeNetworkPolicy
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeNetworkPolicy
build()
static KubeNetworkPolicy.Builder
create(software.constructs.Construct scope, String id)
KubeNetworkPolicy.Builder
metadata(ObjectMeta metadata)
Standard object's metadata.KubeNetworkPolicy.Builder
spec(NetworkPolicySpec spec)
Specification of the desired behavior for this NetworkPolicy.
-
-
-
Method Detail
-
create
@Stability(Stable) public static KubeNetworkPolicy.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
KubeNetworkPolicy.Builder
.
-
metadata
@Stability(Stable) public KubeNetworkPolicy.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
-
spec
@Stability(Stable) public KubeNetworkPolicy.Builder spec(NetworkPolicySpec spec)
Specification of the desired behavior for this NetworkPolicy.- Parameters:
spec
- Specification of the desired behavior for this NetworkPolicy. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public KubeNetworkPolicy build()
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubeNetworkPolicy>
-
-