Package org.cdk8s.plus24.k8s
Class KubeResourceQuotaProps.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.KubeResourceQuotaProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeResourceQuotaProps>
- Enclosing interface:
- KubeResourceQuotaProps
@Stability(Stable) public static final class KubeResourceQuotaProps.Builder extends Object implements software.amazon.jsii.Builder<KubeResourceQuotaProps>
A builder forKubeResourceQuotaProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeResourceQuotaProps
build()
Builds the configured instance.KubeResourceQuotaProps.Builder
metadata(ObjectMeta metadata)
Sets the value ofKubeResourceQuotaProps.getMetadata()
KubeResourceQuotaProps.Builder
spec(ResourceQuotaSpec spec)
Sets the value ofKubeResourceQuotaProps.getSpec()
-
-
-
Method Detail
-
metadata
@Stability(Stable) public KubeResourceQuotaProps.Builder metadata(ObjectMeta metadata)
Sets the value ofKubeResourceQuotaProps.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 KubeResourceQuotaProps.Builder spec(ResourceQuotaSpec spec)
Sets the value ofKubeResourceQuotaProps.getSpec()
- Parameters:
spec
- Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status- Returns:
this
-
build
@Stability(Stable) public KubeResourceQuotaProps build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubeResourceQuotaProps>
- Returns:
- a new instance of
KubeResourceQuotaProps
- Throws:
NullPointerException
- if any required attribute was not provided
-
-