All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.kubernetes.resource.v1alpha1.inputs.PodSchedulingStatusArgs Maven / Gradle / Ivy

There is a newer version: 4.19.0-alpha.1730750641
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.resource.v1alpha1.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.kubernetes.resource.v1alpha1.inputs.ResourceClaimSchedulingStatusArgs;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * PodSchedulingStatus describes where resources for the Pod can be allocated.
 * 
 */
public final class PodSchedulingStatusArgs extends com.pulumi.resources.ResourceArgs {

    public static final PodSchedulingStatusArgs Empty = new PodSchedulingStatusArgs();

    /**
     * ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses "WaitForFirstConsumer" allocation mode.
     * 
     */
    @Import(name="resourceClaims")
    private @Nullable Output> resourceClaims;

    /**
     * @return ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses "WaitForFirstConsumer" allocation mode.
     * 
     */
    public Optional>> resourceClaims() {
        return Optional.ofNullable(this.resourceClaims);
    }

    private PodSchedulingStatusArgs() {}

    private PodSchedulingStatusArgs(PodSchedulingStatusArgs $) {
        this.resourceClaims = $.resourceClaims;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(PodSchedulingStatusArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private PodSchedulingStatusArgs $;

        public Builder() {
            $ = new PodSchedulingStatusArgs();
        }

        public Builder(PodSchedulingStatusArgs defaults) {
            $ = new PodSchedulingStatusArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param resourceClaims ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses "WaitForFirstConsumer" allocation mode.
         * 
         * @return builder
         * 
         */
        public Builder resourceClaims(@Nullable Output> resourceClaims) {
            $.resourceClaims = resourceClaims;
            return this;
        }

        /**
         * @param resourceClaims ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses "WaitForFirstConsumer" allocation mode.
         * 
         * @return builder
         * 
         */
        public Builder resourceClaims(List resourceClaims) {
            return resourceClaims(Output.of(resourceClaims));
        }

        /**
         * @param resourceClaims ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses "WaitForFirstConsumer" allocation mode.
         * 
         * @return builder
         * 
         */
        public Builder resourceClaims(ResourceClaimSchedulingStatusArgs... resourceClaims) {
            return resourceClaims(List.of(resourceClaims));
        }

        public PodSchedulingStatusArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy