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

com.pulumi.kubernetes.resource.v1alpha2.inputs.ResourceClaimSchedulingStatusArgs 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.v1alpha2.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * ResourceClaimSchedulingStatus contains information about one particular ResourceClaim with "WaitForFirstConsumer" allocation mode.
 * 
 */
public final class ResourceClaimSchedulingStatusArgs extends com.pulumi.resources.ResourceArgs {

    public static final ResourceClaimSchedulingStatusArgs Empty = new ResourceClaimSchedulingStatusArgs();

    /**
     * Name matches the pod.spec.resourceClaims[*].Name field.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name matches the pod.spec.resourceClaims[*].Name field.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for.
     * 
     * The size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced.
     * 
     */
    @Import(name="unsuitableNodes")
    private @Nullable Output> unsuitableNodes;

    /**
     * @return UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for.
     * 
     * The size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced.
     * 
     */
    public Optional>> unsuitableNodes() {
        return Optional.ofNullable(this.unsuitableNodes);
    }

    private ResourceClaimSchedulingStatusArgs() {}

    private ResourceClaimSchedulingStatusArgs(ResourceClaimSchedulingStatusArgs $) {
        this.name = $.name;
        this.unsuitableNodes = $.unsuitableNodes;
    }

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

    public static final class Builder {
        private ResourceClaimSchedulingStatusArgs $;

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

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

        /**
         * @param name Name matches the pod.spec.resourceClaims[*].Name field.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name matches the pod.spec.resourceClaims[*].Name field.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param unsuitableNodes UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for.
         * 
         * The size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced.
         * 
         * @return builder
         * 
         */
        public Builder unsuitableNodes(@Nullable Output> unsuitableNodes) {
            $.unsuitableNodes = unsuitableNodes;
            return this;
        }

        /**
         * @param unsuitableNodes UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for.
         * 
         * The size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced.
         * 
         * @return builder
         * 
         */
        public Builder unsuitableNodes(List unsuitableNodes) {
            return unsuitableNodes(Output.of(unsuitableNodes));
        }

        /**
         * @param unsuitableNodes UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for.
         * 
         * The size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced.
         * 
         * @return builder
         * 
         */
        public Builder unsuitableNodes(String... unsuitableNodes) {
            return unsuitableNodes(List.of(unsuitableNodes));
        }

        public ResourceClaimSchedulingStatusArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy