Class ClaimSource.Builder

  • All Implemented Interfaces:
    software.amazon.jsii.Builder<ClaimSource>
    Enclosing interface:
    ClaimSource

    @Stability(Stable)
    public static final class ClaimSource.Builder
    extends Object
    implements software.amazon.jsii.Builder<ClaimSource>
    A builder for ClaimSource
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • resourceClaimName

        @Stability(Stable)
        public ClaimSource.Builder resourceClaimName​(String resourceClaimName)
        Parameters:
        resourceClaimName - ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod.
        Returns:
        this
      • resourceClaimTemplateName

        @Stability(Stable)
        public ClaimSource.Builder resourceClaimTemplateName​(String resourceClaimTemplateName)
        Parameters:
        resourceClaimTemplateName - ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod. The template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.

        This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim.

        Returns:
        this
      • build

        @Stability(Stable)
        public ClaimSource build()
        Builds the configured instance.
        Specified by:
        build in interface software.amazon.jsii.Builder<ClaimSource>
        Returns:
        a new instance of ClaimSource
        Throws:
        NullPointerException - if any required attribute was not provided