Package org.cdk8s.plus24.k8s
Class KubeIngressProps.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.KubeIngressProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeIngressProps>
- Enclosing interface:
- KubeIngressProps
@Stability(Stable) public static final class KubeIngressProps.Builder extends Object implements software.amazon.jsii.Builder<KubeIngressProps>
A builder forKubeIngressProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeIngressProps
build()
Builds the configured instance.KubeIngressProps.Builder
metadata(ObjectMeta metadata)
Sets the value ofKubeIngressProps.getMetadata()
KubeIngressProps.Builder
spec(IngressSpec spec)
Sets the value ofKubeIngressProps.getSpec()
-
-
-
Method Detail
-
metadata
@Stability(Stable) public KubeIngressProps.Builder metadata(ObjectMeta metadata)
Sets the value ofKubeIngressProps.getMetadata()
- Parameters:
metadata
- Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata- Returns:
this
-
spec
@Stability(Stable) public KubeIngressProps.Builder spec(IngressSpec spec)
Sets the value ofKubeIngressProps.getSpec()
- Parameters:
spec
- Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status- Returns:
this
-
build
@Stability(Stable) public KubeIngressProps build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubeIngressProps>
- Returns:
- a new instance of
KubeIngressProps
- Throws:
NullPointerException
- if any required attribute was not provided
-
-